forked from boostorg/fusion
Doc updates
[SVN r39468]
This commit is contained in:
@ -3,30 +3,30 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>category_of</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
|
||||
<link rel="up" href="../support.html" title="Support">
|
||||
<link rel="prev" href="tag_of.html" title="tag_of">
|
||||
<link rel="next" href="deduce.html" title="deduce">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%">
|
||||
<table cellpadding="2" width="100%"><tr>
|
||||
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
|
||||
<td align="center"><a href="../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../more/index.htm">More</a></td>
|
||||
</table>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="tag_of.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../support.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="deduce.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
<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>
|
||||
<div class="section" lang="en">
|
||||
<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="id929322"></a>
|
||||
<a name="id462410"></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="id929383"></a>
|
||||
<a name="id462480"></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="id929499"></a>
|
||||
<a name="id462610"></a>
|
||||
<a href="category_of.html#fusion.support.category_of.parameters">Parameters</a>
|
||||
</h4>
|
||||
<div class="informaltable"><table class="table">
|
||||
@ -79,7 +79,7 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">T</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">T</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@ -95,7 +95,7 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.support.category_of.expression_semantics"></a><h4>
|
||||
<a name="id929592"></a>
|
||||
<a name="id462716"></a>
|
||||
<a href="category_of.html#fusion.support.category_of.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h4>
|
||||
@ -103,7 +103,7 @@
|
||||
<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>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>:
|
||||
<span class="bold"><b>Return type</b></span>:
|
||||
</p>
|
||||
<p>
|
||||
For Iterators, the return type is derived from one of:
|
||||
@ -157,24 +157,24 @@
|
||||
<span class="special">}}</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Establishes the conceptual classification
|
||||
<span class="bold"><b>Semantics</b></span>: Establishes the conceptual classification
|
||||
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="id930125"></a>
|
||||
<a name="id463320"></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="id930209"></a>
|
||||
<a name="id463415"></a>
|
||||
<a href="category_of.html#fusion.support.category_of.example">Example</a>
|
||||
</h4>
|
||||
<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="../sequences/containers/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">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="../sequences/containers/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">vector_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="../sequences/containers/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="../sequences/containers/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>
|
||||
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span> <span class="identifier">is_base_of</span><span class="special"><</span><span class="identifier">forward_traversal_tag</span><span class="special">,</span> <span class="identifier">list_category</span><span class="special">></span> <span class="special">));</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span> <span class="identifier">is_base_of</span><span class="special"><</span><span class="identifier">random_access_traversal_tag</span><span class="special">,</span> <span class="identifier">vector_category</span><span class="special">></span> <span class="special">));</span>
|
||||
</pre>
|
||||
@ -186,7 +186,7 @@
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="tag_of.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../support.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="deduce.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
<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>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -3,30 +3,30 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>deduce</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
|
||||
<link rel="up" href="../support.html" title="Support">
|
||||
<link rel="prev" href="category_of.html" title="category_of">
|
||||
<link rel="next" href="deduce_sequence.html" title="deduce_sequence">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%">
|
||||
<table cellpadding="2" width="100%"><tr>
|
||||
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
|
||||
<td align="center"><a href="../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../more/index.htm">More</a></td>
|
||||
</table>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="category_of.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../support.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="deduce_sequence.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
<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>
|
||||
<div class="section" lang="en">
|
||||
<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="id930492"></a>
|
||||
<a name="id463735"></a>
|
||||
<a href="deduce.html#fusion.support.deduce.description">Description</a>
|
||||
</h4>
|
||||
<p>
|
||||
@ -34,19 +34,19 @@
|
||||
conversion</em></span></a> to the full argument type.
|
||||
</p>
|
||||
<p>
|
||||
It removes references to <code class="computeroutput"><span class="keyword">const</span></code>,
|
||||
references to array types are kept, even if the array is <code class="computeroutput"><span class="keyword">const</span></code>.
|
||||
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>).
|
||||
It removes references to <tt class="computeroutput"><span class="keyword">const</span></tt>,
|
||||
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>
|
||||
<a name="fusion.support.deduce.header"></a><h4>
|
||||
<a name="id930578"></a>
|
||||
<a name="id463834"></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="id930660"></a>
|
||||
<a name="id463928"></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="id930776"></a>
|
||||
<a name="id464059"></a>
|
||||
<a href="deduce.html#fusion.support.deduce.example">Example</a>
|
||||
</h4>
|
||||
<pre class="programlisting">
|
||||
@ -81,10 +81,10 @@
|
||||
<span class="special">}</span>
|
||||
</pre>
|
||||
<a name="fusion.support.deduce.see_also"></a><h4>
|
||||
<a name="id931097"></a>
|
||||
<a name="id464424"></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>
|
||||
<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>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
@ -93,7 +93,7 @@
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="category_of.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../support.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="deduce_sequence.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
<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>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -3,30 +3,30 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>deduce_sequence</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
|
||||
<link rel="up" href="../support.html" title="Support">
|
||||
<link rel="prev" href="deduce.html" title="deduce">
|
||||
<link rel="next" href="pair.html" title="pair">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%">
|
||||
<table cellpadding="2" width="100%"><tr>
|
||||
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
|
||||
<td align="center"><a href="../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../more/index.htm">More</a></td>
|
||||
</table>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="deduce.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../support.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="pair.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
<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>
|
||||
<div class="section" lang="en">
|
||||
<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="id931156"></a>
|
||||
<a name="id464492"></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="id931212"></a>
|
||||
<a name="id464556"></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="id931295"></a>
|
||||
<a name="id464650"></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="id931412"></a>
|
||||
<a name="id464781"></a>
|
||||
<a href="deduce_sequence.html#fusion.support.deduce_sequence.example">Example</a>
|
||||
</h4>
|
||||
<pre class="programlisting">
|
||||
@ -75,18 +75,18 @@
|
||||
<span class="special">};</span>
|
||||
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">T0</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">T1</span><span class="special">></span>
|
||||
<span class="identifier">holder</span><span class="special"><</span> <a href="../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="identifier">T0</span> <span class="keyword">const</span> <span class="special">&,</span> <span class="identifier">T1</span> <span class="keyword">const</span> <span class="special">&></span> <span class="special">></span>
|
||||
<span class="identifier">holder</span><span class="special"><</span> <a href="../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="identifier">T0</span> <span class="keyword">const</span> <span class="special">&,</span> <span class="identifier">T1</span> <span class="keyword">const</span> <span class="special">&></span> <span class="special">></span>
|
||||
<span class="identifier">make_holder</span><span class="special">(</span><span class="identifier">T0</span> <span class="keyword">const</span> <span class="special">&</span> <span class="identifier">a0</span><span class="special">,</span> <span class="identifier">T1</span> <span class="keyword">const</span> <span class="special">&</span> <span class="identifier">a1</span><span class="special">)</span>
|
||||
<span class="special">{</span>
|
||||
<span class="keyword">typedef</span> <a href="../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="identifier">T0</span> <span class="keyword">const</span> <span class="special">&,</span> <span class="identifier">T1</span> <span class="keyword">const</span> <span class="special">&></span> <span class="identifier">arg_vec_t</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="identifier">T0</span> <span class="keyword">const</span> <span class="special">&,</span> <span class="identifier">T1</span> <span class="keyword">const</span> <span class="special">&></span> <span class="identifier">arg_vec_t</span><span class="special">;</span>
|
||||
<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>
|
||||
<a name="fusion.support.deduce_sequence.see_also"></a><h4>
|
||||
<a name="id931907"></a>
|
||||
<a name="id465342"></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>
|
||||
<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>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
@ -95,7 +95,7 @@
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="deduce.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../support.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="pair.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
<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>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -3,41 +3,41 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>is_sequence</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
|
||||
<link rel="up" href="../support.html" title="Support">
|
||||
<link rel="prev" href="../support.html" title="Support">
|
||||
<link rel="next" href="is_view.html" title="is_view">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%">
|
||||
<table cellpadding="2" width="100%"><tr>
|
||||
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
|
||||
<td align="center"><a href="../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../more/index.htm">More</a></td>
|
||||
</table>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../support.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../support.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="is_view.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
<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>
|
||||
<div class="section" lang="en">
|
||||
<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="id926611"></a>
|
||||
<a name="id459341"></a>
|
||||
<a href="is_sequence.html#fusion.support.is_sequence.description">Description</a>
|
||||
</h4>
|
||||
<p>
|
||||
Metafunction that evaluates to <code class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code>
|
||||
if a certain type <code class="computeroutput"><span class="identifier">T</span></code> is a
|
||||
conforming Fusion <a href="../sequences.html" title="Sequences">Sequence</a>, <code class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></code>
|
||||
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
|
||||
conforming Fusion <a href="../sequences.html" title="Sequences">Sequence</a>, <tt class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></tt>
|
||||
otherwise. This may be specialized to accomodate clients which provide Fusion
|
||||
conforming sequences.
|
||||
</p>
|
||||
<a name="fusion.support.is_sequence.synopsis"></a><h4>
|
||||
<a name="id926695"></a>
|
||||
<a name="id459434"></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="id926811"></a>
|
||||
<a name="id459566"></a>
|
||||
<a href="is_sequence.html#fusion.support.is_sequence.parameters">Parameters</a>
|
||||
</h4>
|
||||
<div class="informaltable"><table class="table">
|
||||
@ -80,7 +80,7 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">T</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">T</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@ -96,7 +96,7 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.support.is_sequence.expression_semantics"></a><h4>
|
||||
<a name="id926904"></a>
|
||||
<a name="id459672"></a>
|
||||
<a href="is_sequence.html#fusion.support.is_sequence.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h4>
|
||||
@ -104,33 +104,33 @@
|
||||
<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>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: An <a href="http://www.boost.org/libs/mpl/doc/refmanual/integral-constant.html" target="_top">MPL
|
||||
<span class="bold"><b>Return type</b></span>: An <a href="http://www.boost.org/libs/mpl/doc/refmanual/integral-constant.html" target="_top">MPL
|
||||
Boolean Constant</a>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Metafunction that evaluates to
|
||||
<code class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code> if a certain type <code class="computeroutput"><span class="identifier">T</span></code>
|
||||
is a conforming Fusion sequence, <code class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></code>
|
||||
<span class="bold"><b>Semantics</b></span>: 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 conforming Fusion sequence, <tt class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></tt>
|
||||
otherwise.
|
||||
</p>
|
||||
<a name="fusion.support.is_sequence.header"></a><h4>
|
||||
<a name="id927055"></a>
|
||||
<a name="id459842"></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="id927138"></a>
|
||||
<a name="id459936"></a>
|
||||
<a href="is_sequence.html#fusion.support.is_sequence.example">Example</a>
|
||||
</h4>
|
||||
<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="../sequences/containers/list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a><span class="special"><></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="../sequences/containers/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="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="../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><></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="../sequences/containers/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="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="../sequences/containers/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>
|
||||
<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="../sequences/containers/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="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="../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><></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="../sequences/containers/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="special">));</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
@ -140,7 +140,7 @@
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../support.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../support.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="is_view.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
<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>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -3,44 +3,44 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>is_view</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
|
||||
<link rel="up" href="../support.html" title="Support">
|
||||
<link rel="prev" href="is_sequence.html" title="is_sequence">
|
||||
<link rel="next" href="tag_of.html" title="tag_of">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%">
|
||||
<table cellpadding="2" width="100%"><tr>
|
||||
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
|
||||
<td align="center"><a href="../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../more/index.htm">More</a></td>
|
||||
</table>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="is_sequence.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../support.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="tag_of.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
<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>
|
||||
<div class="section" lang="en">
|
||||
<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="id927534"></a>
|
||||
<a name="id460384"></a>
|
||||
<a href="is_view.html#fusion.support.is_view.description">Description</a>
|
||||
</h4>
|
||||
<p>
|
||||
Metafunction that evaluates to <code class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code>
|
||||
if a certain type <code class="computeroutput"><span class="identifier">T</span></code> is a
|
||||
conforming Fusion <a href="../sequences/views.html" title="Views">View</a>, <code class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></code>
|
||||
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
|
||||
conforming Fusion <a href="../sequences/views.html" title="Views">View</a>, <tt class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></tt>
|
||||
otherwise. A view is a specialized sequence that does not actually contain
|
||||
data. Views hold sequences which may be other views. In general, views are
|
||||
held by other views by value, while non-views are held by other views by
|
||||
reference. <code class="computeroutput"><span class="identifier">is_view</span></code> may be
|
||||
reference. <tt class="computeroutput"><span class="identifier">is_view</span></tt> may be
|
||||
specialized to accomodate clients providing Fusion conforming views.
|
||||
</p>
|
||||
<a name="fusion.support.is_view.synopsis"></a><h4>
|
||||
<a name="id927632"></a>
|
||||
<a name="id460495"></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="id927748"></a>
|
||||
<a name="id460626"></a>
|
||||
<a href="is_view.html#fusion.support.is_view.parameters">Parameters</a>
|
||||
</h4>
|
||||
<div class="informaltable"><table class="table">
|
||||
@ -83,7 +83,7 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">T</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">T</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@ -99,31 +99,31 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.support.is_view.expression_semantics"></a><h4>
|
||||
<a name="id927841"></a>
|
||||
<a name="id460732"></a>
|
||||
<a href="is_view.html#fusion.support.is_view.expression_semantics">Expression Semantics</a>
|
||||
</h4>
|
||||
<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>
|
||||
<span class="bold"><strong>Return type</strong></span>: An <a href="http://www.boost.org/libs/mpl/doc/refmanual/integral-constant.html" target="_top">MPL
|
||||
<span class="bold"><b>Return type</b></span>: An <a href="http://www.boost.org/libs/mpl/doc/refmanual/integral-constant.html" target="_top">MPL
|
||||
Boolean Constant</a>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Metafunction that evaluates to
|
||||
<code class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code> if a certain type <code class="computeroutput"><span class="identifier">T</span></code>
|
||||
is a conforming Fusion view, <code class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></code>
|
||||
<span class="bold"><b>Semantics</b></span>: 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 conforming Fusion view, <tt class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></tt>
|
||||
otherwise.
|
||||
</p>
|
||||
<a name="fusion.support.is_view.header"></a><h4>
|
||||
<a name="id927991"></a>
|
||||
<a name="id460902"></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="id928072"></a>
|
||||
<a name="id460995"></a>
|
||||
<a href="is_view.html#fusion.support.is_view.example">Example</a>
|
||||
</h4>
|
||||
<pre class="programlisting">
|
||||
@ -132,8 +132,8 @@
|
||||
|
||||
<span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span>
|
||||
<span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_pointer</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../sequences/containers/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="keyword">char</span><span class="special">,</span> <span class="keyword">long</span><span class="special">*,</span> <span class="keyword">bool</span><span class="special">,</span> <span class="keyword">double</span><span class="special">></span> <span class="identifier">vector_type</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../sequences/views/filter_view.html" title="filter_view"><code class="computeroutput"><span class="identifier">filter_view</span></code></a><span class="special"><</span><span class="identifier">vector_type</span><span class="special">,</span> <span class="identifier">is_pointer</span><span class="special"><</span><span class="identifier">_</span><span class="special">></span> <span class="special">></span> <span class="identifier">filter_view_type</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../sequences/containers/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="keyword">char</span><span class="special">,</span> <span class="keyword">long</span><span class="special">*,</span> <span class="keyword">bool</span><span class="special">,</span> <span class="keyword">double</span><span class="special">></span> <span class="identifier">vector_type</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../sequences/views/filter_view.html" title="filter_view"><tt class="computeroutput"><span class="identifier">filter_view</span></tt></a><span class="special"><</span><span class="identifier">vector_type</span><span class="special">,</span> <span class="identifier">is_pointer</span><span class="special"><</span><span class="identifier">_</span><span class="special">></span> <span class="special">></span> <span class="identifier">filter_view_type</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_view</span><span class="special"><</span><span class="identifier">filter_view_type</span><span class="special">></span> <span class="special">));</span>
|
||||
</pre>
|
||||
</div>
|
||||
@ -144,7 +144,7 @@
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="is_sequence.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../support.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="tag_of.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
<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>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -3,41 +3,41 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>pair</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
|
||||
<link rel="up" href="../support.html" title="Support">
|
||||
<link rel="prev" href="deduce_sequence.html" title="deduce_sequence">
|
||||
<link rel="next" href="../iterators.html" title="Iterators">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%">
|
||||
<table cellpadding="2" width="100%"><tr>
|
||||
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
|
||||
<td align="center"><a href="../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../more/index.htm">More</a></td>
|
||||
</table>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="deduce_sequence.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../support.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="../iterators.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
<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="../iterators.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<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="id931964"></a>
|
||||
<a name="id465407"></a>
|
||||
<a href="pair.html#fusion.support.pair.description">Description</a>
|
||||
</h4>
|
||||
<p>
|
||||
Fusion <code class="computeroutput"><span class="identifier">pair</span></code> type is a half
|
||||
runtime pair. A half runtime pair is similar to a <a href="../sequences/adapted/std__pair.html" title="std::pair"><code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></code></a>,
|
||||
but, unlike <a href="../sequences/adapted/std__pair.html" title="std::pair"><code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></code></a>,
|
||||
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="../sequences/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="../sequences/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.
|
||||
</p>
|
||||
<a name="fusion.support.pair.synopsis"></a><h4>
|
||||
<a name="id932056"></a>
|
||||
<a name="id465512"></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="id932447"></a>
|
||||
<a name="id465954"></a>
|
||||
<a href="pair.html#fusion.support.pair.template_parameters">Template parameters</a>
|
||||
</h4>
|
||||
<div class="informaltable"><table class="table">
|
||||
@ -111,36 +111,36 @@
|
||||
<div class="variablelist">
|
||||
<p class="title"><b>Notation</b></p>
|
||||
<dl>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">P</span></code></span></dt>
|
||||
<dd>
|
||||
Fusion pair type
|
||||
</dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">p</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">p2</span></code></span></dt>
|
||||
<dd>
|
||||
Fusion pairs
|
||||
</dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">F</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">S</span></code></span></dt>
|
||||
<dd>
|
||||
Arbitrary types
|
||||
</dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">s</span></code></span></dt>
|
||||
<dd>
|
||||
Value of type <code class="computeroutput"><span class="identifier">S</span></code>
|
||||
</dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">o</span></code></span></dt>
|
||||
<dd>
|
||||
Output stream
|
||||
</dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">i</span></code></span></dt>
|
||||
<dd>
|
||||
Input stream
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">P</span></tt></span></dt>
|
||||
<dd><p>
|
||||
Fusion pair type
|
||||
</p></dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">p</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">p2</span></tt></span></dt>
|
||||
<dd><p>
|
||||
Fusion pairs
|
||||
</p></dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">F</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">S</span></tt></span></dt>
|
||||
<dd><p>
|
||||
Arbitrary types
|
||||
</p></dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">s</span></tt></span></dt>
|
||||
<dd><p>
|
||||
Value of type <tt class="computeroutput"><span class="identifier">S</span></tt>
|
||||
</p></dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">o</span></tt></span></dt>
|
||||
<dd><p>
|
||||
Output stream
|
||||
</p></dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">i</span></tt></span></dt>
|
||||
<dd><p>
|
||||
Input stream
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<a name="fusion.support.pair.expression_semantics"></a><h4>
|
||||
<a name="id932676"></a>
|
||||
<a name="id466235"></a>
|
||||
<a href="pair.html#fusion.support.pair.expression_semantics">Expression Semantics</a>
|
||||
</h4>
|
||||
<div class="informaltable"><table class="table">
|
||||
@ -164,33 +164,33 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">P</span><span class="special">::</span><span class="identifier">first_type</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">P</span><span class="special">::</span><span class="identifier">first_type</span></tt>
|
||||
</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>.
|
||||
The type of the first template parameter, <tt class="computeroutput"><span class="identifier">F</span></tt>,
|
||||
equivalent to <tt 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></tt>.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">P</span><span class="special">::</span><span class="identifier">second_type</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">P</span><span class="special">::</span><span class="identifier">second_type</span></tt>
|
||||
</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>.
|
||||
The type of the second template parameter, <tt class="computeroutput"><span class="identifier">S</span></tt>,
|
||||
equivalent to <tt 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></tt>.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">P</span><span class="special">()</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">P</span><span class="special">()</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@ -202,37 +202,37 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">P</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">P</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Construct a pair given value for the second type, <code class="computeroutput"><span class="identifier">s</span></code>.
|
||||
Construct a pair given value for the second type, <tt class="computeroutput"><span class="identifier">s</span></tt>.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">P</span><span class="special">(</span><span class="identifier">p2</span><span class="special">)</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">P</span><span class="special">(</span><span class="identifier">p2</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Copy constructs a pair from another pair, <code class="computeroutput"><span class="identifier">p2</span></code>.
|
||||
Copy constructs a pair from another pair, <tt class="computeroutput"><span class="identifier">p2</span></tt>.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">p</span> <span class="special">=</span>
|
||||
<span class="identifier">p2</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">p</span> <span class="special">=</span>
|
||||
<span class="identifier">p2</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Assigns a pair, p1, from another pair, <code class="computeroutput"><span class="identifier">p2</span></code>.
|
||||
Assigns a pair, p1, from another pair, <tt class="computeroutput"><span class="identifier">p2</span></tt>.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
@ -244,45 +244,45 @@
|
||||
</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>
|
||||
Make a pair given the first type, <tt class="computeroutput"><span class="identifier">F</span></tt>,
|
||||
and a value for the second type, <tt class="computeroutput"><span class="identifier">s</span></tt>.
|
||||
The second type assumes the type of <tt class="computeroutput"><span class="identifier">s</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">o</span> <span class="special"><<</span>
|
||||
<span class="identifier">p</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">o</span> <span class="special"><<</span>
|
||||
<span class="identifier">p</span></tt>
|
||||
</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>.
|
||||
Output <tt class="computeroutput"><span class="identifier">p</span></tt> to output
|
||||
stream, <tt class="computeroutput"><span class="identifier">o</span></tt>.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">i</span> <span class="special">>></span>
|
||||
<span class="identifier">p</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">i</span> <span class="special">>></span>
|
||||
<span class="identifier">p</span></tt>
|
||||
</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>.
|
||||
Input <tt class="computeroutput"><span class="identifier">p</span></tt> from input
|
||||
stream, <tt class="computeroutput"><span class="identifier">i</span></tt>.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">p</span> <span class="special">==</span>
|
||||
<span class="identifier">p2</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">p</span> <span class="special">==</span>
|
||||
<span class="identifier">p2</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@ -294,8 +294,8 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">p</span> <span class="special">!=</span>
|
||||
<span class="identifier">p2</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">p</span> <span class="special">!=</span>
|
||||
<span class="identifier">p2</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@ -307,14 +307,14 @@
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.support.pair.header"></a><h4>
|
||||
<a name="id933307"></a>
|
||||
<a name="id466948"></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="id933389"></a>
|
||||
<a name="id467042"></a>
|
||||
<a href="pair.html#fusion.support.pair.example">Example</a>
|
||||
</h4>
|
||||
<pre class="programlisting">
|
||||
@ -331,7 +331,7 @@
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="deduce_sequence.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../support.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="../iterators.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
<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="../iterators.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -3,30 +3,30 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>tag_of</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
|
||||
<link rel="up" href="../support.html" title="Support">
|
||||
<link rel="prev" href="is_view.html" title="is_view">
|
||||
<link rel="next" href="category_of.html" title="category_of">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%">
|
||||
<table cellpadding="2" width="100%"><tr>
|
||||
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
|
||||
<td align="center"><a href="../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../more/index.htm">More</a></td>
|
||||
</table>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="is_view.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../support.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="category_of.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
<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>
|
||||
<div class="section" lang="en">
|
||||
<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="id928472"></a>
|
||||
<a name="id461446"></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="id928524"></a>
|
||||
<a name="id461505"></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="id928638"></a>
|
||||
<a name="id461634"></a>
|
||||
<a href="tag_of.html#fusion.support.tag_of.parameters">Parameters</a>
|
||||
</h4>
|
||||
<div class="informaltable"><table class="table">
|
||||
@ -83,7 +83,7 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">T</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">T</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@ -99,35 +99,35 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.support.tag_of.expression_semantics"></a><h4>
|
||||
<a name="id928732"></a>
|
||||
<a name="id461741"></a>
|
||||
<a href="tag_of.html#fusion.support.tag_of.expression_semantics">Expression Semantics</a>
|
||||
</h4>
|
||||
<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>
|
||||
<span class="bold"><strong>Return type</strong></span>: Any type.
|
||||
<span class="bold"><b>Return type</b></span>: Any type.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the tag type associated
|
||||
with <code class="computeroutput"><span class="identifier">T</span></code>.
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the tag type associated
|
||||
with <tt class="computeroutput"><span class="identifier">T</span></tt>.
|
||||
</p>
|
||||
<a name="fusion.support.tag_of.header"></a><h4>
|
||||
<a name="id928836"></a>
|
||||
<a name="id461860"></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="id928918"></a>
|
||||
<a name="id461953"></a>
|
||||
<a href="tag_of.html#fusion.support.tag_of.example">Example</a>
|
||||
</h4>
|
||||
<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 href="../sequences/containers/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 href="../sequences/containers/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 href="../sequences/containers/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 href="../sequences/containers/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>
|
||||
<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="../sequences/containers/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">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 href="../sequences/containers/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="../sequences/containers/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="../sequences/containers/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>
|
||||
|
||||
<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>
|
||||
@ -140,7 +140,7 @@
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="is_view.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../support.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="category_of.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
<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>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user