forked from boostorg/fusion
revises function object concepts and functional module documenation to reflect
boost::result_of-based result computation [SVN r38209]
This commit is contained in:
@ -30,7 +30,7 @@
|
||||
invoke_procedure">
|
||||
invoke_procedure</a></h5></div></div></div>
|
||||
<a name="fusion.functional.invocation.functions.invoke_proc.description"></a><h6>
|
||||
<a name="id1206296"></a>
|
||||
<a name="id1244068"></a>
|
||||
<a href="invoke_proc.html#fusion.functional.invocation.functions.invoke_proc.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
@ -38,12 +38,6 @@
|
||||
Object</a> with the arguments from a <a href="../../../sequences.html" title="Sequences">Sequence</a>.
|
||||
The result of the call is ignored.
|
||||
</p>
|
||||
<p>
|
||||
The corresponding metafunction, __result_of_invoke_procedure, does not
|
||||
define a <code class="computeroutput"><span class="identifier">type</span></code> member
|
||||
for target functions of non-class type whose arity is not satisfied by
|
||||
the size of the sequence.
|
||||
</p>
|
||||
<p>
|
||||
The first template parameter can be specialized explicitly to avoid copying
|
||||
and/or to control the const qualification of a function object.
|
||||
@ -52,7 +46,7 @@
|
||||
For pointers to class members corresponding object can be specified as
|
||||
a reference, pointer, or smart pointer. In case of the latter, a freestanding
|
||||
<code class="literal">get_pointer</code> function must be defined (Boost provides
|
||||
this function for <code class="literal">std::auto_ptr</code> and <a href="http://www.boost.org/libs/smart_ptr/smart_ptr.hpp" target="_top"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">shared_ptr</span></code></a>).
|
||||
this function for <code class="literal">std::auto_ptr</code> and <a href="http://www.boost.org/libs/smart_ptr/shared_ptr.htm" target="_top"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">shared_ptr</span></code></a>).
|
||||
</p>
|
||||
<p>
|
||||
The target function must not be a pointer to a member object (dereferencing
|
||||
@ -60,7 +54,7 @@
|
||||
isn't implemented).
|
||||
</p>
|
||||
<a name="fusion.functional.invocation.functions.invoke_proc.synopsis"></a><h6>
|
||||
<a name="id1206410"></a>
|
||||
<a name="id1244168"></a>
|
||||
<a href="invoke_proc.html#fusion.functional.invocation.functions.invoke_proc.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@ -81,7 +75,7 @@
|
||||
<span class="identifier">invoke_procedure</span><span class="special">(</span><span class="identifier">Function</span> <span class="identifier">f</span><span class="special">,</span> <span class="identifier">Sequence</span> <span class="keyword">const</span> <span class="special">&</span> <span class="identifier">s</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.functional.invocation.functions.invoke_proc.parameters"></a><h6>
|
||||
<a name="id1206741"></a>
|
||||
<a name="id1244500"></a>
|
||||
<a href="invoke_proc.html#fusion.functional.invocation.functions.invoke_proc.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@ -91,32 +85,64 @@
|
||||
<col>
|
||||
</colgroup>
|
||||
<thead><tr>
|
||||
<th>Parameter</th>
|
||||
<th>Requirement</th>
|
||||
<th>Description</th>
|
||||
<th>
|
||||
<p>
|
||||
Parameter
|
||||
</p>
|
||||
</th>
|
||||
<th>
|
||||
<p>
|
||||
Requirement
|
||||
</p>
|
||||
</th>
|
||||
<th>
|
||||
<p>
|
||||
Description
|
||||
</p>
|
||||
</th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><code class="computeroutput"><span class="identifier">f</span></code></td>
|
||||
<td>Model
|
||||
of <a href="../../concepts/callable.html" title=" Callable Object">Callable
|
||||
Object</a>
|
||||
</td>
|
||||
<td>The function to call.</td>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">f</span></code>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Model of <a href="../../concepts/callable.html" title=" Callable Object">Callable
|
||||
Object</a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The function to call.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code class="computeroutput"><span class="identifier">s</span></code></td>
|
||||
<td>Model
|
||||
of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">s</span></code>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>
|
||||
</td>
|
||||
<td>The arguments.</td>
|
||||
Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The arguments.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.functional.invocation.functions.invoke_proc.expression_semantics"></a><h6>
|
||||
<a name="id1206845"></a>
|
||||
<a name="id1244645"></a>
|
||||
<a href="invoke_proc.html#fusion.functional.invocation.functions.invoke_proc.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@ -132,14 +158,14 @@
|
||||
as arguments.
|
||||
</p>
|
||||
<a name="fusion.functional.invocation.functions.invoke_proc.header"></a><h6>
|
||||
<a name="id1206852"></a>
|
||||
<a name="id1244753"></a>
|
||||
<a href="invoke_proc.html#fusion.functional.invocation.functions.invoke_proc.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">invocation</span><span class="special">/</span><span class="identifier">invoke_procedure</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.functional.invocation.functions.invoke_proc.example"></a><h6>
|
||||
<a name="id1207040"></a>
|
||||
<a name="id1244847"></a>
|
||||
<a href="invoke_proc.html#fusion.functional.invocation.functions.invoke_proc.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@ -149,7 +175,7 @@
|
||||
<span class="identifier">assert</span><span class="special">(</span><a href="../../../sequences/intrinsics/functions/front.html" title="front"><code class="computeroutput"><span class="identifier">front</span></code></a><span class="special">(</span><span class="identifier">v</span><span class="special">)</span> <span class="special">==</span> <span class="number">3</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.functional.invocation.functions.invoke_proc.see_also"></a><h6>
|
||||
<a name="id1207250"></a>
|
||||
<a name="id1245059"></a>
|
||||
<a href="invoke_proc.html#fusion.functional.invocation.functions.invoke_proc.see_also">See
|
||||
also</a>
|
||||
</h6>
|
||||
|
Reference in New Issue
Block a user