3 <meta http-equiv=
"Content-Type" content=
"text/html; charset=US-ASCII">
4 <title>What is provided
</title>
5 <link rel=
"stylesheet" href=
"../../../../../../doc/src/boostbook.css" type=
"text/css">
6 <meta name=
"generator" content=
"DocBook XSL Stylesheets V1.75.2">
7 <link rel=
"home" href=
"../../index.html" title=
"Chapter 1. Phoenix 3.2.0">
8 <link rel=
"up" href=
"../lazy_list.html" title=
"Lazy List">
9 <link rel=
"prev" href=
"background.html" title=
"Background">
10 <link rel=
"next" href=
"tutorial_with_examples.html" title=
"Tutorial with examples">
12 <body bgcolor=
"white" text=
"black" link=
"#0000FF" vlink=
"#840084" alink=
"#0000FF">
13 <table cellpadding=
"2" width=
"100%"><tr>
14 <td valign=
"top"><img alt=
"Boost C++ Libraries" width=
"277" height=
"86" src=
"../../../../../../boost.png"></td>
15 <td align=
"center"><a href=
"../../../../../../index.html">Home
</a></td>
16 <td align=
"center"><a href=
"../../../../../../libs/libraries.htm">Libraries
</a></td>
17 <td align=
"center"><a href=
"http://www.boost.org/users/people.html">People
</a></td>
18 <td align=
"center"><a href=
"http://www.boost.org/users/faq.html">FAQ
</a></td>
19 <td align=
"center"><a href=
"../../../../../../more/index.htm">More
</a></td>
22 <div class=
"spirit-nav">
23 <a accesskey=
"p" href=
"background.html"><img src=
"../../../../../../doc/src/images/prev.png" alt=
"Prev"></a><a accesskey=
"u" href=
"../lazy_list.html"><img src=
"../../../../../../doc/src/images/up.png" alt=
"Up"></a><a accesskey=
"h" href=
"../../index.html"><img src=
"../../../../../../doc/src/images/home.png" alt=
"Home"></a><a accesskey=
"n" href=
"tutorial_with_examples.html"><img src=
"../../../../../../doc/src/images/next.png" alt=
"Next"></a>
26 <div class=
"titlepage"><div><div><h3 class=
"title">
27 <a name=
"phoenix.lazy_list.what_is_provided"></a><a class=
"link" href=
"what_is_provided.html" title=
"What is provided">What is provided
</a>
28 </h3></div></div></div>
30 Functions are provided to build and manipulate objects of the list type
32 <pre class=
"programlisting"><span class=
"identifier">list
</span><span class=
"special"><</span><span class=
"identifier">T
</span><span class=
"special">></span>
35 <a name=
"phoenix.lazy_list.what_is_provided.h0"></a>
36 <span><a name=
"phoenix.lazy_list.what_is_provided.namespace_and_header"></a></span><a class=
"link" href=
"what_is_provided.html#phoenix.lazy_list.what_is_provided.namespace_and_header">Namespace
40 The functions are in the namespace
42 <pre class=
"programlisting"><span class=
"identifier">boost
</span><span class=
"special">::
</span><span class=
"identifier">phoenix
</span>
45 defined by the header file
47 <pre class=
"programlisting"><span class=
"identifier">boost
</span><span class=
"special">/
</span><span class=
"identifier">phoenix
</span><span class=
"special">/
</span><span class=
"identifier">function
</span><span class=
"special">/
</span><span class=
"identifier">lazy_prelude
</span><span class=
"special">.
</span><span class=
"identifier">hpp
</span>
50 which includes all other needed headers. It is not currently included in
52 <pre class=
"programlisting"><span class=
"identifier">boost
</span><span class=
"special">/
</span><span class=
"identifier">phoenix
</span><span class=
"special">/
</span><span class=
"identifier">function
</span><span class=
"special">.
</span><span class=
"identifier">hpp
</span>
55 so it must be explicitly included to use these types and functions.
58 <a name=
"phoenix.lazy_list.what_is_provided.h1"></a>
59 <span><a name=
"phoenix.lazy_list.what_is_provided.integration_with_boost_phoenix"></a></span><a class=
"link" href=
"what_is_provided.html#phoenix.lazy_list.what_is_provided.integration_with_boost_phoenix">Integration
60 with Boost Phoenix
</a>
63 The functions are defined by boost::phoenix::function which means that they
64 work with phoenix arguments such as 'arg1'. They have been defined in such
65 a way that when needed they can be passed as arguments to other functions.
68 <a name=
"phoenix.lazy_list.what_is_provided.h2"></a>
69 <span><a name=
"phoenix.lazy_list.what_is_provided.lazy_list_type"></a></span><a class=
"link" href=
"what_is_provided.html#phoenix.lazy_list.what_is_provided.lazy_list_type">Lazy
72 <pre class=
"programlisting"><span class=
"identifier">list
</span><span class=
"special"><</span><span class=
"identifier">T
</span><span class=
"special">></span> <span class=
"special">(
</span><span class=
"identifier">where
</span> <span class=
"identifier">T
</span> <span class=
"identifier">is
</span> <span class=
"identifier">the
</span> <span class=
"identifier">element
</span> <span class=
"identifier">type
</span><span class=
"special">)
</span>
75 <a name=
"phoenix.lazy_list.what_is_provided.h3"></a>
76 <span><a name=
"phoenix.lazy_list.what_is_provided.functions"></a></span><a class=
"link" href=
"what_is_provided.html#phoenix.lazy_list.what_is_provided.functions">Functions
</a>
79 The functions are grouped as follows:
82 <a name=
"phoenix.lazy_list.what_is_provided.h4"></a>
83 <span><a name=
"phoenix.lazy_list.what_is_provided.arithmetic_functions"></a></span><a class=
"link" href=
"what_is_provided.html#phoenix.lazy_list.what_is_provided.arithmetic_functions">Arithmetic
86 <pre class=
"programlisting"><span class=
"identifier">plus
</span>
87 <span class=
"identifier">minus
</span>
88 <span class=
"identifier">multiplies
</span>
89 <span class=
"identifier">divides
</span>
90 <span class=
"identifier">modulus
</span>
91 <span class=
"identifier">negate
</span>
94 <a name=
"phoenix.lazy_list.what_is_provided.h5"></a>
95 <span><a name=
"phoenix.lazy_list.what_is_provided.boolean_functions"></a></span><a class=
"link" href=
"what_is_provided.html#phoenix.lazy_list.what_is_provided.boolean_functions">Boolean functions
</a>
97 <pre class=
"programlisting"><span class=
"identifier">equal
</span>
98 <span class=
"identifier">not_equal
</span>
99 <span class=
"identifier">greater
</span>
100 <span class=
"identifier">less
</span>
101 <span class=
"identifier">greater_equal
</span>
102 <span class=
"identifier">less_equal
</span>
105 <a name=
"phoenix.lazy_list.what_is_provided.h6"></a>
106 <span><a name=
"phoenix.lazy_list.what_is_provided.logical_functions"></a></span><a class=
"link" href=
"what_is_provided.html#phoenix.lazy_list.what_is_provided.logical_functions">Logical functions
</a>
108 <pre class=
"programlisting"><span class=
"identifier">logical_and
</span>
109 <span class=
"identifier">logical_or
</span>
110 <span class=
"identifier">logical_not
</span>
113 <a name=
"phoenix.lazy_list.what_is_provided.h7"></a>
114 <span><a name=
"phoenix.lazy_list.what_is_provided.operational_functions"></a></span><a class=
"link" href=
"what_is_provided.html#phoenix.lazy_list.what_is_provided.operational_functions">Operational
117 <pre class=
"programlisting"><span class=
"identifier">apply
</span>
118 <span class=
"identifier">until
</span>
119 <span class=
"identifier">until2
</span>
120 <span class=
"identifier">max
</span>
121 <span class=
"identifier">min
</span>
122 <span class=
"identifier">inc
</span>
123 <span class=
"identifier">dec
</span>
124 <span class=
"identifier">make_pair
</span>
127 <a name=
"phoenix.lazy_list.what_is_provided.h8"></a>
128 <span><a name=
"phoenix.lazy_list.what_is_provided.logical_predicates"></a></span><a class=
"link" href=
"what_is_provided.html#phoenix.lazy_list.what_is_provided.logical_predicates">Logical predicates
</a>
130 <pre class=
"programlisting"><span class=
"identifier">odd
</span>
131 <span class=
"identifier">even
</span>
134 <a name=
"phoenix.lazy_list.what_is_provided.h9"></a>
135 <span><a name=
"phoenix.lazy_list.what_is_provided.list_functions"></a></span><a class=
"link" href=
"what_is_provided.html#phoenix.lazy_list.what_is_provided.list_functions">List
138 <pre class=
"programlisting"><span class=
"identifier">cons
</span>
139 <span class=
"identifier">cat
</span>
140 <span class=
"identifier">take
</span>
141 <span class=
"identifier">drop
</span>
142 <span class=
"identifier">last
</span>
143 <span class=
"identifier">all_but_last
</span>
144 <span class=
"identifier">at
</span>
145 <span class=
"identifier">length
</span>
146 <span class=
"identifier">filter
</span>
149 <a name=
"phoenix.lazy_list.what_is_provided.h10"></a>
150 <span><a name=
"phoenix.lazy_list.what_is_provided.list_generation_functions"></a></span><a class=
"link" href=
"what_is_provided.html#phoenix.lazy_list.what_is_provided.list_generation_functions">List
151 Generation Functions
</a>
153 <pre class=
"programlisting"><span class=
"identifier">enum_from
</span>
154 <span class=
"identifier">enum_from_to
</span>
155 <span class=
"identifier">list_with
</span>
158 <a name=
"phoenix.lazy_list.what_is_provided.h11"></a>
159 <span><a name=
"phoenix.lazy_list.what_is_provided.futher_functions"></a></span><a class=
"link" href=
"what_is_provided.html#phoenix.lazy_list.what_is_provided.futher_functions">Futher
163 Further functions are in development from the resources available in
<a href=
"http://cgi.di.uoa.gr/~smaragd/fc++/" target=
"_top">FC++
</a>.
166 <table xmlns:
rev=
"http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width=
"100%"><tr>
167 <td align=
"left"></td>
168 <td align=
"right"><div class=
"copyright-footer">Copyright
© 2002-
2005,
2010,
2014,
2015 Joel de Guzman, Dan Marsden, Thomas
169 Heller, John Fletcher
<p>
170 Distributed under the Boost Software License, Version
1.0. (See accompanying
171 file LICENSE_1_0.txt or copy at
<a href=
"http://www.boost.org/LICENSE_1_0.txt" target=
"_top">http://www.boost.org/LICENSE_1_0.txt
</a>)
176 <div class=
"spirit-nav">
177 <a accesskey=
"p" href=
"background.html"><img src=
"../../../../../../doc/src/images/prev.png" alt=
"Prev"></a><a accesskey=
"u" href=
"../lazy_list.html"><img src=
"../../../../../../doc/src/images/up.png" alt=
"Up"></a><a accesskey=
"h" href=
"../../index.html"><img src=
"../../../../../../doc/src/images/home.png" alt=
"Home"></a><a accesskey=
"n" href=
"tutorial_with_examples.html"><img src=
"../../../../../../doc/src/images/next.png" alt=
"Next"></a>