Imported Upstream version 1.57.0
[platform/upstream/boost.git] / libs / fusion / doc / html / fusion / algorithm / query / metafunctions / find.html
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>find</title>
5 <link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7 <link rel="home" href="../../../../index.html" title="Chapter&#160;1.&#160;Fusion 2.2">
8 <link rel="up" href="../metafunctions.html" title="Metafunctions">
9 <link rel="prev" href="none.html" title="none">
10 <link rel="next" href="find_if.html" title="find_if">
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="none.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="find_if.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="fusion.algorithm.query.metafunctions.find"></a><a class="link" href="find.html" title="find">find</a>
28 </h5></div></div></div>
29 <h6>
30 <a name="fusion.algorithm.query.metafunctions.find.h0"></a>
31             <span class="phrase"><a name="fusion.algorithm.query.metafunctions.find.description"></a></span><a class="link" href="find.html#fusion.algorithm.query.metafunctions.find.description">Description</a>
32           </h6>
33 <p>
34             Returns the result type of <a class="link" href="../functions/find.html" title="find"><code class="computeroutput"><span class="identifier">find</span></code></a>, given the sequence and
35             search types.
36           </p>
37 <h6>
38 <a name="fusion.algorithm.query.metafunctions.find.h1"></a>
39             <span class="phrase"><a name="fusion.algorithm.query.metafunctions.find.synopsis"></a></span><a class="link" href="find.html#fusion.algorithm.query.metafunctions.find.synopsis">Synopsis</a>
40           </h6>
41 <pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span>
42     <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span>
43     <span class="keyword">typename</span> <span class="identifier">T</span>
44     <span class="special">&gt;</span>
45 <span class="keyword">struct</span> <span class="identifier">find</span>
46 <span class="special">{</span>
47     <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span>
48 <span class="special">};</span>
49 </pre>
50 <div class="table">
51 <a name="fusion.algorithm.query.metafunctions.find.t0"></a><p class="title"><b>Table&#160;1.60.&#160;Parameters</b></p>
52 <div class="table-contents"><table class="table" summary="Parameters">
53 <colgroup>
54 <col>
55 <col>
56 <col>
57 </colgroup>
58 <thead><tr>
59 <th>
60                     <p>
61                       Parameter
62                     </p>
63                   </th>
64 <th>
65                     <p>
66                       Requirement
67                     </p>
68                   </th>
69 <th>
70                     <p>
71                       Description
72                     </p>
73                   </th>
74 </tr></thead>
75 <tbody>
76 <tr>
77 <td>
78                     <p>
79                       <code class="computeroutput"><span class="identifier">Sequence</span></code>
80                     </p>
81                   </td>
82 <td>
83                     <p>
84                       Model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward
85                       Sequence</a>
86                     </p>
87                   </td>
88 <td>
89                     <p>
90                       Operation's argument
91                     </p>
92                   </td>
93 </tr>
94 <tr>
95 <td>
96                     <p>
97                       <code class="computeroutput"><span class="identifier">T</span></code>
98                     </p>
99                   </td>
100 <td>
101                     <p>
102                       Any type
103                     </p>
104                   </td>
105 <td>
106                     <p>
107                       Operation's argument
108                     </p>
109                   </td>
110 </tr>
111 </tbody>
112 </table></div>
113 </div>
114 <br class="table-break"><h6>
115 <a name="fusion.algorithm.query.metafunctions.find.h2"></a>
116             <span class="phrase"><a name="fusion.algorithm.query.metafunctions.find.expression_semantics"></a></span><a class="link" href="find.html#fusion.algorithm.query.metafunctions.find.expression_semantics">Expression
117             Semantics</a>
118           </h6>
119 <pre class="programlisting"><a class="link" href="find.html" title="find"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">find</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span>
120 </pre>
121 <p>
122             <span class="bold"><strong>Return type</strong></span>: A model of the same iterator
123             category as the iterators of <code class="computeroutput"><span class="identifier">Sequence</span></code>.
124           </p>
125 <p>
126             <span class="bold"><strong>Semantics</strong></span>: Returns an iterator to the
127             first element of type <code class="computeroutput"><span class="identifier">T</span></code>
128             in <code class="computeroutput"><span class="identifier">Sequence</span></code>, or <code class="computeroutput"><a class="link" href="../../../sequence/intrinsic/metafunctions/end.html" title="end"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">end</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span></code>
129             if there is no such element.
130           </p>
131 <h6>
132 <a name="fusion.algorithm.query.metafunctions.find.h3"></a>
133             <span class="phrase"><a name="fusion.algorithm.query.metafunctions.find.complexity"></a></span><a class="link" href="find.html#fusion.algorithm.query.metafunctions.find.complexity">Complexity</a>
134           </h6>
135 <p>
136             Linear, at most <code class="computeroutput"><a class="link" href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> comparisons.
137           </p>
138 <h6>
139 <a name="fusion.algorithm.query.metafunctions.find.h4"></a>
140             <span class="phrase"><a name="fusion.algorithm.query.metafunctions.find.header"></a></span><a class="link" href="find.html#fusion.algorithm.query.metafunctions.find.header">Header</a>
141           </h6>
142 <pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">algorithm</span><span class="special">/</span><span class="identifier">query</span><span class="special">/</span><span class="identifier">find</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
143 <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">find</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
144 </pre>
145 </div>
146 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
147 <td align="left"></td>
148 <td align="right"><div class="copyright-footer">Copyright &#169; 2001-2006, 2011, 2012 Joel de Guzman,
149       Dan Marsden, Tobias Schwinger<p>
150         Distributed under the Boost Software License, Version 1.0. (See accompanying
151         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>)
152       </p>
153 </div></td>
154 </tr></table>
155 <hr>
156 <div class="spirit-nav">
157 <a accesskey="p" href="none.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="find_if.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
158 </div>
159 </body>
160 </html>