forked from boostorg/fusion
fusion: merge of associative iterators/views and the new fold interface
[SVN r58618]
This commit is contained in:
@@ -3,7 +3,11 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>category_of</title>
|
||||
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<<<<<<< .working
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
|
||||
=======
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
|
||||
>>>>>>> .merge-right.r57125
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../support.html" title="Support">
|
||||
<link rel="previous" href="tag_of.html" title="tag_of">
|
||||
@@ -22,6 +26,7 @@
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="tag_of.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../support.html"><img src="../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="deduce.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<<<<<<< .working
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage">
|
||||
<div><div><h3 class="title">
|
||||
@@ -33,16 +38,33 @@
|
||||
<a name="id415166"></a>
|
||||
<a href="category_of.html#fusion.support.category_of.description">Description</a>
|
||||
</h4>
|
||||
=======
|
||||
<div class="section" title="category_of">
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="fusion.support.category_of"></a><a class="link" href="category_of.html" title="category_of">category_of</a>
|
||||
</h3></div></div></div>
|
||||
<a name="fusion.support.category_of.description"></a><h5>
|
||||
<a name="id614510"></a>
|
||||
<a class="link" href="category_of.html#fusion.support.category_of.description">Description</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<p>
|
||||
A metafunction that establishes the conceptual classification of a particular
|
||||
<a href="../sequence.html" title="Sequence">Sequence</a> or <a href="../iterator.html" title="Iterator">Iterator</a>
|
||||
(see <a href="../iterator/concepts.html" title="Concepts">Iterator Concepts</a> and
|
||||
<a href="../sequence/concepts.html" title="Concepts">Sequence Concepts</a>).
|
||||
</p>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.category_of.synopsis"></a><h4>
|
||||
<a name="id415216"></a>
|
||||
<a href="category_of.html#fusion.support.category_of.synopsis">Synopsis</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.support.category_of.synopsis"></a><h5>
|
||||
<a name="id614546"></a>
|
||||
<a class="link" href="category_of.html#fusion.support.category_of.synopsis">Synopsis</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">traits</span>
|
||||
<span class="special">{</span>
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">T</span><span class="special">></span>
|
||||
@@ -52,10 +74,17 @@
|
||||
<span class="special">};</span>
|
||||
<span class="special">}</span>
|
||||
</pre>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.category_of.parameters"></a><h4>
|
||||
<a name="id415332"></a>
|
||||
<a href="category_of.html#fusion.support.category_of.parameters">Parameters</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.support.category_of.parameters"></a><h5>
|
||||
<a name="id614639"></a>
|
||||
<a class="link" href="category_of.html#fusion.support.category_of.parameters">Parameters</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -85,9 +114,15 @@
|
||||
</p></td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.category_of.expression_semantics"></a><h4>
|
||||
<a name="id415431"></a>
|
||||
<a href="category_of.html#fusion.support.category_of.expression_semantics">Expression
|
||||
=======
|
||||
<a name="fusion.support.category_of.expression_semantics"></a><h5>
|
||||
<a name="id614722"></a>
|
||||
<a class="link" href="category_of.html#fusion.support.category_of.expression_semantics">Expression
|
||||
>>>>>>> .merge-right.r57125
|
||||
Semantics</a>
|
||||
</h4>
|
||||
<pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">traits</span><span class="special">::</span><span class="identifier">category_of</span><span class="special"><</span><span class="identifier">T</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">category</span><span class="special">;</span>
|
||||
@@ -96,27 +131,7 @@
|
||||
<span class="bold"><b>Return type</b></span>:
|
||||
</p>
|
||||
<p>
|
||||
For Iterators, the return type is derived from one of:
|
||||
</p>
|
||||
<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">fusion</span>
|
||||
<span class="special">{</span>
|
||||
<span class="keyword">struct</span> <span class="identifier">incrementable_traversal_tag</span> <span class="special">{};</span>
|
||||
|
||||
<span class="keyword">struct</span> <span class="identifier">single_pass_traversal_tag</span>
|
||||
<span class="special">:</span> <span class="identifier">incrementable_traversal_tag</span> <span class="special">{};</span>
|
||||
|
||||
<span class="keyword">struct</span> <span class="identifier">forward_traversal_tag</span>
|
||||
<span class="special">:</span> <span class="identifier">single_pass_traversal_tag</span> <span class="special">{};</span>
|
||||
|
||||
<span class="keyword">struct</span> <span class="identifier">bidirectional_traversal_tag</span>
|
||||
<span class="special">:</span> <span class="identifier">forward_traversal_tag</span> <span class="special">{};</span>
|
||||
|
||||
<span class="keyword">struct</span> <span class="identifier">random_access_traversal_tag</span>
|
||||
<span class="special">:</span> <span class="identifier">bidirectional_traversal_tag</span> <span class="special">{};</span>
|
||||
<span class="special">}}</span>
|
||||
</pre>
|
||||
<p>
|
||||
For Sequences, the return type is derived from one of:
|
||||
The return type is derived from one of:
|
||||
</p>
|
||||
<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">fusion</span>
|
||||
<span class="special">{</span>
|
||||
@@ -140,24 +155,38 @@
|
||||
</p>
|
||||
<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">fusion</span>
|
||||
<span class="special">{</span>
|
||||
<span class="keyword">struct</span> <span class="identifier">associative_sequence_tag</span> <span class="special">{};</span>
|
||||
<span class="keyword">struct</span> <span class="identifier">associative_tag</span> <span class="special">{};</span>
|
||||
<span class="special">}}</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Establishes the conceptual classification
|
||||
of a particular <a href="../sequence.html" title="Sequence">Sequence</a> or <a href="../iterator.html" title="Iterator">Iterator</a>.
|
||||
</p>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.category_of.header"></a><h4>
|
||||
<a name="id415978"></a>
|
||||
<a href="category_of.html#fusion.support.category_of.header">Header</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.support.category_of.header"></a><h5>
|
||||
<a name="id616377"></a>
|
||||
<a class="link" href="category_of.html#fusion.support.category_of.header">Header</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<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>
|
||||
<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">include</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>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.category_of.example"></a><h4>
|
||||
<a name="id416116"></a>
|
||||
<a href="category_of.html#fusion.support.category_of.example">Example</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.support.category_of.example"></a><h5>
|
||||
<a name="id616485"></a>
|
||||
<a class="link" href="category_of.html#fusion.support.category_of.example">Example</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<pre class="programlisting"><span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_base_of</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <span class="identifier">traits</span><span class="special">::</span><span class="identifier">category_of</span><span class="special"><</span><a href="../container/list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a><span class="special"><></span> <span class="special">>::</span><span class="identifier">type</span> <span class="identifier">list_category</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <span class="identifier">traits</span><span class="special">::</span><span class="identifier">category_of</span><span class="special"><</span><a href="../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><></span> <span class="special">>::</span><span class="identifier">type</span> <span class="identifier">vector_category</span><span class="special">;</span>
|
||||
|
||||
@@ -3,7 +3,11 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>deduce</title>
|
||||
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<<<<<<< .working
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
|
||||
=======
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
|
||||
>>>>>>> .merge-right.r57125
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../support.html" title="Support">
|
||||
<link rel="previous" href="category_of.html" title="category_of">
|
||||
@@ -22,6 +26,7 @@
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="category_of.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../support.html"><img src="../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="deduce_sequence.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<<<<<<< .working
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage">
|
||||
<div><div><h3 class="title">
|
||||
@@ -33,6 +38,16 @@
|
||||
<a name="id416406"></a>
|
||||
<a href="deduce.html#fusion.support.deduce.description">Description</a>
|
||||
</h4>
|
||||
=======
|
||||
<div class="section" title="deduce">
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="fusion.support.deduce"></a><a class="link" href="deduce.html" title="deduce">deduce</a>
|
||||
</h3></div></div></div>
|
||||
<a name="fusion.support.deduce.description"></a><h5>
|
||||
<a name="id616706"></a>
|
||||
<a class="link" href="deduce.html#fusion.support.deduce.description">Description</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<p>
|
||||
Metafunction to apply <a href="../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element
|
||||
conversion</em></span></a> to the full argument type.
|
||||
@@ -42,17 +57,31 @@
|
||||
references to array types are kept, even if the array is <tt class="computeroutput"><span class="keyword">const</span></tt>.
|
||||
Reference wrappers are removed (see <a href="../notes.html#fusion.notes.boost__ref"><tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">ref</span></tt></a>).
|
||||
</p>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.deduce.header"></a><h4>
|
||||
<a name="id416503"></a>
|
||||
<a href="deduce.html#fusion.support.deduce.header">Header</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.support.deduce.header"></a><h5>
|
||||
<a name="id616763"></a>
|
||||
<a class="link" href="deduce.html#fusion.support.deduce.header">Header</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<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>
|
||||
<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">include</span><span class="special">/</span><span class="identifier">deduce</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.deduce.synopsis"></a><h4>
|
||||
<a name="id416658"></a>
|
||||
<a href="deduce.html#fusion.support.deduce.synopsis">Synopsis</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.support.deduce.synopsis"></a><h5>
|
||||
<a name="id616871"></a>
|
||||
<a class="link" href="deduce.html#fusion.support.deduce.synopsis">Synopsis</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">traits</span>
|
||||
<span class="special">{</span>
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">T</span><span class="special">></span>
|
||||
@@ -62,10 +91,17 @@
|
||||
<span class="special">};</span>
|
||||
<span class="special">}</span>
|
||||
</pre>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.deduce.example"></a><h4>
|
||||
<a name="id416787"></a>
|
||||
<a href="deduce.html#fusion.support.deduce.example">Example</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.support.deduce.example"></a><h5>
|
||||
<a name="id616965"></a>
|
||||
<a class="link" href="deduce.html#fusion.support.deduce.example">Example</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">T</span><span class="special">></span>
|
||||
<span class="keyword">struct</span> <span class="identifier">holder</span>
|
||||
<span class="special">{</span>
|
||||
@@ -82,11 +118,19 @@
|
||||
<span class="keyword">return</span> <span class="identifier">holder</span><span class="special"><</span><span class="identifier">T</span><span class="special">>(</span><span class="identifier">a</span><span class="special">);</span>
|
||||
<span class="special">}</span>
|
||||
</pre>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.deduce.see_also"></a><h4>
|
||||
<a name="id417150"></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"><tt class="computeroutput"><span class="identifier">deduce_sequence</span></tt></a></li></ul></div>
|
||||
=======
|
||||
<a name="fusion.support.deduce.see_also"></a><h5>
|
||||
<a name="id617233"></a>
|
||||
<a class="link" href="deduce.html#fusion.support.deduce.see_also">See also</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><a class="link" href="deduce_sequence.html" title="deduce_sequence"><code class="computeroutput"><span class="identifier">deduce_sequence</span></code></a></li></ul></div>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
|
||||
@@ -3,7 +3,11 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>deduce_sequence</title>
|
||||
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<<<<<<< .working
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
|
||||
=======
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
|
||||
>>>>>>> .merge-right.r57125
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../support.html" title="Support">
|
||||
<link rel="previous" href="deduce.html" title="deduce">
|
||||
@@ -22,6 +26,7 @@
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="deduce.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../support.html"><img src="../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="pair.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<<<<<<< .working
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage">
|
||||
<div><div><h3 class="title">
|
||||
@@ -33,6 +38,16 @@
|
||||
<a name="id417217"></a>
|
||||
<a href="deduce_sequence.html#fusion.support.deduce_sequence.description">Description</a>
|
||||
</h4>
|
||||
=======
|
||||
<div class="section" title="deduce_sequence">
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="fusion.support.deduce_sequence"></a><a class="link" href="deduce_sequence.html" title="deduce_sequence">deduce_sequence</a>
|
||||
</h3></div></div></div>
|
||||
<a name="fusion.support.deduce_sequence.description"></a><h5>
|
||||
<a name="id617273"></a>
|
||||
<a class="link" href="deduce_sequence.html#fusion.support.deduce_sequence.description">Description</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<p>
|
||||
Applies <a href="../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element
|
||||
conversion</em></span></a> to each element in a <a href="../sequence/concepts/forward_sequence.html" title="Forward
|
||||
@@ -42,17 +57,31 @@
|
||||
Access Sequence</a> that provides a converting constructor accepting the
|
||||
original type as its argument.
|
||||
</p>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.deduce_sequence.header"></a><h4>
|
||||
<a name="id417277"></a>
|
||||
<a href="deduce_sequence.html#fusion.support.deduce_sequence.header">Header</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.support.deduce_sequence.header"></a><h5>
|
||||
<a name="id617306"></a>
|
||||
<a class="link" href="deduce_sequence.html#fusion.support.deduce_sequence.header">Header</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<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>
|
||||
<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">include</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>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.deduce_sequence.synopsis"></a><h4>
|
||||
<a name="id417432"></a>
|
||||
<a href="deduce_sequence.html#fusion.support.deduce_sequence.synopsis">Synopsis</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.support.deduce_sequence.synopsis"></a><h5>
|
||||
<a name="id617414"></a>
|
||||
<a class="link" href="deduce_sequence.html#fusion.support.deduce_sequence.synopsis">Synopsis</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">traits</span>
|
||||
<span class="special">{</span>
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
@@ -62,10 +91,17 @@
|
||||
<span class="special">};</span>
|
||||
<span class="special">}</span>
|
||||
</pre>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.deduce_sequence.example"></a><h4>
|
||||
<a name="id417561"></a>
|
||||
<a href="deduce_sequence.html#fusion.support.deduce_sequence.example">Example</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.support.deduce_sequence.example"></a><h5>
|
||||
<a name="id617507"></a>
|
||||
<a class="link" href="deduce_sequence.html#fusion.support.deduce_sequence.example">Example</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">Seq</span><span class="special">></span>
|
||||
<span class="keyword">struct</span> <span class="identifier">holder</span>
|
||||
<span class="special">{</span>
|
||||
@@ -84,11 +120,19 @@
|
||||
<span class="keyword">return</span> <span class="identifier">holder</span><span class="special"><</span><span class="identifier">arg_vec_t</span><span class="special">>(</span> <span class="identifier">arg_vec_t</span><span class="special">(</span><span class="identifier">a0</span><span class="special">,</span><span class="identifier">a1</span><span class="special">)</span> <span class="special">);</span>
|
||||
<span class="special">}</span>
|
||||
</pre>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.deduce_sequence.see_also"></a><h4>
|
||||
<a name="id418120"></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"><tt class="computeroutput"><span class="identifier">deduce</span></tt></a></li></ul></div>
|
||||
=======
|
||||
<a name="fusion.support.deduce_sequence.see_also"></a><h5>
|
||||
<a name="id617918"></a>
|
||||
<a class="link" href="deduce_sequence.html#fusion.support.deduce_sequence.see_also">See also</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><a class="link" href="deduce.html" title="deduce"><code class="computeroutput"><span class="identifier">deduce</span></code></a></li></ul></div>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
|
||||
@@ -3,7 +3,11 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>is_sequence</title>
|
||||
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<<<<<<< .working
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
|
||||
=======
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
|
||||
>>>>>>> .merge-right.r57125
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../support.html" title="Support">
|
||||
<link rel="previous" href="../support.html" title="Support">
|
||||
@@ -22,6 +26,7 @@
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../support.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../support.html"><img src="../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="is_view.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<<<<<<< .working
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage">
|
||||
<div><div><h3 class="title">
|
||||
@@ -33,6 +38,16 @@
|
||||
<a name="id412300"></a>
|
||||
<a href="is_sequence.html#fusion.support.is_sequence.description">Description</a>
|
||||
</h4>
|
||||
=======
|
||||
<div class="section" title="is_sequence">
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="fusion.support.is_sequence"></a><a class="link" href="is_sequence.html" title="is_sequence">is_sequence</a>
|
||||
</h3></div></div></div>
|
||||
<a name="fusion.support.is_sequence.description"></a><h5>
|
||||
<a name="id612247"></a>
|
||||
<a class="link" href="is_sequence.html#fusion.support.is_sequence.description">Description</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<p>
|
||||
Metafunction that evaluates to <tt class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></tt>
|
||||
if a certain type <tt class="computeroutput"><span class="identifier">T</span></tt> is a
|
||||
@@ -40,10 +55,17 @@
|
||||
otherwise. This may be specialized to accomodate clients which provide Fusion
|
||||
conforming sequences.
|
||||
</p>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.is_sequence.synopsis"></a><h4>
|
||||
<a name="id412380"></a>
|
||||
<a href="is_sequence.html#fusion.support.is_sequence.synopsis">Synopsis</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.support.is_sequence.synopsis"></a><h5>
|
||||
<a name="id612305"></a>
|
||||
<a class="link" href="is_sequence.html#fusion.support.is_sequence.synopsis">Synopsis</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">traits</span>
|
||||
<span class="special">{</span>
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">T</span><span class="special">></span>
|
||||
@@ -53,10 +75,17 @@
|
||||
<span class="special">};</span>
|
||||
<span class="special">}</span>
|
||||
</pre>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.is_sequence.parameters"></a><h4>
|
||||
<a name="id412496"></a>
|
||||
<a href="is_sequence.html#fusion.support.is_sequence.parameters">Parameters</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.support.is_sequence.parameters"></a><h5>
|
||||
<a name="id612398"></a>
|
||||
<a class="link" href="is_sequence.html#fusion.support.is_sequence.parameters">Parameters</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -86,9 +115,15 @@
|
||||
</p></td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.is_sequence.expression_semantics"></a><h4>
|
||||
<a name="id412595"></a>
|
||||
<a href="is_sequence.html#fusion.support.is_sequence.expression_semantics">Expression
|
||||
=======
|
||||
<a name="fusion.support.is_sequence.expression_semantics"></a><h5>
|
||||
<a name="id612481"></a>
|
||||
<a class="link" href="is_sequence.html#fusion.support.is_sequence.expression_semantics">Expression
|
||||
>>>>>>> .merge-right.r57125
|
||||
Semantics</a>
|
||||
</h4>
|
||||
<pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">traits</span><span class="special">::</span><span class="identifier">is_sequence</span><span class="special"><</span><span class="identifier">T</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">c</span><span class="special">;</span>
|
||||
@@ -103,17 +138,31 @@
|
||||
is a conforming Fusion sequence, <tt class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></tt>
|
||||
otherwise.
|
||||
</p>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.is_sequence.header"></a><h4>
|
||||
<a name="id412744"></a>
|
||||
<a href="is_sequence.html#fusion.support.is_sequence.header">Header</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.support.is_sequence.header"></a><h5>
|
||||
<a name="id612595"></a>
|
||||
<a class="link" href="is_sequence.html#fusion.support.is_sequence.header">Header</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<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>
|
||||
<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">include</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>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.is_sequence.example"></a><h4>
|
||||
<a name="id412883"></a>
|
||||
<a href="is_sequence.html#fusion.support.is_sequence.example">Example</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.support.is_sequence.example"></a><h5>
|
||||
<a name="id612703"></a>
|
||||
<a class="link" href="is_sequence.html#fusion.support.is_sequence.example">Example</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<pre class="programlisting"><span class="identifier">BOOST_MPL_ASSERT_NOT</span><span class="special">((</span> <span class="identifier">traits</span><span class="special">::</span><span class="identifier">is_sequence</span><span class="special"><</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special"><</span><span class="keyword">int</span><span class="special">></span> <span class="special">></span> <span class="special">));</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT_NOT</span><span class="special">((</span> <span class="identifier">is_sequence</span><span class="special"><</span> <span class="keyword">int</span> <span class="special">></span> <span class="special">));</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span> <span class="identifier">traits</span><span class="special">::</span><span class="identifier">is_sequence</span><span class="special"><</span><a href="../container/list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a><span class="special"><></span> <span class="special">></span> <span class="special">));</span>
|
||||
|
||||
@@ -3,7 +3,11 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>is_view</title>
|
||||
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<<<<<<< .working
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
|
||||
=======
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
|
||||
>>>>>>> .merge-right.r57125
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../support.html" title="Support">
|
||||
<link rel="previous" href="is_sequence.html" title="is_sequence">
|
||||
@@ -22,6 +26,7 @@
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="is_sequence.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../support.html"><img src="../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="tag_of.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<<<<<<< .working
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage">
|
||||
<div><div><h3 class="title">
|
||||
@@ -33,6 +38,16 @@
|
||||
<a name="id413272"></a>
|
||||
<a href="is_view.html#fusion.support.is_view.description">Description</a>
|
||||
</h4>
|
||||
=======
|
||||
<div class="section" title="is_view">
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="fusion.support.is_view"></a><a class="link" href="is_view.html" title="is_view">is_view</a>
|
||||
</h3></div></div></div>
|
||||
<a name="fusion.support.is_view.description"></a><h5>
|
||||
<a name="id613016"></a>
|
||||
<a class="link" href="is_view.html#fusion.support.is_view.description">Description</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<p>
|
||||
Metafunction that evaluates to <tt class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></tt>
|
||||
if a certain type <tt class="computeroutput"><span class="identifier">T</span></tt> is a
|
||||
@@ -43,10 +58,17 @@
|
||||
reference. <tt class="computeroutput"><span class="identifier">is_view</span></tt> may be
|
||||
specialized to accomodate clients providing Fusion conforming views.
|
||||
</p>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.is_view.synopsis"></a><h4>
|
||||
<a name="id413366"></a>
|
||||
<a href="is_view.html#fusion.support.is_view.synopsis">Synopsis</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.support.is_view.synopsis"></a><h5>
|
||||
<a name="id613080"></a>
|
||||
<a class="link" href="is_view.html#fusion.support.is_view.synopsis">Synopsis</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">traits</span>
|
||||
<span class="special">{</span>
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">T</span><span class="special">></span>
|
||||
@@ -56,10 +78,17 @@
|
||||
<span class="special">};</span>
|
||||
<span class="special">}</span>
|
||||
</pre>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.is_view.parameters"></a><h4>
|
||||
<a name="id413482"></a>
|
||||
<a href="is_view.html#fusion.support.is_view.parameters">Parameters</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.support.is_view.parameters"></a><h5>
|
||||
<a name="id613174"></a>
|
||||
<a class="link" href="is_view.html#fusion.support.is_view.parameters">Parameters</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -89,10 +118,17 @@
|
||||
</p></td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.is_view.expression_semantics"></a><h4>
|
||||
<a name="id413581"></a>
|
||||
<a href="is_view.html#fusion.support.is_view.expression_semantics">Expression Semantics</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.support.is_view.expression_semantics"></a><h5>
|
||||
<a name="id613257"></a>
|
||||
<a class="link" href="is_view.html#fusion.support.is_view.expression_semantics">Expression Semantics</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">traits</span><span class="special">::</span><span class="identifier">is_view</span><span class="special"><</span><span class="identifier">T</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">c</span><span class="special">;</span>
|
||||
</pre>
|
||||
<p>
|
||||
@@ -105,17 +141,31 @@
|
||||
is a conforming Fusion view, <tt class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></tt>
|
||||
otherwise.
|
||||
</p>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.is_view.header"></a><h4>
|
||||
<a name="id413730"></a>
|
||||
<a href="is_view.html#fusion.support.is_view.header">Header</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.support.is_view.header"></a><h5>
|
||||
<a name="id613371"></a>
|
||||
<a class="link" href="is_view.html#fusion.support.is_view.header">Header</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<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>
|
||||
<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">include</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>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.is_view.example"></a><h4>
|
||||
<a name="id413867"></a>
|
||||
<a href="is_view.html#fusion.support.is_view.example">Example</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.support.is_view.example"></a><h5>
|
||||
<a name="id613479"></a>
|
||||
<a class="link" href="is_view.html#fusion.support.is_view.example">Example</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<pre class="programlisting"><span class="identifier">BOOST_MPL_ASSERT_NOT</span><span class="special">((</span> <span class="identifier">traits</span><span class="special">::</span><span class="identifier">is_view</span><span class="special"><</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special"><</span><span class="keyword">int</span><span class="special">></span> <span class="special">></span> <span class="special">));</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT_NOT</span><span class="special">((</span> <span class="identifier">traits</span><span class="special">::</span><span class="identifier">is_view</span><span class="special"><</span><span class="keyword">int</span><span class="special">></span> <span class="special">));</span>
|
||||
|
||||
|
||||
@@ -3,7 +3,11 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>pair</title>
|
||||
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<<<<<<< .working
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
|
||||
=======
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
|
||||
>>>>>>> .merge-right.r57125
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../support.html" title="Support">
|
||||
<link rel="previous" href="deduce_sequence.html" title="deduce_sequence">
|
||||
@@ -22,6 +26,7 @@
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="deduce_sequence.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../support.html"><img src="../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="../iterator.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<<<<<<< .working
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage">
|
||||
<div><div><h3 class="title">
|
||||
@@ -33,17 +38,33 @@
|
||||
<a name="id418183"></a>
|
||||
<a href="pair.html#fusion.support.pair.description">Description</a>
|
||||
</h4>
|
||||
=======
|
||||
<div class="section" title="pair">
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="fusion.support.pair"></a><a class="link" href="pair.html" title="pair">pair</a>
|
||||
</h3></div></div></div>
|
||||
<a name="fusion.support.pair.description"></a><h5>
|
||||
<a name="id617959"></a>
|
||||
<a class="link" href="pair.html#fusion.support.pair.description">Description</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<p>
|
||||
Fusion <tt class="computeroutput"><span class="identifier">pair</span></tt> type is a half
|
||||
runtime pair. A half runtime pair is similar to a <a href="../adapted/std__pair.html" title="std::pair"><tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></tt></a>,
|
||||
but, unlike <a href="../adapted/std__pair.html" title="std::pair"><tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></tt></a>,
|
||||
the first type does not have data. It is used as elements in <span class="underline">_map</span>_s,
|
||||
for example.
|
||||
the first type does not have data. It is used as elements in <a class="link" href="../container/map.html" title="map"><code class="computeroutput"><span class="identifier">map</span></code></a>s, for example.
|
||||
</p>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.pair.synopsis"></a><h4>
|
||||
<a name="id418285"></a>
|
||||
<a href="pair.html#fusion.support.pair.synopsis">Synopsis</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.support.pair.synopsis"></a><h5>
|
||||
<a name="id618026"></a>
|
||||
<a class="link" href="pair.html#fusion.support.pair.synopsis">Synopsis</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">First</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Second</span><span class="special">></span>
|
||||
<span class="keyword">struct</span> <span class="identifier">pair</span><span class="special">;</span>
|
||||
|
||||
@@ -63,10 +84,17 @@
|
||||
<span class="keyword">typename</span> <span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_pair</span><span class="special"><</span><span class="identifier">First</span><span class="special">,</span><span class="identifier">Second</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<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>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.pair.template_parameters"></a><h4>
|
||||
<a name="id418690"></a>
|
||||
<a href="pair.html#fusion.support.pair.template_parameters">Template parameters</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.support.pair.template_parameters"></a><h5>
|
||||
<a name="id618322"></a>
|
||||
<a class="link" href="pair.html#fusion.support.pair.template_parameters">Template parameters</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -130,10 +158,17 @@
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.pair.expression_semantics"></a><h4>
|
||||
<a name="id418971"></a>
|
||||
<a href="pair.html#fusion.support.pair.expression_semantics">Expression Semantics</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.support.pair.expression_semantics"></a><h5>
|
||||
<a name="id618540"></a>
|
||||
<a class="link" href="pair.html#fusion.support.pair.expression_semantics">Expression Semantics</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -258,17 +293,31 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.pair.header"></a><h4>
|
||||
<a name="id419746"></a>
|
||||
<a href="pair.html#fusion.support.pair.header">Header</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.support.pair.header"></a><h5>
|
||||
<a name="id619127"></a>
|
||||
<a class="link" href="pair.html#fusion.support.pair.header">Header</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<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>
|
||||
<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">include</span><span class="special">/</span><span class="identifier">pair</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.pair.example"></a><h4>
|
||||
<a name="id419900"></a>
|
||||
<a href="pair.html#fusion.support.pair.example">Example</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.support.pair.example"></a><h5>
|
||||
<a name="id619235"></a>
|
||||
<a class="link" href="pair.html#fusion.support.pair.example">Example</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<pre class="programlisting"><span class="identifier">pair</span><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="identifier">p</span><span class="special">(</span><span class="char">'X'</span><span class="special">);</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">p</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">make_pair</span><span class="special"><</span><span class="keyword">int</span><span class="special">>(</span><span class="char">'X'</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
|
||||
@@ -3,7 +3,11 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>tag_of</title>
|
||||
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<<<<<<< .working
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
|
||||
=======
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
|
||||
>>>>>>> .merge-right.r57125
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../support.html" title="Support">
|
||||
<link rel="previous" href="is_view.html" title="is_view">
|
||||
@@ -22,6 +26,7 @@
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="is_view.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../support.html"><img src="../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="category_of.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<<<<<<< .working
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage">
|
||||
<div><div><h3 class="title">
|
||||
@@ -33,6 +38,16 @@
|
||||
<a name="id414266"></a>
|
||||
<a href="tag_of.html#fusion.support.tag_of.description">Description</a>
|
||||
</h4>
|
||||
=======
|
||||
<div class="section" title="tag_of">
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="fusion.support.tag_of"></a><a class="link" href="tag_of.html" title="tag_of">tag_of</a>
|
||||
</h3></div></div></div>
|
||||
<a name="fusion.support.tag_of.description"></a><h5>
|
||||
<a name="id613799"></a>
|
||||
<a class="link" href="tag_of.html#fusion.support.tag_of.description">Description</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<p>
|
||||
All conforming Fusion sequences and iterators have an associated tag type.
|
||||
The purpose of the tag is to enable <a href="../notes.html#fusion.notes.tag_dispatching"><span class="emphasis"><em>tag
|
||||
@@ -43,10 +58,17 @@
|
||||
This metafunction may be specialized to accomodate clients providing Fusion
|
||||
conforming sequences.
|
||||
</p>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.tag_of.synopsis"></a><h4>
|
||||
<a name="id414314"></a>
|
||||
<a href="tag_of.html#fusion.support.tag_of.synopsis">Synopsis</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.support.tag_of.synopsis"></a><h5>
|
||||
<a name="id613830"></a>
|
||||
<a class="link" href="tag_of.html#fusion.support.tag_of.synopsis">Synopsis</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">traits</span>
|
||||
<span class="special">{</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
@@ -56,10 +78,17 @@
|
||||
<span class="special">};</span>
|
||||
<span class="special">}</span>
|
||||
</pre>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.tag_of.parameters"></a><h4>
|
||||
<a name="id414428"></a>
|
||||
<a href="tag_of.html#fusion.support.tag_of.parameters">Parameters</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.support.tag_of.parameters"></a><h5>
|
||||
<a name="id613923"></a>
|
||||
<a class="link" href="tag_of.html#fusion.support.tag_of.parameters">Parameters</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -89,10 +118,17 @@
|
||||
</p></td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.tag_of.expression_semantics"></a><h4>
|
||||
<a name="id414528"></a>
|
||||
<a href="tag_of.html#fusion.support.tag_of.expression_semantics">Expression Semantics</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.support.tag_of.expression_semantics"></a><h5>
|
||||
<a name="id614006"></a>
|
||||
<a class="link" href="tag_of.html#fusion.support.tag_of.expression_semantics">Expression Semantics</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">traits</span><span class="special">::</span><span class="identifier">tag_of</span><span class="special"><</span><span class="identifier">T</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">tag</span><span class="special">;</span>
|
||||
</pre>
|
||||
<p>
|
||||
@@ -102,13 +138,21 @@
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the tag type associated
|
||||
with <tt class="computeroutput"><span class="identifier">T</span></tt>.
|
||||
</p>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.tag_of.header"></a><h4>
|
||||
<a name="id414630"></a>
|
||||
<a href="tag_of.html#fusion.support.tag_of.header">Header</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.support.tag_of.header"></a><h5>
|
||||
<a name="id614086"></a>
|
||||
<a class="link" href="tag_of.html#fusion.support.tag_of.header">Header</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<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>
|
||||
<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">include</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>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.support.tag_of.example"></a><h4>
|
||||
<a name="id414767"></a>
|
||||
<a href="tag_of.html#fusion.support.tag_of.example">Example</a>
|
||||
@@ -117,6 +161,16 @@
|
||||
<span class="keyword">typedef</span> <span class="identifier">traits</span><span class="special">::</span><span class="identifier">tag_of</span><span class="special"><</span><a href="../container/list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">></span> <span class="special">>::</span><span class="identifier">type</span> <span class="identifier">tag2</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <span class="identifier">traits</span><span class="special">::</span><span class="identifier">tag_of</span><span class="special"><</span><a href="../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><></span> <span class="special">>::</span><span class="identifier">type</span> <span class="identifier">tag3</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <span class="identifier">traits</span><span class="special">::</span><span class="identifier">tag_of</span><span class="special"><</span><a href="../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">></span> <span class="special">>::</span><span class="identifier">type</span> <span class="identifier">tag4</span><span class="special">;</span>
|
||||
=======
|
||||
<a name="fusion.support.tag_of.example"></a><h5>
|
||||
<a name="id614194"></a>
|
||||
<a class="link" href="tag_of.html#fusion.support.tag_of.example">Example</a>
|
||||
</h5>
|
||||
<pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">traits</span><span class="special">::</span><span class="identifier">tag_of</span><span class="special"><</span><a class="link" href="../container/list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a><span class="special"><></span> <span class="special">>::</span><span class="identifier">type</span> <span class="identifier">tag1</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <span class="identifier">traits</span><span class="special">::</span><span class="identifier">tag_of</span><span class="special"><</span><a class="link" href="../container/list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">></span> <span class="special">>::</span><span class="identifier">type</span> <span class="identifier">tag2</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <span class="identifier">traits</span><span class="special">::</span><span class="identifier">tag_of</span><span class="special"><</span><a class="link" href="../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><></span> <span class="special">>::</span><span class="identifier">type</span> <span class="identifier">tag3</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <span class="identifier">traits</span><span class="special">::</span><span class="identifier">tag_of</span><span class="special"><</span><a class="link" href="../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">></span> <span class="special">>::</span><span class="identifier">type</span> <span class="identifier">tag4</span><span class="special">;</span>
|
||||
>>>>>>> .merge-right.r57125
|
||||
|
||||
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special"><</span><span class="identifier">tag1</span><span class="special">,</span> <span class="identifier">tag2</span><span class="special">>));</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special"><</span><span class="identifier">tag3</span><span class="special">,</span> <span class="identifier">tag4</span><span class="special">>));</span>
|
||||
|
||||
Reference in New Issue
Block a user