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>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<65>1.<2E>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>
|
||||
|
Reference in New Issue
Block a user