]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/phoenix/doc/html/phoenix/lazy_list/what_is_provided.html
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / phoenix / doc / html / phoenix / lazy_list / what_is_provided.html
1 <html>
2 <head>
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&#160;1.&#160;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">
11 </head>
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>
20 </tr></table>
21 <hr>
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>
24 </div>
25 <div class="section">
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>
29 <p>
30 Functions are provided to build and manipulate objects of the list type
31 </p>
32 <pre class="programlisting"><span class="identifier">list</span><span class="special">&lt;</span><span class="identifier">T</span><span class="special">&gt;</span>
33 </pre>
34 <h3>
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
37 and header</a>
38 </h3>
39 <p>
40 The functions are in the namespace
41 </p>
42 <pre class="programlisting"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">phoenix</span>
43 </pre>
44 <p>
45 defined by the header file
46 </p>
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>
48 </pre>
49 <p>
50 which includes all other needed headers. It is not currently included in
51 </p>
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>
53 </pre>
54 <p>
55 so it must be explicitly included to use these types and functions.
56 </p>
57 <h3>
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>
61 </h3>
62 <p>
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.
66 </p>
67 <h2>
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
70 List Type</a>
71 </h2>
72 <pre class="programlisting"><span class="identifier">list</span><span class="special">&lt;</span><span class="identifier">T</span><span class="special">&gt;</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>
73 </pre>
74 <h2>
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>
77 </h2>
78 <p>
79 The functions are grouped as follows:
80 </p>
81 <h3>
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
84 functions</a>
85 </h3>
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>
92 </pre>
93 <h3>
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>
96 </h3>
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>
103 </pre>
104 <h3>
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>
107 </h3>
108 <pre class="programlisting"><span class="identifier">logical_and</span>
109 <span class="identifier">logical_or</span>
110 <span class="identifier">logical_not</span>
111 </pre>
112 <h3>
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
115 functions</a>
116 </h3>
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>
125 </pre>
126 <h3>
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>
129 </h3>
130 <pre class="programlisting"><span class="identifier">odd</span>
131 <span class="identifier">even</span>
132 </pre>
133 <h3>
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
136 Functions</a>
137 </h3>
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>
147 </pre>
148 <h4>
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>
152 </h4>
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>
156 </pre>
157 <h3>
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
160 functions</a>
161 </h3>
162 <p>
163 Further functions are in development from the resources available in <a href="http://cgi.di.uoa.gr/~smaragd/fc++/" target="_top">FC++</a>.
164 </p>
165 </div>
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 &#169; 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>)
172 </p>
173 </div></td>
174 </tr></table>
175 <hr>
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>
178 </div>
179 </body>
180 </html>