forked from boostorg/fusion
fusion: merge of associative iterators/views and the new fold interface
[SVN r58618]
This commit is contained in:
1 parent
b605617c4f
commit
cda74605fc
379 files changed
+28481
-2185
No files matched your search
@@ -1,10 +1,18 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>at</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">
|
||||
<<<<<<< .working
|
||||
>>>>>>> .merge-right.r57125
|
||||
<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
=======
|
||||
<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
>>>>>>> .merge-right.r58299
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="previous" href="size.html" title="size">
|
||||
<link rel="next" href="at_c.html" title="at_c">
|
||||
@@ -30,15 +38,65 @@
|
||||
<div></div>
|
||||
</div>
|
||||
<a name="fusion.sequence.intrinsic.functions.at.description"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id454767"></a>
|
||||
<a href="at.html#fusion.sequence.intrinsic.functions.at.description">Description</a>
|
||||
=======
|
||||
<a name="id705408"></a>
|
||||
=======
|
||||
<a name="id667405"></a>
|
||||
=======
|
||||
<a name="id659759"></a>
|
||||
=======
|
||||
<a name="id679987"></a>
|
||||
=======
|
||||
<a name="id669280"></a>
|
||||
=======
|
||||
<a name="id666003"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="at.html#fusion.sequence.intrinsic.functions.at.description">Description</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<p>
|
||||
Returns the N-th element from the beginning of the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.at.synopsis"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id454796"></a>
|
||||
<a href="at.html#fusion.sequence.intrinsic.functions.at.synopsis">Synopsis</a>
|
||||
=======
|
||||
<a name="id705425"></a>
|
||||
=======
|
||||
<a name="id667421"></a>
|
||||
=======
|
||||
<a name="id659776"></a>
|
||||
=======
|
||||
<a name="id680004"></a>
|
||||
=======
|
||||
<a name="id669297"></a>
|
||||
=======
|
||||
<a name="id666020"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="at.html#fusion.sequence.intrinsic.functions.at.synopsis">Synopsis</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">N</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/at.html" title="at"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
@@ -49,8 +107,33 @@
|
||||
<span class="identifier">at</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.at.parameters"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id455124"></a>
|
||||
<a href="at.html#fusion.sequence.intrinsic.functions.at.parameters">Parameters</a>
|
||||
=======
|
||||
<a name="id705658"></a>
|
||||
=======
|
||||
<a name="id667791"></a>
|
||||
=======
|
||||
<a name="id660145"></a>
|
||||
=======
|
||||
<a name="id681534"></a>
|
||||
=======
|
||||
<a name="id671305"></a>
|
||||
=======
|
||||
<a name="id668028"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="at.html#fusion.sequence.intrinsic.functions.at.parameters">Parameters</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -98,8 +181,33 @@
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.at.expression_semantics"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id455282"></a>
|
||||
<a href="at.html#fusion.sequence.intrinsic.functions.at.expression_semantics">Expression
|
||||
=======
|
||||
<a name="id705783"></a>
|
||||
=======
|
||||
<a name="id667916"></a>
|
||||
=======
|
||||
<a name="id660270"></a>
|
||||
=======
|
||||
<a name="id681659"></a>
|
||||
=======
|
||||
<a name="id671430"></a>
|
||||
=======
|
||||
<a name="id668153"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="at.html#fusion.sequence.intrinsic.functions.at.expression_semantics">Expression
|
||||
>>>>>>> .merge-right.r57125
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="identifier">at</span><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
@@ -124,15 +232,65 @@
|
||||
<pre class="programlisting"><a href="../../../iterator/functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><a href="../../../iterator/functions/advance.html" title="advance"><tt class="computeroutput"><span class="identifier">advance</span></tt></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><a href="begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)))</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.at.header"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id455597"></a>
|
||||
<a href="at.html#fusion.sequence.intrinsic.functions.at.header">Header</a>
|
||||
=======
|
||||
<a name="id705993"></a>
|
||||
=======
|
||||
<a name="id668126"></a>
|
||||
=======
|
||||
<a name="id660480"></a>
|
||||
=======
|
||||
<a name="id681869"></a>
|
||||
=======
|
||||
<a name="id671640"></a>
|
||||
=======
|
||||
<a name="id668363"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="at.html#fusion.sequence.intrinsic.functions.at.header">Header</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">sequence</span><span class="special">/</span><span class="identifier">intrinsic</span><span class="special">/</span><span class="identifier">at</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">at</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.at.example"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id455760"></a>
|
||||
<a href="at.html#fusion.sequence.intrinsic.functions.at.example">Example</a>
|
||||
=======
|
||||
<a name="id706108"></a>
|
||||
=======
|
||||
<a name="id668241"></a>
|
||||
=======
|
||||
<a name="id660595"></a>
|
||||
=======
|
||||
<a name="id681984"></a>
|
||||
=======
|
||||
<a name="id671755"></a>
|
||||
=======
|
||||
<a name="id668478"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="at.html#fusion.sequence.intrinsic.functions.at.example">Example</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><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="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span> <span class="identifier">v</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">at</span><span class="special"><</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">int_</span><span class="special"><</span><span class="number">1</span><span class="special">></span> <span class="special">>(</span><span class="identifier">v</span><span class="special">)</span> <span class="special">==</span> <span class="number">2</span><span class="special">);</span>
|
||||
@@ -140,7 +298,7 @@
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias
|
||||
Schwinger<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>at_c</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">
|
||||
<<<<<<< .working
|
||||
>>>>>>> .merge-right.r57125
|
||||
<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
=======
|
||||
<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
>>>>>>> .merge-right.r58299
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="previous" href="at.html" title="at">
|
||||
<link rel="next" href="has_key.html" title="has_key">
|
||||
@@ -30,15 +38,65 @@
|
||||
<div></div>
|
||||
</div>
|
||||
<a name="fusion.sequence.intrinsic.functions.at_c.description"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id455987"></a>
|
||||
<a href="at_c.html#fusion.sequence.intrinsic.functions.at_c.description">Description</a>
|
||||
=======
|
||||
<a name="id706268"></a>
|
||||
=======
|
||||
<a name="id668401"></a>
|
||||
=======
|
||||
<a name="id660755"></a>
|
||||
=======
|
||||
<a name="id682144"></a>
|
||||
=======
|
||||
<a name="id671915"></a>
|
||||
=======
|
||||
<a name="id668638"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="at_c.html#fusion.sequence.intrinsic.functions.at_c.description">Description</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<p>
|
||||
Returns the N-th element from the beginning of the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.at_c.synopsis"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id456017"></a>
|
||||
<a href="at_c.html#fusion.sequence.intrinsic.functions.at_c.synopsis">Synopsis</a>
|
||||
=======
|
||||
<a name="id708606"></a>
|
||||
=======
|
||||
<a name="id668418"></a>
|
||||
=======
|
||||
<a name="id660772"></a>
|
||||
=======
|
||||
<a name="id682161"></a>
|
||||
=======
|
||||
<a name="id671932"></a>
|
||||
=======
|
||||
<a name="id668655"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="at_c.html#fusion.sequence.intrinsic.functions.at_c.synopsis">Synopsis</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">int</span> <span class="identifier">N</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_c</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
@@ -49,8 +107,33 @@
|
||||
<span class="identifier">at_c</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.at_c.parameters"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id456348"></a>
|
||||
<a href="at_c.html#fusion.sequence.intrinsic.functions.at_c.parameters">Parameters</a>
|
||||
=======
|
||||
<a name="id708839"></a>
|
||||
=======
|
||||
<a name="id668650"></a>
|
||||
=======
|
||||
<a name="id661005"></a>
|
||||
=======
|
||||
<a name="id682393"></a>
|
||||
=======
|
||||
<a name="id672164"></a>
|
||||
=======
|
||||
<a name="id668888"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="at_c.html#fusion.sequence.intrinsic.functions.at_c.parameters">Parameters</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -97,8 +180,33 @@
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.at_c.expression_semantics"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id456499"></a>
|
||||
<a href="at_c.html#fusion.sequence.intrinsic.functions.at_c.expression_semantics">Expression
|
||||
=======
|
||||
<a name="id708960"></a>
|
||||
=======
|
||||
<a name="id668772"></a>
|
||||
=======
|
||||
<a name="id661126"></a>
|
||||
=======
|
||||
<a name="id682515"></a>
|
||||
=======
|
||||
<a name="id672286"></a>
|
||||
=======
|
||||
<a name="id669009"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="at_c.html#fusion.sequence.intrinsic.functions.at_c.expression_semantics">Expression
|
||||
>>>>>>> .merge-right.r57125
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="identifier">at_c</span><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
@@ -124,15 +232,65 @@
|
||||
<pre class="programlisting"><a href="../../../iterator/functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><a href="../../../iterator/functions/advance.html" title="advance"><tt class="computeroutput"><span class="identifier">advance</span></tt></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><a href="begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)))</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.at_c.header"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id456804"></a>
|
||||
<a href="at_c.html#fusion.sequence.intrinsic.functions.at_c.header">Header</a>
|
||||
=======
|
||||
<a name="id709163"></a>
|
||||
=======
|
||||
<a name="id668974"></a>
|
||||
=======
|
||||
<a name="id661329"></a>
|
||||
=======
|
||||
<a name="id682717"></a>
|
||||
=======
|
||||
<a name="id672488"></a>
|
||||
=======
|
||||
<a name="id669212"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="at_c.html#fusion.sequence.intrinsic.functions.at_c.header">Header</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">sequence</span><span class="special">/</span><span class="identifier">intrinsic</span><span class="special">/</span><span class="identifier">at_c</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">at_c</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.at_c.example"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id456970"></a>
|
||||
<a href="at_c.html#fusion.sequence.intrinsic.functions.at_c.example">Example</a>
|
||||
=======
|
||||
<a name="id709278"></a>
|
||||
=======
|
||||
<a name="id669090"></a>
|
||||
=======
|
||||
<a name="id661444"></a>
|
||||
=======
|
||||
<a name="id682833"></a>
|
||||
=======
|
||||
<a name="id672604"></a>
|
||||
=======
|
||||
<a name="id669327"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="at_c.html#fusion.sequence.intrinsic.functions.at_c.example">Example</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><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="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span> <span class="identifier">v</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">at_c</span><span class="special"><</span><span class="number">1</span><span class="special">>(</span><span class="identifier">v</span><span class="special">)</span> <span class="special">==</span> <span class="number">2</span><span class="special">);</span>
|
||||
@@ -140,7 +298,7 @@
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias
|
||||
Schwinger<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>at_key</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">
|
||||
<<<<<<< .working
|
||||
>>>>>>> .merge-right.r57125
|
||||
<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
=======
|
||||
<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
>>>>>>> .merge-right.r58299
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="previous" href="has_key.html" title="has_key">
|
||||
<link rel="next" href="swap.html" title="swap">
|
||||
@@ -30,15 +38,65 @@
|
||||
<div></div>
|
||||
</div>
|
||||
<a name="fusion.sequence.intrinsic.functions.at_key.description"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id458062"></a>
|
||||
<a href="at_key.html#fusion.sequence.intrinsic.functions.at_key.description">Description</a>
|
||||
=======
|
||||
<a name="id710034"></a>
|
||||
=======
|
||||
<a name="id669846"></a>
|
||||
=======
|
||||
<a name="id662200"></a>
|
||||
=======
|
||||
<a name="id683589"></a>
|
||||
=======
|
||||
<a name="id673360"></a>
|
||||
=======
|
||||
<a name="id670083"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="at_key.html#fusion.sequence.intrinsic.functions.at_key.description">Description</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<p>
|
||||
Returns the element associated with a Key from the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.at_key.synopsis"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id458092"></a>
|
||||
<a href="at_key.html#fusion.sequence.intrinsic.functions.at_key.synopsis">Synopsis</a>
|
||||
=======
|
||||
<a name="id710051"></a>
|
||||
=======
|
||||
<a name="id669862"></a>
|
||||
=======
|
||||
<a name="id662217"></a>
|
||||
=======
|
||||
<a name="id683605"></a>
|
||||
=======
|
||||
<a name="id673377"></a>
|
||||
=======
|
||||
<a name="id670100"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="at_key.html#fusion.sequence.intrinsic.functions.at_key.synopsis">Synopsis</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Key</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Key</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
@@ -49,8 +107,33 @@
|
||||
<span class="identifier">at_key</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.at_key.parameters"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id458422"></a>
|
||||
<a href="at_key.html#fusion.sequence.intrinsic.functions.at_key.parameters">Parameters</a>
|
||||
=======
|
||||
<a name="id710284"></a>
|
||||
=======
|
||||
<a name="id671188"></a>
|
||||
=======
|
||||
<a name="id663542"></a>
|
||||
=======
|
||||
<a name="id683839"></a>
|
||||
=======
|
||||
<a name="id673610"></a>
|
||||
=======
|
||||
<a name="id670333"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="at_key.html#fusion.sequence.intrinsic.functions.at_key.parameters">Parameters</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -97,8 +180,33 @@
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.at_key.expression_semantics"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id458572"></a>
|
||||
<a href="at_key.html#fusion.sequence.intrinsic.functions.at_key.expression_semantics">Expression
|
||||
=======
|
||||
<a name="id710405"></a>
|
||||
=======
|
||||
<a name="id671309"></a>
|
||||
=======
|
||||
<a name="id663663"></a>
|
||||
=======
|
||||
<a name="id683960"></a>
|
||||
=======
|
||||
<a name="id673731"></a>
|
||||
=======
|
||||
<a name="id670454"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="at_key.html#fusion.sequence.intrinsic.functions.at_key.expression_semantics">Expression
|
||||
>>>>>>> .merge-right.r57125
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="identifier">at_key</span><span class="special"><</span><span class="identifier">Key</span><span class="special">>(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
@@ -120,15 +228,65 @@
|
||||
with Key.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.at_key.header"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id458777"></a>
|
||||
<a href="at_key.html#fusion.sequence.intrinsic.functions.at_key.header">Header</a>
|
||||
=======
|
||||
<a name="id710545"></a>
|
||||
=======
|
||||
<a name="id671450"></a>
|
||||
=======
|
||||
<a name="id663804"></a>
|
||||
=======
|
||||
<a name="id684100"></a>
|
||||
=======
|
||||
<a name="id673871"></a>
|
||||
=======
|
||||
<a name="id670594"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="at_key.html#fusion.sequence.intrinsic.functions.at_key.header">Header</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">sequence</span><span class="special">/</span><span class="identifier">intrinsic</span><span class="special">/</span><span class="identifier">at_key</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">at_key</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.at_key.example"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id458943"></a>
|
||||
<a href="at_key.html#fusion.sequence.intrinsic.functions.at_key.example">Example</a>
|
||||
=======
|
||||
<a name="id710660"></a>
|
||||
=======
|
||||
<a name="id671565"></a>
|
||||
=======
|
||||
<a name="id663919"></a>
|
||||
=======
|
||||
<a name="id684216"></a>
|
||||
=======
|
||||
<a name="id673986"></a>
|
||||
=======
|
||||
<a name="id670710"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="at_key.html#fusion.sequence.intrinsic.functions.at_key.example">Example</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><a href="../../../container/set.html" title="set"><tt class="computeroutput"><span class="identifier">set</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">bool</span><span class="special">></span> <span class="identifier">s</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="char">'x'</span><span class="special">,</span> <span class="keyword">true</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">at_key</span><span class="special"><</span><span class="keyword">char</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span> <span class="special">==</span> <span class="char">'x'</span><span class="special">);</span>
|
||||
@@ -136,7 +294,7 @@
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias
|
||||
Schwinger<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>back</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">
|
||||
<<<<<<< .working
|
||||
>>>>>>> .merge-right.r57125
|
||||
<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
=======
|
||||
<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
>>>>>>> .merge-right.r58299
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="previous" href="front.html" title="front">
|
||||
<link rel="next" href="size.html" title="size">
|
||||
@@ -30,15 +38,65 @@
|
||||
<div></div>
|
||||
</div>
|
||||
<a name="fusion.sequence.intrinsic.functions.back.description"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id453047"></a>
|
||||
<a href="back.html#fusion.sequence.intrinsic.functions.back.description">Description</a>
|
||||
=======
|
||||
<a name="id704208"></a>
|
||||
=======
|
||||
<a name="id666205"></a>
|
||||
=======
|
||||
<a name="id658559"></a>
|
||||
=======
|
||||
<a name="id678787"></a>
|
||||
=======
|
||||
<a name="id668080"></a>
|
||||
=======
|
||||
<a name="id664803"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="back.html#fusion.sequence.intrinsic.functions.back.description">Description</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<p>
|
||||
Returns the last element in the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.back.synopsis"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id453076"></a>
|
||||
<a href="back.html#fusion.sequence.intrinsic.functions.back.synopsis">Synopsis</a>
|
||||
=======
|
||||
<a name="id704225"></a>
|
||||
=======
|
||||
<a name="id666221"></a>
|
||||
=======
|
||||
<a name="id658576"></a>
|
||||
=======
|
||||
<a name="id678804"></a>
|
||||
=======
|
||||
<a name="id668097"></a>
|
||||
=======
|
||||
<a name="id664820"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="back.html#fusion.sequence.intrinsic.functions.back.synopsis">Synopsis</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/back.html" title="back"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">back</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
@@ -49,8 +107,33 @@
|
||||
<span class="identifier">back</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.back.parameters"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id453351"></a>
|
||||
<a href="back.html#fusion.sequence.intrinsic.functions.back.parameters">Parameters</a>
|
||||
=======
|
||||
<a name="id704415"></a>
|
||||
=======
|
||||
<a name="id666411"></a>
|
||||
=======
|
||||
<a name="id658765"></a>
|
||||
=======
|
||||
<a name="id678993"></a>
|
||||
=======
|
||||
<a name="id668286"></a>
|
||||
=======
|
||||
<a name="id665010"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="back.html#fusion.sequence.intrinsic.functions.back.parameters">Parameters</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -84,8 +167,33 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.back.expression_semantics"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id453464"></a>
|
||||
<a href="back.html#fusion.sequence.intrinsic.functions.back.expression_semantics">Expression
|
||||
=======
|
||||
<a name="id704505"></a>
|
||||
=======
|
||||
<a name="id666501"></a>
|
||||
=======
|
||||
<a name="id658855"></a>
|
||||
=======
|
||||
<a name="id679083"></a>
|
||||
=======
|
||||
<a name="id668376"></a>
|
||||
=======
|
||||
<a name="id665100"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="back.html#fusion.sequence.intrinsic.functions.back.expression_semantics">Expression
|
||||
>>>>>>> .merge-right.r57125
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="identifier">back</span><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
@@ -107,15 +215,65 @@
|
||||
in the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.back.header"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id453659"></a>
|
||||
<a href="back.html#fusion.sequence.intrinsic.functions.back.header">Header</a>
|
||||
=======
|
||||
<a name="id704636"></a>
|
||||
=======
|
||||
<a name="id666632"></a>
|
||||
=======
|
||||
<a name="id658986"></a>
|
||||
=======
|
||||
<a name="id679214"></a>
|
||||
=======
|
||||
<a name="id668507"></a>
|
||||
=======
|
||||
<a name="id665230"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="back.html#fusion.sequence.intrinsic.functions.back.header">Header</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">sequence</span><span class="special">/</span><span class="identifier">intrinsic</span><span class="special">/</span><span class="identifier">back</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">back</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.back.example"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id453825"></a>
|
||||
<a href="back.html#fusion.sequence.intrinsic.functions.back.example">Example</a>
|
||||
=======
|
||||
<a name="id704751"></a>
|
||||
=======
|
||||
<a name="id666747"></a>
|
||||
=======
|
||||
<a name="id659101"></a>
|
||||
=======
|
||||
<a name="id679329"></a>
|
||||
=======
|
||||
<a name="id668622"></a>
|
||||
=======
|
||||
<a name="id665346"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="back.html#fusion.sequence.intrinsic.functions.back.example">Example</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><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="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span> <span class="identifier">v</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">back</span><span class="special">(</span><span class="identifier">v</span><span class="special">)</span> <span class="special">==</span> <span class="number">3</span><span class="special">);</span>
|
||||
@@ -123,7 +281,7 @@
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias
|
||||
Schwinger<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>begin</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">
|
||||
<<<<<<< .working
|
||||
>>>>>>> .merge-right.r57125
|
||||
<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
=======
|
||||
<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
>>>>>>> .merge-right.r58299
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="previous" href="../functions.html" title="Functions">
|
||||
<link rel="next" href="end.html" title="end">
|
||||
@@ -30,15 +38,65 @@
|
||||
<div></div>
|
||||
</div>
|
||||
<a name="fusion.sequence.intrinsic.functions.begin.description"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id449344"></a>
|
||||
<a href="begin.html#fusion.sequence.intrinsic.functions.begin.description">Description</a>
|
||||
=======
|
||||
<a name="id700544"></a>
|
||||
=======
|
||||
<a name="id660175"></a>
|
||||
=======
|
||||
<a name="id652529"></a>
|
||||
=======
|
||||
<a name="id675010"></a>
|
||||
=======
|
||||
<a name="id663672"></a>
|
||||
=======
|
||||
<a name="id660395"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="begin.html#fusion.sequence.intrinsic.functions.begin.description">Description</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<p>
|
||||
Returns an iterator pointing to the first element in the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.begin.synopsis"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id449373"></a>
|
||||
<a href="begin.html#fusion.sequence.intrinsic.functions.begin.synopsis">Synopsis</a>
|
||||
=======
|
||||
<a name="id700561"></a>
|
||||
=======
|
||||
<a name="id660192"></a>
|
||||
=======
|
||||
<a name="id652546"></a>
|
||||
=======
|
||||
<a name="id675027"></a>
|
||||
=======
|
||||
<a name="id663688"></a>
|
||||
=======
|
||||
<a name="id660412"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="begin.html#fusion.sequence.intrinsic.functions.begin.synopsis">Synopsis</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
@@ -49,8 +107,33 @@
|
||||
<span class="identifier">begin</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.begin.parameters"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id449647"></a>
|
||||
<a href="begin.html#fusion.sequence.intrinsic.functions.begin.parameters">Parameters</a>
|
||||
=======
|
||||
<a name="id700751"></a>
|
||||
=======
|
||||
<a name="id660381"></a>
|
||||
=======
|
||||
<a name="id652735"></a>
|
||||
=======
|
||||
<a name="id675216"></a>
|
||||
=======
|
||||
<a name="id663878"></a>
|
||||
=======
|
||||
<a name="id660601"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="begin.html#fusion.sequence.intrinsic.functions.begin.parameters">Parameters</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -84,13 +167,39 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.begin.expression_semantics"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id449760"></a>
|
||||
<a href="begin.html#fusion.sequence.intrinsic.functions.begin.expression_semantics">Expression
|
||||
=======
|
||||
<a name="id700851"></a>
|
||||
=======
|
||||
<a name="id660471"></a>
|
||||
=======
|
||||
<a name="id652825"></a>
|
||||
=======
|
||||
<a name="id675306"></a>
|
||||
=======
|
||||
<a name="id663968"></a>
|
||||
=======
|
||||
<a name="id660691"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="begin.html#fusion.sequence.intrinsic.functions.begin.expression_semantics">Expression
|
||||
>>>>>>> .merge-right.r57125
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="identifier">begin</span><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<<<<<<< .working
|
||||
<span class="bold"><b>Return type</b></span>: <a href="../../../iterator/concepts/forward_iterator.html" title="Forward
|
||||
Iterator">Forward
|
||||
Iterator</a> if <tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
@@ -107,21 +216,94 @@
|
||||
is a <a href="../../concepts/random_access_sequence.html" title="Random
|
||||
Access Sequence">Random
|
||||
Access Sequence</a>.
|
||||
=======
|
||||
<span class="bold"><strong>Return type</strong></span>:
|
||||
>>>>>>> .merge-right.r57242
|
||||
</p>
|
||||
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
|
||||
<li class="listitem">
|
||||
A model of <a class="link" href="../../../iterator/concepts/forward_iterator.html" title="Forward Iterator">Forward
|
||||
Iterator</a> if <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
is a <a class="link" href="../../concepts/forward_sequence.html" title="Forward Sequence">Forward
|
||||
Sequence</a> else, <a class="link" href="../../../iterator/concepts/bidirectional_iterator.html" title="Bidirectional Iterator">Bidirectional
|
||||
Iterator</a> if <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
is a <a class="link" href="../../concepts/bidirectional_sequence.html" title="Bidirectional Sequence">Bidirectional
|
||||
Sequence</a> else, <a class="link" href="../../../iterator/concepts/random_access_iterator.html" title="Random Access Iterator">Random
|
||||
Access Iterator</a> if <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
is a <a class="link" href="../../concepts/random_access_sequence.html" title="Random Access Sequence">Random
|
||||
Access Sequence</a>.
|
||||
</li>
|
||||
<li class="listitem">
|
||||
A model of <a class="link" href="../../../iterator/concepts/associative_iterator.html" title="Associative Iterator">Associative
|
||||
Iterator</a> if <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
is an <a class="link" href="../../concepts/associative_sequence.html" title="Associative Sequence">Associative
|
||||
Sequence</a>.
|
||||
</li>
|
||||
</ul></div>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Returns an iterator pointing
|
||||
to the first element in the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.begin.header"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id449927"></a>
|
||||
<a href="begin.html#fusion.sequence.intrinsic.functions.begin.header">Header</a>
|
||||
=======
|
||||
<a name="id700953"></a>
|
||||
=======
|
||||
<a name="id660601"></a>
|
||||
=======
|
||||
<a name="id652955"></a>
|
||||
=======
|
||||
<a name="id675436"></a>
|
||||
=======
|
||||
<a name="id664098"></a>
|
||||
=======
|
||||
<a name="id660821"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="begin.html#fusion.sequence.intrinsic.functions.begin.header">Header</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">sequence</span><span class="special">/</span><span class="identifier">intrinsic</span><span class="special">/</span><span class="identifier">begin</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">begin</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.begin.example"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id450094"></a>
|
||||
<a href="begin.html#fusion.sequence.intrinsic.functions.begin.example">Example</a>
|
||||
=======
|
||||
<a name="id701068"></a>
|
||||
=======
|
||||
<a name="id660716"></a>
|
||||
=======
|
||||
<a name="id653070"></a>
|
||||
=======
|
||||
<a name="id675551"></a>
|
||||
=======
|
||||
<a name="id664213"></a>
|
||||
=======
|
||||
<a name="id660936"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="begin.html#fusion.sequence.intrinsic.functions.begin.example">Example</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><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="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span> <span class="identifier">v</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><a href="../../../iterator/functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><span class="identifier">begin</span><span class="special">(</span><span class="identifier">v</span><span class="special">))</span> <span class="special">==</span> <span class="number">1</span><span class="special">);</span>
|
||||
@@ -129,7 +311,7 @@
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias
|
||||
Schwinger<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>empty</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">
|
||||
<<<<<<< .working
|
||||
>>>>>>> .merge-right.r57125
|
||||
<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
=======
|
||||
<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
>>>>>>> .merge-right.r58299
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="previous" href="end.html" title="end">
|
||||
<link rel="next" href="front.html" title="front">
|
||||
@@ -30,8 +38,33 @@
|
||||
<div></div>
|
||||
</div>
|
||||
<a name="fusion.sequence.intrinsic.functions.empty.description"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id451280"></a>
|
||||
<a href="empty.html#fusion.sequence.intrinsic.functions.empty.description">Description</a>
|
||||
=======
|
||||
<a name="id701884"></a>
|
||||
=======
|
||||
<a name="id661560"></a>
|
||||
=======
|
||||
<a name="id653914"></a>
|
||||
=======
|
||||
<a name="id676395"></a>
|
||||
=======
|
||||
<a name="id665056"></a>
|
||||
=======
|
||||
<a name="id661780"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="empty.html#fusion.sequence.intrinsic.functions.empty.description">Description</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<p>
|
||||
Returns a type convertible to <tt class="computeroutput"><span class="keyword">bool</span></tt>
|
||||
@@ -39,16 +72,66 @@
|
||||
the sequence is empty, else, evaluates to <tt class="computeroutput"><span class="keyword">false</span></tt>.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.empty.synopsis"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id451345"></a>
|
||||
<a href="empty.html#fusion.sequence.intrinsic.functions.empty.synopsis">Synopsis</a>
|
||||
=======
|
||||
<a name="id701924"></a>
|
||||
=======
|
||||
<a name="id661599"></a>
|
||||
=======
|
||||
<a name="id653953"></a>
|
||||
=======
|
||||
<a name="id676434"></a>
|
||||
=======
|
||||
<a name="id665096"></a>
|
||||
=======
|
||||
<a name="id661819"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="empty.html#fusion.sequence.intrinsic.functions.empty.synopsis">Synopsis</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/empty.html" title="empty"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">empty</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">empty</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.empty.parameters"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id451498"></a>
|
||||
<a href="empty.html#fusion.sequence.intrinsic.functions.empty.parameters">Parameters</a>
|
||||
=======
|
||||
<a name="id702027"></a>
|
||||
=======
|
||||
<a name="id661702"></a>
|
||||
=======
|
||||
<a name="id654056"></a>
|
||||
=======
|
||||
<a name="id676538"></a>
|
||||
=======
|
||||
<a name="id665199"></a>
|
||||
=======
|
||||
<a name="id661922"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="empty.html#fusion.sequence.intrinsic.functions.empty.parameters">Parameters</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -82,8 +165,33 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.empty.expression_semantics"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id451612"></a>
|
||||
<a href="empty.html#fusion.sequence.intrinsic.functions.empty.expression_semantics">Expression
|
||||
=======
|
||||
<a name="id702117"></a>
|
||||
=======
|
||||
<a name="id661792"></a>
|
||||
=======
|
||||
<a name="id654146"></a>
|
||||
=======
|
||||
<a name="id676628"></a>
|
||||
=======
|
||||
<a name="id665289"></a>
|
||||
=======
|
||||
<a name="id662012"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="empty.html#fusion.sequence.intrinsic.functions.empty.expression_semantics">Expression
|
||||
>>>>>>> .merge-right.r57125
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="identifier">empty</span><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
@@ -96,15 +204,65 @@
|
||||
to <tt class="computeroutput"><span class="keyword">false</span></tt>.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.empty.header"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id451723"></a>
|
||||
<a href="empty.html#fusion.sequence.intrinsic.functions.empty.header">Header</a>
|
||||
=======
|
||||
<a name="id702192"></a>
|
||||
=======
|
||||
<a name="id661867"></a>
|
||||
=======
|
||||
<a name="id654221"></a>
|
||||
=======
|
||||
<a name="id676702"></a>
|
||||
=======
|
||||
<a name="id665364"></a>
|
||||
=======
|
||||
<a name="id662087"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="empty.html#fusion.sequence.intrinsic.functions.empty.header">Header</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">sequence</span><span class="special">/</span><span class="identifier">intrinsic</span><span class="special">/</span><span class="identifier">empty</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">empty</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.empty.example"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id451890"></a>
|
||||
<a href="empty.html#fusion.sequence.intrinsic.functions.empty.example">Example</a>
|
||||
=======
|
||||
<a name="id702307"></a>
|
||||
=======
|
||||
<a name="id661982"></a>
|
||||
=======
|
||||
<a name="id654336"></a>
|
||||
=======
|
||||
<a name="id677978"></a>
|
||||
=======
|
||||
<a name="id667271"></a>
|
||||
=======
|
||||
<a name="id663994"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="empty.html#fusion.sequence.intrinsic.functions.empty.example">Example</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><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="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span> <span class="identifier">v</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">empty</span><span class="special">(</span><span class="identifier">v</span><span class="special">)</span> <span class="special">==</span> <span class="keyword">false</span><span class="special">);</span>
|
||||
@@ -112,7 +270,7 @@
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias
|
||||
Schwinger<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>end</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">
|
||||
<<<<<<< .working
|
||||
>>>>>>> .merge-right.r57125
|
||||
<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
=======
|
||||
<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
>>>>>>> .merge-right.r58299
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="previous" href="begin.html" title="begin">
|
||||
<link rel="next" href="empty.html" title="empty">
|
||||
@@ -30,15 +38,65 @@
|
||||
<div></div>
|
||||
</div>
|
||||
<a name="fusion.sequence.intrinsic.functions.end.description"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id450304"></a>
|
||||
<a href="end.html#fusion.sequence.intrinsic.functions.end.description">Description</a>
|
||||
=======
|
||||
<a name="id701214"></a>
|
||||
=======
|
||||
<a name="id660861"></a>
|
||||
=======
|
||||
<a name="id653215"></a>
|
||||
=======
|
||||
<a name="id675696"></a>
|
||||
=======
|
||||
<a name="id664358"></a>
|
||||
=======
|
||||
<a name="id661081"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="end.html#fusion.sequence.intrinsic.functions.end.description">Description</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<p>
|
||||
Returns an iterator pointing to one element past the end of the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.end.synopsis"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id450334"></a>
|
||||
<a href="end.html#fusion.sequence.intrinsic.functions.end.synopsis">Synopsis</a>
|
||||
=======
|
||||
<a name="id701230"></a>
|
||||
=======
|
||||
<a name="id660878"></a>
|
||||
=======
|
||||
<a name="id653232"></a>
|
||||
=======
|
||||
<a name="id675713"></a>
|
||||
=======
|
||||
<a name="id664375"></a>
|
||||
=======
|
||||
<a name="id661098"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="end.html#fusion.sequence.intrinsic.functions.end.synopsis">Synopsis</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/end.html" title="end"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">end</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
@@ -49,8 +107,33 @@
|
||||
<span class="identifier">end</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.end.parameters"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id450606"></a>
|
||||
<a href="end.html#fusion.sequence.intrinsic.functions.end.parameters">Parameters</a>
|
||||
=======
|
||||
<a name="id701420"></a>
|
||||
=======
|
||||
<a name="id661068"></a>
|
||||
=======
|
||||
<a name="id653422"></a>
|
||||
=======
|
||||
<a name="id675903"></a>
|
||||
=======
|
||||
<a name="id664564"></a>
|
||||
=======
|
||||
<a name="id661288"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="end.html#fusion.sequence.intrinsic.functions.end.parameters">Parameters</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -84,13 +167,39 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.end.expression_semantics"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id450718"></a>
|
||||
<a href="end.html#fusion.sequence.intrinsic.functions.end.expression_semantics">Expression
|
||||
=======
|
||||
<a name="id701510"></a>
|
||||
=======
|
||||
<a name="id661158"></a>
|
||||
=======
|
||||
<a name="id653512"></a>
|
||||
=======
|
||||
<a name="id675993"></a>
|
||||
=======
|
||||
<a name="id664654"></a>
|
||||
=======
|
||||
<a name="id661378"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="end.html#fusion.sequence.intrinsic.functions.end.expression_semantics">Expression
|
||||
>>>>>>> .merge-right.r57125
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="identifier">end</span><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<<<<<<< .working
|
||||
<span class="bold"><b>Return type</b></span>: <a href="../../../iterator/concepts/forward_iterator.html" title="Forward
|
||||
Iterator">Forward
|
||||
Iterator</a> if <tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
@@ -107,21 +216,94 @@
|
||||
is a <a href="../../concepts/random_access_sequence.html" title="Random
|
||||
Access Sequence">Random
|
||||
Access Sequence</a>.
|
||||
=======
|
||||
<span class="bold"><strong>Return type</strong></span>:
|
||||
>>>>>>> .merge-right.r57242
|
||||
</p>
|
||||
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
|
||||
<li class="listitem">
|
||||
A model of <a class="link" href="../../../iterator/concepts/forward_iterator.html" title="Forward Iterator">Forward
|
||||
Iterator</a> if <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
is a <a class="link" href="../../concepts/forward_sequence.html" title="Forward Sequence">Forward
|
||||
Sequence</a> else, <a class="link" href="../../../iterator/concepts/bidirectional_iterator.html" title="Bidirectional Iterator">Bidirectional
|
||||
Iterator</a> if <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
is a <a class="link" href="../../concepts/bidirectional_sequence.html" title="Bidirectional Sequence">Bidirectional
|
||||
Sequence</a> else, <a class="link" href="../../../iterator/concepts/random_access_iterator.html" title="Random Access Iterator">Random
|
||||
Access Iterator</a> if <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
is a <a class="link" href="../../concepts/random_access_sequence.html" title="Random Access Sequence">Random
|
||||
Access Sequence</a>.
|
||||
</li>
|
||||
<li class="listitem">
|
||||
A model of <a class="link" href="../../../iterator/concepts/associative_iterator.html" title="Associative Iterator">Associative
|
||||
Iterator</a> if <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
is an <a class="link" href="../../concepts/associative_sequence.html" title="Associative Sequence">Associative
|
||||
Sequence</a>.
|
||||
</li>
|
||||
</ul></div>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Returns an iterator pointing
|
||||
to one element past the end of the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.end.header"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id450886"></a>
|
||||
<a href="end.html#fusion.sequence.intrinsic.functions.end.header">Header</a>
|
||||
=======
|
||||
<a name="id701612"></a>
|
||||
=======
|
||||
<a name="id661287"></a>
|
||||
=======
|
||||
<a name="id653641"></a>
|
||||
=======
|
||||
<a name="id676122"></a>
|
||||
=======
|
||||
<a name="id664784"></a>
|
||||
=======
|
||||
<a name="id661507"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="end.html#fusion.sequence.intrinsic.functions.end.header">Header</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">sequence</span><span class="special">/</span><span class="identifier">intrinsic</span><span class="special">/</span><span class="identifier">end</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">end</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.end.example"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id451051"></a>
|
||||
<a href="end.html#fusion.sequence.intrinsic.functions.end.example">Example</a>
|
||||
=======
|
||||
<a name="id701727"></a>
|
||||
=======
|
||||
<a name="id661402"></a>
|
||||
=======
|
||||
<a name="id653756"></a>
|
||||
=======
|
||||
<a name="id676238"></a>
|
||||
=======
|
||||
<a name="id664899"></a>
|
||||
=======
|
||||
<a name="id661622"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="end.html#fusion.sequence.intrinsic.functions.end.example">Example</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><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="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span> <span class="identifier">v</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><a href="../../../iterator/functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><a href="../../../iterator/functions/prior.html" title="prior"><tt class="computeroutput"><span class="identifier">prior</span></tt></a><span class="special">(</span><span class="identifier">end</span><span class="special">(</span><span class="identifier">v</span><span class="special">)))</span> <span class="special">==</span> <span class="number">3</span><span class="special">);</span>
|
||||
@@ -129,7 +311,7 @@
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias
|
||||
Schwinger<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>front</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">
|
||||
<<<<<<< .working
|
||||
>>>>>>> .merge-right.r57125
|
||||
<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
=======
|
||||
<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
>>>>>>> .merge-right.r58299
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="previous" href="empty.html" title="empty">
|
||||
<link rel="next" href="back.html" title="back">
|
||||
@@ -30,15 +38,65 @@
|
||||
<div></div>
|
||||
</div>
|
||||
<a name="fusion.sequence.intrinsic.functions.front.description"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id452080"></a>
|
||||
<a href="front.html#fusion.sequence.intrinsic.functions.front.description">Description</a>
|
||||
=======
|
||||
<a name="id702440"></a>
|
||||
=======
|
||||
<a name="id665529"></a>
|
||||
=======
|
||||
<a name="id657883"></a>
|
||||
=======
|
||||
<a name="id678111"></a>
|
||||
=======
|
||||
<a name="id667404"></a>
|
||||
=======
|
||||
<a name="id664128"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="front.html#fusion.sequence.intrinsic.functions.front.description">Description</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<p>
|
||||
Returns the first element in the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.front.synopsis"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id452109"></a>
|
||||
<a href="front.html#fusion.sequence.intrinsic.functions.front.synopsis">Synopsis</a>
|
||||
=======
|
||||
<a name="id702457"></a>
|
||||
=======
|
||||
<a name="id665546"></a>
|
||||
=======
|
||||
<a name="id657900"></a>
|
||||
=======
|
||||
<a name="id678128"></a>
|
||||
=======
|
||||
<a name="id667421"></a>
|
||||
=======
|
||||
<a name="id664144"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="front.html#fusion.sequence.intrinsic.functions.front.synopsis">Synopsis</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/front.html" title="front"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">front</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
@@ -49,8 +107,33 @@
|
||||
<span class="identifier">front</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.front.parameters"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id452384"></a>
|
||||
<a href="front.html#fusion.sequence.intrinsic.functions.front.parameters">Parameters</a>
|
||||
=======
|
||||
<a name="id702646"></a>
|
||||
=======
|
||||
<a name="id665735"></a>
|
||||
=======
|
||||
<a name="id658090"></a>
|
||||
=======
|
||||
<a name="id678318"></a>
|
||||
=======
|
||||
<a name="id667611"></a>
|
||||
=======
|
||||
<a name="id664334"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="front.html#fusion.sequence.intrinsic.functions.front.parameters">Parameters</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -84,8 +167,33 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.front.expression_semantics"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id452497"></a>
|
||||
<a href="front.html#fusion.sequence.intrinsic.functions.front.expression_semantics">Expression
|
||||
=======
|
||||
<a name="id702736"></a>
|
||||
=======
|
||||
<a name="id665825"></a>
|
||||
=======
|
||||
<a name="id658180"></a>
|
||||
=======
|
||||
<a name="id678408"></a>
|
||||
=======
|
||||
<a name="id667701"></a>
|
||||
=======
|
||||
<a name="id664424"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="front.html#fusion.sequence.intrinsic.functions.front.expression_semantics">Expression
|
||||
>>>>>>> .merge-right.r57125
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="identifier">front</span><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
@@ -107,15 +215,65 @@
|
||||
in the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.front.header"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id452690"></a>
|
||||
<a href="front.html#fusion.sequence.intrinsic.functions.front.header">Header</a>
|
||||
=======
|
||||
<a name="id702867"></a>
|
||||
=======
|
||||
<a name="id665956"></a>
|
||||
=======
|
||||
<a name="id658310"></a>
|
||||
=======
|
||||
<a name="id678539"></a>
|
||||
=======
|
||||
<a name="id667832"></a>
|
||||
=======
|
||||
<a name="id664555"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="front.html#fusion.sequence.intrinsic.functions.front.header">Header</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">sequence</span><span class="special">/</span><span class="identifier">intrinsic</span><span class="special">/</span><span class="identifier">front</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">front</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.front.example"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id452856"></a>
|
||||
<a href="front.html#fusion.sequence.intrinsic.functions.front.example">Example</a>
|
||||
=======
|
||||
<a name="id702982"></a>
|
||||
=======
|
||||
<a name="id666071"></a>
|
||||
=======
|
||||
<a name="id658426"></a>
|
||||
=======
|
||||
<a name="id678654"></a>
|
||||
=======
|
||||
<a name="id667947"></a>
|
||||
=======
|
||||
<a name="id664670"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="front.html#fusion.sequence.intrinsic.functions.front.example">Example</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><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="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span> <span class="identifier">v</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">front</span><span class="special">(</span><span class="identifier">v</span><span class="special">)</span> <span class="special">==</span> <span class="number">1</span><span class="special">);</span>
|
||||
@@ -123,7 +281,7 @@
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias
|
||||
Schwinger<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>has_key</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">
|
||||
<<<<<<< .working
|
||||
>>>>>>> .merge-right.r57125
|
||||
<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
=======
|
||||
<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
>>>>>>> .merge-right.r58299
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="previous" href="at_c.html" title="at_c">
|
||||
<link rel="next" href="at_key.html" title="at_key">
|
||||
@@ -30,8 +38,33 @@
|
||||
<div></div>
|
||||
</div>
|
||||
<a name="fusion.sequence.intrinsic.functions.has_key.description"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id457172"></a>
|
||||
<a href="has_key.html#fusion.sequence.intrinsic.functions.has_key.description">Description</a>
|
||||
=======
|
||||
<a name="id709418"></a>
|
||||
=======
|
||||
<a name="id669230"></a>
|
||||
=======
|
||||
<a name="id661584"></a>
|
||||
=======
|
||||
<a name="id682973"></a>
|
||||
=======
|
||||
<a name="id672744"></a>
|
||||
=======
|
||||
<a name="id669467"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="has_key.html#fusion.sequence.intrinsic.functions.has_key.description">Description</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<p>
|
||||
Returns a type convertible to <tt class="computeroutput"><span class="keyword">bool</span></tt>
|
||||
@@ -40,16 +73,66 @@
|
||||
to <tt class="computeroutput"><span class="keyword">false</span></tt>.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.has_key.synopsis"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id457238"></a>
|
||||
<a href="has_key.html#fusion.sequence.intrinsic.functions.has_key.synopsis">Synopsis</a>
|
||||
=======
|
||||
<a name="id709457"></a>
|
||||
=======
|
||||
<a name="id669268"></a>
|
||||
=======
|
||||
<a name="id661623"></a>
|
||||
=======
|
||||
<a name="id683011"></a>
|
||||
=======
|
||||
<a name="id672782"></a>
|
||||
=======
|
||||
<a name="id669506"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="has_key.html#fusion.sequence.intrinsic.functions.has_key.synopsis">Synopsis</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Key</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/has_key.html" title="has_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">has_key</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Key</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">has_key</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.has_key.parameters"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id457419"></a>
|
||||
<a href="has_key.html#fusion.sequence.intrinsic.functions.has_key.parameters">Parameters</a>
|
||||
=======
|
||||
<a name="id709582"></a>
|
||||
=======
|
||||
<a name="id669393"></a>
|
||||
=======
|
||||
<a name="id661747"></a>
|
||||
=======
|
||||
<a name="id683136"></a>
|
||||
=======
|
||||
<a name="id672907"></a>
|
||||
=======
|
||||
<a name="id669630"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="has_key.html#fusion.sequence.intrinsic.functions.has_key.parameters">Parameters</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -96,8 +179,33 @@
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.has_key.expression_semantics"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id457572"></a>
|
||||
<a href="has_key.html#fusion.sequence.intrinsic.functions.has_key.expression_semantics">Expression
|
||||
=======
|
||||
<a name="id709700"></a>
|
||||
=======
|
||||
<a name="id669512"></a>
|
||||
=======
|
||||
<a name="id661866"></a>
|
||||
=======
|
||||
<a name="id683255"></a>
|
||||
=======
|
||||
<a name="id673026"></a>
|
||||
=======
|
||||
<a name="id669749"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="has_key.html#fusion.sequence.intrinsic.functions.has_key.expression_semantics">Expression
|
||||
>>>>>>> .merge-right.r57125
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="identifier">has_key</span><span class="special"><</span><span class="identifier">Key</span><span class="special">>(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
@@ -110,15 +218,65 @@
|
||||
associated with Key, else, evaluates to <tt class="computeroutput"><span class="keyword">false</span></tt>.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.has_key.header"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id457693"></a>
|
||||
<a href="has_key.html#fusion.sequence.intrinsic.functions.has_key.header">Header</a>
|
||||
=======
|
||||
<a name="id709778"></a>
|
||||
=======
|
||||
<a name="id669590"></a>
|
||||
=======
|
||||
<a name="id661944"></a>
|
||||
=======
|
||||
<a name="id683333"></a>
|
||||
=======
|
||||
<a name="id673104"></a>
|
||||
=======
|
||||
<a name="id669827"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="has_key.html#fusion.sequence.intrinsic.functions.has_key.header">Header</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">sequence</span><span class="special">/</span><span class="identifier">intrinsic</span><span class="special">/</span><span class="identifier">has_key</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">has_key</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.has_key.example"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id457859"></a>
|
||||
<a href="has_key.html#fusion.sequence.intrinsic.functions.has_key.example">Example</a>
|
||||
=======
|
||||
<a name="id709894"></a>
|
||||
=======
|
||||
<a name="id669705"></a>
|
||||
=======
|
||||
<a name="id662059"></a>
|
||||
=======
|
||||
<a name="id683448"></a>
|
||||
=======
|
||||
<a name="id673219"></a>
|
||||
=======
|
||||
<a name="id669942"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="has_key.html#fusion.sequence.intrinsic.functions.has_key.example">Example</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><a href="../../../container/set.html" title="set"><tt class="computeroutput"><span class="identifier">set</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">bool</span><span class="special">></span> <span class="identifier">s</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="char">'x'</span><span class="special">,</span> <span class="keyword">true</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">has_key</span><span class="special"><</span><span class="keyword">char</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span> <span class="special">==</span> <span class="keyword">true</span><span class="special">);</span>
|
||||
@@ -126,7 +284,7 @@
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias
|
||||
Schwinger<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>size</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">
|
||||
<<<<<<< .working
|
||||
>>>>>>> .merge-right.r57125
|
||||
<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
=======
|
||||
<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
>>>>>>> .merge-right.r58299
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="previous" href="back.html" title="back">
|
||||
<link rel="next" href="at.html" title="at">
|
||||
@@ -30,24 +38,99 @@
|
||||
<div></div>
|
||||
</div>
|
||||
<a name="fusion.sequence.intrinsic.functions.size.description"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id454017"></a>
|
||||
<a href="size.html#fusion.sequence.intrinsic.functions.size.description">Description</a>
|
||||
=======
|
||||
<a name="id704884"></a>
|
||||
=======
|
||||
<a name="id666880"></a>
|
||||
=======
|
||||
<a name="id659234"></a>
|
||||
=======
|
||||
<a name="id679463"></a>
|
||||
=======
|
||||
<a name="id668756"></a>
|
||||
=======
|
||||
<a name="id665479"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="size.html#fusion.sequence.intrinsic.functions.size.description">Description</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<p>
|
||||
Returns a type convertible to <tt class="computeroutput"><span class="keyword">int</span></tt>
|
||||
that evaluates the number of elements in the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.size.synopsis"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id454060"></a>
|
||||
<a href="size.html#fusion.sequence.intrinsic.functions.size.synopsis">Synopsis</a>
|
||||
=======
|
||||
<a name="id704908"></a>
|
||||
=======
|
||||
<a name="id666904"></a>
|
||||
=======
|
||||
<a name="id659258"></a>
|
||||
=======
|
||||
<a name="id679487"></a>
|
||||
=======
|
||||
<a name="id668780"></a>
|
||||
=======
|
||||
<a name="id665503"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="size.html#fusion.sequence.intrinsic.functions.size.synopsis">Synopsis</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">size</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.size.parameters"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id454212"></a>
|
||||
<a href="size.html#fusion.sequence.intrinsic.functions.size.parameters">Parameters</a>
|
||||
=======
|
||||
<a name="id705011"></a>
|
||||
=======
|
||||
<a name="id667007"></a>
|
||||
=======
|
||||
<a name="id659362"></a>
|
||||
=======
|
||||
<a name="id679590"></a>
|
||||
=======
|
||||
<a name="id668883"></a>
|
||||
=======
|
||||
<a name="id665606"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="size.html#fusion.sequence.intrinsic.functions.size.parameters">Parameters</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -81,8 +164,33 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.size.expression_semantics"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id454326"></a>
|
||||
<a href="size.html#fusion.sequence.intrinsic.functions.size.expression_semantics">Expression
|
||||
=======
|
||||
<a name="id705101"></a>
|
||||
=======
|
||||
<a name="id667097"></a>
|
||||
=======
|
||||
<a name="id659452"></a>
|
||||
=======
|
||||
<a name="id679680"></a>
|
||||
=======
|
||||
<a name="id668973"></a>
|
||||
=======
|
||||
<a name="id665696"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="size.html#fusion.sequence.intrinsic.functions.size.expression_semantics">Expression
|
||||
>>>>>>> .merge-right.r57125
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="identifier">size</span><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
@@ -95,15 +203,65 @@
|
||||
in the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.size.header"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id454412"></a>
|
||||
<a href="size.html#fusion.sequence.intrinsic.functions.size.header">Header</a>
|
||||
=======
|
||||
<a name="id705160"></a>
|
||||
=======
|
||||
<a name="id667156"></a>
|
||||
=======
|
||||
<a name="id659510"></a>
|
||||
=======
|
||||
<a name="id679739"></a>
|
||||
=======
|
||||
<a name="id669032"></a>
|
||||
=======
|
||||
<a name="id665755"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="size.html#fusion.sequence.intrinsic.functions.size.header">Header</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">sequence</span><span class="special">/</span><span class="identifier">intrinsic</span><span class="special">/</span><span class="identifier">size</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">size</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.size.example"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id454577"></a>
|
||||
<a href="size.html#fusion.sequence.intrinsic.functions.size.example">Example</a>
|
||||
=======
|
||||
<a name="id705275"></a>
|
||||
=======
|
||||
<a name="id667271"></a>
|
||||
=======
|
||||
<a name="id659626"></a>
|
||||
=======
|
||||
<a name="id679854"></a>
|
||||
=======
|
||||
<a name="id669147"></a>
|
||||
=======
|
||||
<a name="id665870"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="size.html#fusion.sequence.intrinsic.functions.size.example">Example</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><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="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span> <span class="identifier">v</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">size</span><span class="special">(</span><span class="identifier">v</span><span class="special">)</span> <span class="special">==</span> <span class="number">3</span><span class="special">);</span>
|
||||
@@ -111,7 +269,7 @@
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias
|
||||
Schwinger<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>swap</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">
|
||||
<<<<<<< .working
|
||||
>>>>>>> .merge-right.r57125
|
||||
<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
=======
|
||||
<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
>>>>>>> .merge-right.r58299
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="previous" href="at_key.html" title="at_key">
|
||||
<link rel="next" href="../metafunctions.html" title="Metafunctions">
|
||||
@@ -30,22 +38,97 @@
|
||||
<div></div>
|
||||
</div>
|
||||
<a name="fusion.sequence.intrinsic.functions.swap.description"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id459147"></a>
|
||||
<a href="swap.html#fusion.sequence.intrinsic.functions.swap.description">Description</a>
|
||||
=======
|
||||
<a name="id711894"></a>
|
||||
=======
|
||||
<a name="id671705"></a>
|
||||
=======
|
||||
<a name="id664059"></a>
|
||||
=======
|
||||
<a name="id684356"></a>
|
||||
=======
|
||||
<a name="id674127"></a>
|
||||
=======
|
||||
<a name="id670850"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="swap.html#fusion.sequence.intrinsic.functions.swap.description">Description</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<p>
|
||||
Performs an element by element swap of the elements in 2 sequences.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.swap.synopsis"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id459177"></a>
|
||||
<a href="swap.html#fusion.sequence.intrinsic.functions.swap.synopsis">Synopsis</a>
|
||||
=======
|
||||
<a name="id711910"></a>
|
||||
=======
|
||||
<a name="id671722"></a>
|
||||
=======
|
||||
<a name="id664076"></a>
|
||||
=======
|
||||
<a name="id684373"></a>
|
||||
=======
|
||||
<a name="id674144"></a>
|
||||
=======
|
||||
<a name="id670867"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="swap.html#fusion.sequence.intrinsic.functions.swap.synopsis">Synopsis</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Seq1</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Seq2</span><span class="special">></span>
|
||||
<span class="keyword">void</span> <span class="identifier">swap</span><span class="special">(</span><span class="identifier">Seq1</span><span class="special">&</span> <span class="identifier">seq1</span><span class="special">,</span> <span class="identifier">Seq2</span><span class="special">&</span> <span class="identifier">seq2</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.swap.parameters"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id459316"></a>
|
||||
<a href="swap.html#fusion.sequence.intrinsic.functions.swap.parameters">Parameters</a>
|
||||
=======
|
||||
<a name="id712006"></a>
|
||||
=======
|
||||
<a name="id671818"></a>
|
||||
=======
|
||||
<a name="id664172"></a>
|
||||
=======
|
||||
<a name="id684469"></a>
|
||||
=======
|
||||
<a name="id674240"></a>
|
||||
=======
|
||||
<a name="id670963"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="swap.html#fusion.sequence.intrinsic.functions.swap.parameters">Parameters</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -79,8 +162,33 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.swap.expression_semantics"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id459442"></a>
|
||||
<a href="swap.html#fusion.sequence.intrinsic.functions.swap.expression_semantics">Expression
|
||||
=======
|
||||
<a name="id712104"></a>
|
||||
=======
|
||||
<a name="id671915"></a>
|
||||
=======
|
||||
<a name="id664269"></a>
|
||||
=======
|
||||
<a name="id684566"></a>
|
||||
=======
|
||||
<a name="id674337"></a>
|
||||
=======
|
||||
<a name="id671060"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="swap.html#fusion.sequence.intrinsic.functions.swap.expression_semantics">Expression
|
||||
>>>>>>> .merge-right.r57125
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="identifier">swap</span><span class="special">(</span><span class="identifier">seq1</span><span class="special">,</span> <span class="identifier">seq2</span><span class="special">);</span>
|
||||
@@ -98,8 +206,33 @@
|
||||
/sequence/intrinsic/swap.hpp>
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.swap.example"></a><h6>
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id459689"></a>
|
||||
<a href="swap.html#fusion.sequence.intrinsic.functions.swap.example">Example</a>
|
||||
=======
|
||||
<a name="id712272"></a>
|
||||
=======
|
||||
<a name="id672083"></a>
|
||||
=======
|
||||
<a name="id664437"></a>
|
||||
=======
|
||||
<a name="id684734"></a>
|
||||
=======
|
||||
<a name="id674505"></a>
|
||||
=======
|
||||
<a name="id671228"></a>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<a class="link" href="swap.html#fusion.sequence.intrinsic.functions.swap.example">Example</a>
|
||||
>>>>>>> .merge-right.r57125
|
||||
</h6>
|
||||
<pre class="programlisting"><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="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">></span> <span class="identifier">v1</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="string">"hello"</span><span class="special">),</span> <span class="identifier">v2</span><span class="special">(</span><span class="number">2</span><span class="special">,</span> <span class="string">"world"</span><span class="special">);</span>
|
||||
<span class="identifier">swap</span><span class="special">(</span><span class="identifier">v1</span><span class="special">,</span> <span class="identifier">v2</span><span class="special">);</span>
|
||||
@@ -109,7 +242,7 @@
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias
|
||||
Schwinger<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
|
||||
Reference in new issue
Block a user