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:
@ -26,7 +26,7 @@
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="fusion.support.category_of"></a><a href="category_of.html" title="category_of">category_of</a></h3></div></div></div>
|
||||
<a name="fusion.support.category_of.description"></a><h4>
|
||||
<a name="id905704"></a>
|
||||
<a name="id929322"></a>
|
||||
<a href="category_of.html#fusion.support.category_of.description">Description</a>
|
||||
</h4>
|
||||
<p>
|
||||
@ -36,7 +36,7 @@
|
||||
<a href="../sequences/concepts.html" title="Concepts">Sequence Concepts</a>).
|
||||
</p>
|
||||
<a name="fusion.support.category_of.synopsis"></a><h4>
|
||||
<a name="id905764"></a>
|
||||
<a name="id929383"></a>
|
||||
<a href="category_of.html#fusion.support.category_of.synopsis">Synopsis</a>
|
||||
</h4>
|
||||
<pre class="programlisting">
|
||||
@ -50,7 +50,7 @@
|
||||
<span class="special">}</span>
|
||||
</pre>
|
||||
<a name="fusion.support.category_of.parameters"></a><h4>
|
||||
<a name="id905879"></a>
|
||||
<a name="id929499"></a>
|
||||
<a href="category_of.html#fusion.support.category_of.parameters">Parameters</a>
|
||||
</h4>
|
||||
<div class="informaltable"><table class="table">
|
||||
@ -60,19 +60,42 @@
|
||||
<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">T</span></code></td>
|
||||
<td>Any
|
||||
type</td>
|
||||
<td>The type to query.</td>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">T</span></code>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Any type
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The type to query.
|
||||
</p>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.support.category_of.expression_semantics"></a><h4>
|
||||
<a name="id905947"></a>
|
||||
<a name="id929592"></a>
|
||||
<a href="category_of.html#fusion.support.category_of.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h4>
|
||||
@ -138,14 +161,14 @@
|
||||
of a particular <a href="../sequences.html" title="Sequences">Sequence</a> or <a href="../iterators.html" title="Iterators">Iterator</a>.
|
||||
</p>
|
||||
<a name="fusion.support.category_of.header"></a><h4>
|
||||
<a name="id906475"></a>
|
||||
<a name="id930125"></a>
|
||||
<a href="category_of.html#fusion.support.category_of.header">Header</a>
|
||||
</h4>
|
||||
<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">support</span><span class="special">/</span><span class="identifier">category_of</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.support.category_of.example"></a><h4>
|
||||
<a name="id906557"></a>
|
||||
<a name="id930209"></a>
|
||||
<a href="category_of.html#fusion.support.category_of.example">Example</a>
|
||||
</h4>
|
||||
<pre class="programlisting">
|
||||
|
@ -26,7 +26,7 @@
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="fusion.support.deduce"></a><a href="deduce.html" title="deduce">deduce</a></h3></div></div></div>
|
||||
<a name="fusion.support.deduce.description"></a><h4>
|
||||
<a name="id906839"></a>
|
||||
<a name="id930492"></a>
|
||||
<a href="deduce.html#fusion.support.deduce.description">Description</a>
|
||||
</h4>
|
||||
<p>
|
||||
@ -39,14 +39,14 @@
|
||||
Reference wrappers are removed (see <a href="../notes.html#fusion.notes.boost__ref"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">ref</span></code></a>).
|
||||
</p>
|
||||
<a name="fusion.support.deduce.header"></a><h4>
|
||||
<a name="id906921"></a>
|
||||
<a name="id930578"></a>
|
||||
<a href="deduce.html#fusion.support.deduce.header">Header</a>
|
||||
</h4>
|
||||
<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">support</span><span class="special">/</span><span class="identifier">deduce</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.support.deduce.synopsis"></a><h4>
|
||||
<a name="id907002"></a>
|
||||
<a name="id930660"></a>
|
||||
<a href="deduce.html#fusion.support.deduce.synopsis">Synopsis</a>
|
||||
</h4>
|
||||
<pre class="programlisting">
|
||||
@ -60,7 +60,7 @@
|
||||
<span class="special">}</span>
|
||||
</pre>
|
||||
<a name="fusion.support.deduce.example"></a><h4>
|
||||
<a name="id907116"></a>
|
||||
<a name="id930776"></a>
|
||||
<a href="deduce.html#fusion.support.deduce.example">Example</a>
|
||||
</h4>
|
||||
<pre class="programlisting">
|
||||
@ -81,7 +81,7 @@
|
||||
<span class="special">}</span>
|
||||
</pre>
|
||||
<a name="fusion.support.deduce.see_also"></a><h4>
|
||||
<a name="id907436"></a>
|
||||
<a name="id931097"></a>
|
||||
<a href="deduce.html#fusion.support.deduce.see_also">See also</a>
|
||||
</h4>
|
||||
<div class="itemizedlist"><ul type="disc"><li><a href="deduce_sequence.html" title="deduce_sequence"><code class="computeroutput"><span class="identifier">deduce_sequence</span></code></a></li></ul></div>
|
||||
|
@ -26,7 +26,7 @@
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="fusion.support.deduce_sequence"></a><a href="deduce_sequence.html" title="deduce_sequence">deduce_sequence</a></h3></div></div></div>
|
||||
<a name="fusion.support.deduce_sequence.description"></a><h4>
|
||||
<a name="id907493"></a>
|
||||
<a name="id931156"></a>
|
||||
<a href="deduce_sequence.html#fusion.support.deduce_sequence.description">Description</a>
|
||||
</h4>
|
||||
<p>
|
||||
@ -39,14 +39,14 @@
|
||||
original type as its argument.
|
||||
</p>
|
||||
<a name="fusion.support.deduce_sequence.header"></a><h4>
|
||||
<a name="id907550"></a>
|
||||
<a name="id931212"></a>
|
||||
<a href="deduce_sequence.html#fusion.support.deduce_sequence.header">Header</a>
|
||||
</h4>
|
||||
<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">support</span><span class="special">/</span><span class="identifier">deduce_sequence</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.support.deduce_sequence.synopsis"></a><h4>
|
||||
<a name="id907632"></a>
|
||||
<a name="id931295"></a>
|
||||
<a href="deduce_sequence.html#fusion.support.deduce_sequence.synopsis">Synopsis</a>
|
||||
</h4>
|
||||
<pre class="programlisting">
|
||||
@ -60,7 +60,7 @@
|
||||
<span class="special">}</span>
|
||||
</pre>
|
||||
<a name="fusion.support.deduce_sequence.example"></a><h4>
|
||||
<a name="id907747"></a>
|
||||
<a name="id931412"></a>
|
||||
<a href="deduce_sequence.html#fusion.support.deduce_sequence.example">Example</a>
|
||||
</h4>
|
||||
<pre class="programlisting">
|
||||
@ -83,7 +83,7 @@
|
||||
<span class="special">}</span>
|
||||
</pre>
|
||||
<a name="fusion.support.deduce_sequence.see_also"></a><h4>
|
||||
<a name="id908241"></a>
|
||||
<a name="id931907"></a>
|
||||
<a href="deduce_sequence.html#fusion.support.deduce_sequence.see_also">See also</a>
|
||||
</h4>
|
||||
<div class="itemizedlist"><ul type="disc"><li><a href="deduce.html" title="deduce"><code class="computeroutput"><span class="identifier">deduce</span></code></a></li></ul></div>
|
||||
|
@ -26,7 +26,7 @@
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="fusion.support.is_sequence"></a><a href="is_sequence.html" title="is_sequence">is_sequence</a></h3></div></div></div>
|
||||
<a name="fusion.support.is_sequence.description"></a><h4>
|
||||
<a name="id903103"></a>
|
||||
<a name="id926611"></a>
|
||||
<a href="is_sequence.html#fusion.support.is_sequence.description">Description</a>
|
||||
</h4>
|
||||
<p>
|
||||
@ -37,7 +37,7 @@
|
||||
conforming sequences.
|
||||
</p>
|
||||
<a name="fusion.support.is_sequence.synopsis"></a><h4>
|
||||
<a name="id903182"></a>
|
||||
<a name="id926695"></a>
|
||||
<a href="is_sequence.html#fusion.support.is_sequence.synopsis">Synopsis</a>
|
||||
</h4>
|
||||
<pre class="programlisting">
|
||||
@ -51,7 +51,7 @@
|
||||
<span class="special">}</span>
|
||||
</pre>
|
||||
<a name="fusion.support.is_sequence.parameters"></a><h4>
|
||||
<a name="id903297"></a>
|
||||
<a name="id926811"></a>
|
||||
<a href="is_sequence.html#fusion.support.is_sequence.parameters">Parameters</a>
|
||||
</h4>
|
||||
<div class="informaltable"><table class="table">
|
||||
@ -61,19 +61,42 @@
|
||||
<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">T</span></code></td>
|
||||
<td>Any
|
||||
type</td>
|
||||
<td>The type to query.</td>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">T</span></code>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Any type
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The type to query.
|
||||
</p>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.support.is_sequence.expression_semantics"></a><h4>
|
||||
<a name="id903365"></a>
|
||||
<a name="id926904"></a>
|
||||
<a href="is_sequence.html#fusion.support.is_sequence.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h4>
|
||||
@ -91,14 +114,14 @@
|
||||
otherwise.
|
||||
</p>
|
||||
<a name="fusion.support.is_sequence.header"></a><h4>
|
||||
<a name="id903510"></a>
|
||||
<a name="id927055"></a>
|
||||
<a href="is_sequence.html#fusion.support.is_sequence.header">Header</a>
|
||||
</h4>
|
||||
<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">support</span><span class="special">/</span><span class="identifier">is_sequence</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.support.is_sequence.example"></a><h4>
|
||||
<a name="id903592"></a>
|
||||
<a name="id927138"></a>
|
||||
<a href="is_sequence.html#fusion.support.is_sequence.example">Example</a>
|
||||
</h4>
|
||||
<pre class="programlisting">
|
||||
|
@ -26,7 +26,7 @@
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="fusion.support.is_view"></a><a href="is_view.html" title="is_view">is_view</a></h3></div></div></div>
|
||||
<a name="fusion.support.is_view.description"></a><h4>
|
||||
<a name="id903987"></a>
|
||||
<a name="id927534"></a>
|
||||
<a href="is_view.html#fusion.support.is_view.description">Description</a>
|
||||
</h4>
|
||||
<p>
|
||||
@ -40,7 +40,7 @@
|
||||
specialized to accomodate clients providing Fusion conforming views.
|
||||
</p>
|
||||
<a name="fusion.support.is_view.synopsis"></a><h4>
|
||||
<a name="id904079"></a>
|
||||
<a name="id927632"></a>
|
||||
<a href="is_view.html#fusion.support.is_view.synopsis">Synopsis</a>
|
||||
</h4>
|
||||
<pre class="programlisting">
|
||||
@ -54,7 +54,7 @@
|
||||
<span class="special">}</span>
|
||||
</pre>
|
||||
<a name="fusion.support.is_view.parameters"></a><h4>
|
||||
<a name="id904194"></a>
|
||||
<a name="id927748"></a>
|
||||
<a href="is_view.html#fusion.support.is_view.parameters">Parameters</a>
|
||||
</h4>
|
||||
<div class="informaltable"><table class="table">
|
||||
@ -64,19 +64,42 @@
|
||||
<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">T</span></code></td>
|
||||
<td>Any
|
||||
type</td>
|
||||
<td>The type to query.</td>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">T</span></code>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Any type
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The type to query.
|
||||
</p>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.support.is_view.expression_semantics"></a><h4>
|
||||
<a name="id904262"></a>
|
||||
<a name="id927841"></a>
|
||||
<a href="is_view.html#fusion.support.is_view.expression_semantics">Expression Semantics</a>
|
||||
</h4>
|
||||
<pre class="programlisting">
|
||||
@ -93,14 +116,14 @@
|
||||
otherwise.
|
||||
</p>
|
||||
<a name="fusion.support.is_view.header"></a><h4>
|
||||
<a name="id904406"></a>
|
||||
<a name="id927991"></a>
|
||||
<a href="is_view.html#fusion.support.is_view.header">Header</a>
|
||||
</h4>
|
||||
<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">support</span><span class="special">/</span><span class="identifier">is_view</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.support.is_view.example"></a><h4>
|
||||
<a name="id904487"></a>
|
||||
<a name="id928072"></a>
|
||||
<a href="is_view.html#fusion.support.is_view.example">Example</a>
|
||||
</h4>
|
||||
<pre class="programlisting">
|
||||
|
@ -26,7 +26,7 @@
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="fusion.support.pair"></a><a href="pair.html" title="pair">pair</a></h3></div></div></div>
|
||||
<a name="fusion.support.pair.description"></a><h4>
|
||||
<a name="id908296"></a>
|
||||
<a name="id931964"></a>
|
||||
<a href="pair.html#fusion.support.pair.description">Description</a>
|
||||
</h4>
|
||||
<p>
|
||||
@ -37,7 +37,7 @@
|
||||
for example.
|
||||
</p>
|
||||
<a name="fusion.support.pair.synopsis"></a><h4>
|
||||
<a name="id908385"></a>
|
||||
<a name="id932056"></a>
|
||||
<a href="pair.html#fusion.support.pair.synopsis">Synopsis</a>
|
||||
</h4>
|
||||
<pre class="programlisting">
|
||||
@ -61,7 +61,7 @@
|
||||
<span class="identifier">make_pair</span><span class="special">(</span><span class="identifier">Second</span> <span class="keyword">const</span> <span class="special">&);</span>
|
||||
</pre>
|
||||
<a name="fusion.support.pair.template_parameters"></a><h4>
|
||||
<a name="id926250"></a>
|
||||
<a name="id932447"></a>
|
||||
<a href="pair.html#fusion.support.pair.template_parameters">Template parameters</a>
|
||||
</h4>
|
||||
<div class="informaltable"><table class="table">
|
||||
@ -70,18 +70,41 @@
|
||||
<col>
|
||||
</colgroup>
|
||||
<thead><tr>
|
||||
<th>Parameter</th>
|
||||
<th>Description</th>
|
||||
<th>
|
||||
<p>
|
||||
Parameter
|
||||
</p>
|
||||
</th>
|
||||
<th>
|
||||
<p>
|
||||
Description
|
||||
</p>
|
||||
</th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>First</td>
|
||||
<td>The first type. This is purely a type. No
|
||||
data is held.</td>
|
||||
<td>
|
||||
<p>
|
||||
First
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The first type. This is purely a type. No data is held.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Second</td>
|
||||
<td>The second type. This contains data.</td>
|
||||
<td>
|
||||
<p>
|
||||
Second
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The second type. This contains data.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
@ -117,7 +140,7 @@
|
||||
</dl>
|
||||
</div>
|
||||
<a name="fusion.support.pair.expression_semantics"></a><h4>
|
||||
<a name="id926445"></a>
|
||||
<a name="id932676"></a>
|
||||
<a href="pair.html#fusion.support.pair.expression_semantics">Expression Semantics</a>
|
||||
</h4>
|
||||
<div class="informaltable"><table class="table">
|
||||
@ -126,86 +149,172 @@
|
||||
<col>
|
||||
</colgroup>
|
||||
<thead><tr>
|
||||
<th>Expression</th>
|
||||
<th>Semantics</th>
|
||||
<th>
|
||||
<p>
|
||||
Expression
|
||||
</p>
|
||||
</th>
|
||||
<th>
|
||||
<p>
|
||||
Semantics
|
||||
</p>
|
||||
</th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><code class="computeroutput"><span class="identifier">P</span><span class="special">::</span><span class="identifier">first_type</span></code></td>
|
||||
<td>The type
|
||||
of the first template parameter, <code class="computeroutput"><span class="identifier">F</span></code>,
|
||||
equivalent to <code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">first</span><span class="special"><</span><span class="identifier">P</span><span class="special">>::</span><span class="identifier">type</span></code>.
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">P</span><span class="special">::</span><span class="identifier">first_type</span></code>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The type of the first template parameter, <code class="computeroutput"><span class="identifier">F</span></code>,
|
||||
equivalent to <code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">first</span><span class="special"><</span><span class="identifier">P</span><span class="special">>::</span><span class="identifier">type</span></code>.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code class="computeroutput"><span class="identifier">P</span><span class="special">::</span><span class="identifier">second_type</span></code></td>
|
||||
<td>The type
|
||||
of the second template parameter, <code class="computeroutput"><span class="identifier">S</span></code>,
|
||||
equivalent to <code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">second</span><span class="special"><</span><span class="identifier">P</span><span class="special">>::</span><span class="identifier">type</span></code>.
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">P</span><span class="special">::</span><span class="identifier">second_type</span></code>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The type of the second template parameter, <code class="computeroutput"><span class="identifier">S</span></code>,
|
||||
equivalent to <code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">second</span><span class="special"><</span><span class="identifier">P</span><span class="special">>::</span><span class="identifier">type</span></code>.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code class="computeroutput"><span class="identifier">P</span><span class="special">()</span></code></td>
|
||||
<td>Default
|
||||
construction.</td>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">P</span><span class="special">()</span></code>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Default construction.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code class="computeroutput"><span class="identifier">P</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td>Construct
|
||||
a pair given value for the second type, <code class="computeroutput"><span class="identifier">s</span></code>.</td>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">P</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Construct a pair given value for the second type, <code class="computeroutput"><span class="identifier">s</span></code>.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code class="computeroutput"><span class="identifier">P</span><span class="special">(</span><span class="identifier">p2</span><span class="special">)</span></code></td>
|
||||
<td>Copy
|
||||
constructs a pair from another pair, <code class="computeroutput"><span class="identifier">p2</span></code>.</td>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">P</span><span class="special">(</span><span class="identifier">p2</span><span class="special">)</span></code>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Copy constructs a pair from another pair, <code class="computeroutput"><span class="identifier">p2</span></code>.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code class="computeroutput"><span class="identifier">p</span> <span class="special">=</span>
|
||||
<span class="identifier">p2</span></code></td>
|
||||
<td>Assigns
|
||||
a pair, p1, from another pair, <code class="computeroutput"><span class="identifier">p2</span></code>.</td>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">p</span> <span class="special">=</span>
|
||||
<span class="identifier">p2</span></code>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Assigns a pair, p1, from another pair, <code class="computeroutput"><span class="identifier">p2</span></code>.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>make_pair<F>(s)</td>
|
||||
<td>Make a pair given the first
|
||||
type, <code class="computeroutput"><span class="identifier">F</span></code>, and a value
|
||||
for the second type, <code class="computeroutput"><span class="identifier">s</span></code>.
|
||||
The second type assumes the type of <code class="computeroutput"><span class="identifier">s</span></code>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
make_pair<F>(s)
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Make a pair given the first type, <code class="computeroutput"><span class="identifier">F</span></code>,
|
||||
and a value for the second type, <code class="computeroutput"><span class="identifier">s</span></code>.
|
||||
The second type assumes the type of <code class="computeroutput"><span class="identifier">s</span></code>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code class="computeroutput"><span class="identifier">o</span> <span class="special"><<</span>
|
||||
<span class="identifier">p</span></code></td>
|
||||
<td>Output <code class="computeroutput"><span class="identifier">p</span></code> to output stream, <code class="computeroutput"><span class="identifier">o</span></code>.</td>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">o</span> <span class="special"><<</span>
|
||||
<span class="identifier">p</span></code>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Output <code class="computeroutput"><span class="identifier">p</span></code> to output
|
||||
stream, <code class="computeroutput"><span class="identifier">o</span></code>.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code class="computeroutput"><span class="identifier">i</span> <span class="special">>></span>
|
||||
<span class="identifier">p</span></code></td>
|
||||
<td>Input <code class="computeroutput"><span class="identifier">p</span></code> from input stream, <code class="computeroutput"><span class="identifier">i</span></code>.</td>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">i</span> <span class="special">>></span>
|
||||
<span class="identifier">p</span></code>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Input <code class="computeroutput"><span class="identifier">p</span></code> from input
|
||||
stream, <code class="computeroutput"><span class="identifier">i</span></code>.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code class="computeroutput"><span class="identifier">p</span> <span class="special">==</span>
|
||||
<span class="identifier">p2</span></code></td>
|
||||
<td>Tests two
|
||||
pairs for equality.</td>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">p</span> <span class="special">==</span>
|
||||
<span class="identifier">p2</span></code>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Tests two pairs for equality.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code class="computeroutput"><span class="identifier">p</span> <span class="special">!=</span>
|
||||
<span class="identifier">p2</span></code></td>
|
||||
<td>Tests two
|
||||
pairs for inequality.</td>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">p</span> <span class="special">!=</span>
|
||||
<span class="identifier">p2</span></code>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Tests two pairs for inequality.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.support.pair.header"></a><h4>
|
||||
<a name="id926938"></a>
|
||||
<a name="id933307"></a>
|
||||
<a href="pair.html#fusion.support.pair.header">Header</a>
|
||||
</h4>
|
||||
<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">support</span><span class="special">/</span><span class="identifier">pair</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.support.pair.example"></a><h4>
|
||||
<a name="id927019"></a>
|
||||
<a name="id933389"></a>
|
||||
<a href="pair.html#fusion.support.pair.example">Example</a>
|
||||
</h4>
|
||||
<pre class="programlisting">
|
||||
|
@ -26,7 +26,7 @@
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="fusion.support.tag_of"></a><a href="tag_of.html" title="tag_of">tag_of</a></h3></div></div></div>
|
||||
<a name="fusion.support.tag_of.description"></a><h4>
|
||||
<a name="id904885"></a>
|
||||
<a name="id928472"></a>
|
||||
<a href="tag_of.html#fusion.support.tag_of.description">Description</a>
|
||||
</h4>
|
||||
<p>
|
||||
@ -40,7 +40,7 @@
|
||||
conforming sequences.
|
||||
</p>
|
||||
<a name="fusion.support.tag_of.synopsis"></a><h4>
|
||||
<a name="id904937"></a>
|
||||
<a name="id928524"></a>
|
||||
<a href="tag_of.html#fusion.support.tag_of.synopsis">Synopsis</a>
|
||||
</h4>
|
||||
<pre class="programlisting">
|
||||
@ -54,7 +54,7 @@
|
||||
<span class="special">}</span>
|
||||
</pre>
|
||||
<a name="fusion.support.tag_of.parameters"></a><h4>
|
||||
<a name="id905050"></a>
|
||||
<a name="id928638"></a>
|
||||
<a href="tag_of.html#fusion.support.tag_of.parameters">Parameters</a>
|
||||
</h4>
|
||||
<div class="informaltable"><table class="table">
|
||||
@ -64,19 +64,42 @@
|
||||
<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">T</span></code></td>
|
||||
<td>Any
|
||||
type</td>
|
||||
<td>The type to query.</td>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">T</span></code>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Any type
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The type to query.
|
||||
</p>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.support.tag_of.expression_semantics"></a><h4>
|
||||
<a name="id905118"></a>
|
||||
<a name="id928732"></a>
|
||||
<a href="tag_of.html#fusion.support.tag_of.expression_semantics">Expression Semantics</a>
|
||||
</h4>
|
||||
<pre class="programlisting">
|
||||
@ -90,14 +113,14 @@
|
||||
with <code class="computeroutput"><span class="identifier">T</span></code>.
|
||||
</p>
|
||||
<a name="fusion.support.tag_of.header"></a><h4>
|
||||
<a name="id905220"></a>
|
||||
<a name="id928836"></a>
|
||||
<a href="tag_of.html#fusion.support.tag_of.header">Header</a>
|
||||
</h4>
|
||||
<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">support</span><span class="special">/</span><span class="identifier">tag_of</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.support.tag_of.example"></a><h4>
|
||||
<a name="id905301"></a>
|
||||
<a name="id928918"></a>
|
||||
<a href="tag_of.html#fusion.support.tag_of.example">Example</a>
|
||||
</h4>
|
||||
<pre class="programlisting">
|
||||
|
Reference in New Issue
Block a user