• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>Metafunctions</title>
5<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="../../../../index.html" title="Chapter 1. Range 2.0">
8<link rel="up" href="../semantics.html" title="Semantics">
9<link rel="prev" href="../semantics.html" title="Semantics">
10<link rel="next" href="functions.html" title="Functions">
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="../semantics.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../semantics.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="functions.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h5 class="title">
27<a name="range.reference.concept_implementation.semantics.metafunctions"></a><a class="link" href="metafunctions.html" title="Metafunctions">Metafunctions</a>
28</h5></div></div></div>
29<div class="informaltable"><table class="table">
30<colgroup>
31<col>
32<col>
33<col>
34</colgroup>
35<thead><tr>
36<th>
37                    <p>
38                      Expression
39                    </p>
40                  </th>
41<th>
42                    <p>
43                      Return type
44                    </p>
45                  </th>
46<th>
47                    <p>
48                      Complexity
49                    </p>
50                  </th>
51</tr></thead>
52<tbody>
53<tr>
54<td>
55                    <p>
56                      <code class="computeroutput"><span class="identifier">range_iterator</span><span class="special">&lt;</span><span class="identifier">X</span><span class="special">&gt;::</span><span class="identifier">type</span></code>
57                    </p>
58                  </td>
59<td>
60                    <p>
61</p>
62<pre xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="table-programlisting"><span class="identifier">T</span><span class="special">::</span><span class="identifier">iterator</span>
63<span class="identifier">P</span><span class="special">::</span><span class="identifier">first_type</span>
64<span class="identifier">A</span><span class="special">*</span>
65</pre>
66<p>
67                    </p>
68                  </td>
69<td>
70                    <p>
71                      compile time
72                    </p>
73                  </td>
74</tr>
75<tr>
76<td>
77                    <p>
78                      <code class="computeroutput"><span class="identifier">range_iterator</span><span class="special">&lt;</span><span class="keyword">const</span>
79                      <span class="identifier">X</span><span class="special">&gt;::</span><span class="identifier">type</span></code>
80                    </p>
81                  </td>
82<td>
83                    <p>
84</p>
85<pre xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="table-programlisting"><span class="identifier">T</span><span class="special">::</span><span class="identifier">const_iterator</span>
86<span class="identifier">P</span><span class="special">::</span><span class="identifier">first_type</span>
87<span class="keyword">const</span> <span class="identifier">A</span><span class="special">*</span>
88</pre>
89<p>
90                    </p>
91                  </td>
92<td>
93                    <p>
94                      compile time
95                    </p>
96                  </td>
97</tr>
98<tr>
99<td>
100                    <p>
101                      <code class="computeroutput"><span class="identifier">range_value</span><span class="special">&lt;</span><span class="identifier">X</span><span class="special">&gt;::</span><span class="identifier">type</span></code>
102                    </p>
103                  </td>
104<td>
105                    <p>
106                      <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">iterator_value</span><span class="special">&lt;</span><span class="identifier">range_iterator</span><span class="special">&lt;</span><span class="identifier">X</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">&gt;::</span><span class="identifier">type</span></code>
107                    </p>
108                  </td>
109<td>
110                    <p>
111                      compile time
112                    </p>
113                  </td>
114</tr>
115<tr>
116<td>
117                    <p>
118                      <code class="computeroutput"><span class="identifier">range_reference</span><span class="special">&lt;</span><span class="identifier">X</span><span class="special">&gt;::</span><span class="identifier">type</span></code>
119                    </p>
120                  </td>
121<td>
122                    <p>
123                      <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">iterator_reference</span><span class="special">&lt;</span><span class="identifier">range_iterator</span><span class="special">&lt;</span><span class="identifier">X</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">&gt;::</span><span class="identifier">type</span></code>
124                    </p>
125                  </td>
126<td>
127                    <p>
128                      compile time
129                    </p>
130                  </td>
131</tr>
132<tr>
133<td>
134                    <p>
135                      <code class="computeroutput"><span class="identifier">range_pointer</span><span class="special">&lt;</span><span class="identifier">X</span><span class="special">&gt;::</span><span class="identifier">type</span></code>
136                    </p>
137                  </td>
138<td>
139                    <p>
140                      <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">iterator_pointer</span><span class="special">&lt;</span><span class="identifier">range_iterator</span><span class="special">&lt;</span><span class="identifier">X</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">&gt;::</span><span class="identifier">type</span></code>
141                    </p>
142                  </td>
143<td>
144                    <p>
145                      compile time
146                    </p>
147                  </td>
148</tr>
149<tr>
150<td>
151                    <p>
152                      <code class="computeroutput"><span class="identifier">range_category</span><span class="special">&lt;</span><span class="identifier">X</span><span class="special">&gt;::</span><span class="identifier">type</span></code>
153                    </p>
154                  </td>
155<td>
156                    <p>
157                      <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">iterator_category</span><span class="special">&lt;</span><span class="identifier">range_iterator</span><span class="special">&lt;</span><span class="identifier">X</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">&gt;::</span><span class="identifier">type</span></code>
158                    </p>
159                  </td>
160<td>
161                    <p>
162                      compile time
163                    </p>
164                  </td>
165</tr>
166<tr>
167<td>
168                    <p>
169                      <code class="computeroutput"><span class="identifier">range_difference</span><span class="special">&lt;</span><span class="identifier">X</span><span class="special">&gt;::</span><span class="identifier">type</span></code>
170                    </p>
171                  </td>
172<td>
173                    <p>
174                      <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">iterator_difference</span><span class="special">&lt;</span><span class="identifier">range_iterator</span><span class="special">&lt;</span><span class="identifier">X</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">&gt;::</span><span class="identifier">type</span></code>
175                    </p>
176                  </td>
177<td>
178                    <p>
179                      compile time
180                    </p>
181                  </td>
182</tr>
183<tr>
184<td>
185                    <p>
186                      <code class="computeroutput"><span class="identifier">range_reverse_iterator</span><span class="special">&lt;</span><span class="identifier">X</span><span class="special">&gt;::</span><span class="identifier">type</span></code>
187                    </p>
188                  </td>
189<td>
190                    <p>
191                      <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">reverse_iterator</span><span class="special">&lt;</span><span class="identifier">range_iterator</span><span class="special">&lt;</span><span class="identifier">X</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">&gt;</span></code>
192                    </p>
193                  </td>
194<td>
195                    <p>
196                      compile time
197                    </p>
198                  </td>
199</tr>
200<tr>
201<td>
202                    <p>
203                      <code class="computeroutput"><span class="identifier">range_reverse_iterator</span><span class="special">&lt;</span><span class="keyword">const</span>
204                      <span class="identifier">X</span><span class="special">&gt;::</span><span class="identifier">type</span></code>
205                    </p>
206                  </td>
207<td>
208                    <p>
209                      <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">reverse_iterator</span><span class="special">&lt;</span><span class="identifier">range_iterator</span><span class="special">&lt;</span><span class="keyword">const</span> <span class="identifier">X</span><span class="special">&gt;::</span><span class="identifier">type</span></code>
210                    </p>
211                  </td>
212<td>
213                    <p>
214                      compile time
215                    </p>
216                  </td>
217</tr>
218<tr>
219<td>
220                    <p>
221                      <code class="computeroutput"><span class="identifier">has_range_iterator</span><span class="special">&lt;</span><span class="identifier">X</span><span class="special">&gt;::</span><span class="identifier">type</span></code>
222                    </p>
223                  </td>
224<td>
225                    <p>
226                      <code class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code> if <code class="computeroutput"><span class="identifier">range_mutable_iterator</span><span class="special">&lt;</span><span class="identifier">X</span><span class="special">&gt;::</span><span class="identifier">type</span></code>
227                      is a valid expression, <code class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></code>
228                      otherwise
229                    </p>
230                  </td>
231<td>
232                    <p>
233                      compile time
234                    </p>
235                  </td>
236</tr>
237<tr>
238<td>
239                    <p>
240                      <code class="computeroutput"><span class="identifier">has_range_const_iterator</span><span class="special">&lt;</span><span class="identifier">X</span><span class="special">&gt;::</span><span class="identifier">type</span></code>
241                    </p>
242                  </td>
243<td>
244                    <p>
245                      <code class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code> if <code class="computeroutput"><span class="identifier">range_const_iterator</span><span class="special">&lt;</span><span class="identifier">X</span><span class="special">&gt;::</span><span class="identifier">type</span></code>
246                      is a valid expression, <code class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></code>
247                      otherwise
248                    </p>
249                  </td>
250<td>
251                    <p>
252                      compile time
253                    </p>
254                  </td>
255</tr>
256</tbody>
257</table></div>
258</div>
259<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
260<td align="left"></td>
261<td align="right"><div class="copyright-footer">Copyright © 2003-2010 Thorsten Ottosen,
262      Neil Groves<p>
263        Distributed under the Boost Software License, Version 1.0. (See accompanying
264        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>)
265      </p>
266</div></td>
267</tr></table>
268<hr>
269<div class="spirit-nav">
270<a accesskey="p" href="../semantics.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../semantics.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="functions.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
271</div>
272</body>
273</html>
274