Files
boost_fusion/doc/html/fusion/iterator/functions/next.html

203 lines
12 KiB
HTML
Raw Normal View History

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>next</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
2009-09-14 07:47:53 +00:00
<link rel="home" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
=======
<link rel="home" href="../../../index.html" title="Chapter&#160;1.&#160;Fusion 2.0">
>>>>>>> .merge-right.r58299
<link rel="up" href="../functions.html" title="Functions">
<link rel="previous" href="deref.html" title="deref">
<link rel="next" href="prior.html" title="prior">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td>
2008-07-17 23:59:40 +00:00
<td align="center"><a href="../../../../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../../../libraries.htm">Libraries</a></td>
2008-07-17 23:59:40 +00:00
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="deref.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="prior.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
<<<<<<< .working
<div class="section" lang="en">
<div class="titlepage">
<div><div><h4 class="title">
<a name="fusion.iterator.functions.next"></a><a href="next.html" title="next">next</a>
</h4></div></div>
<div></div>
</div>
<a name="fusion.iterator.functions.next.description"></a><h5>
<a name="id426912"></a>
<a href="next.html#fusion.iterator.functions.next.description">Description</a>
</h5>
=======
<div class="section" title="next">
<div class="titlepage"><div><div><h4 class="title">
<a name="fusion.iterator.functions.next"></a><a class="link" href="next.html" title="next">next</a>
</h4></div></div></div>
<a name="fusion.iterator.functions.next.description"></a><h6>
<a name="id634970"></a>
<a class="link" href="next.html#fusion.iterator.functions.next.description">Description</a>
</h6>
>>>>>>> .merge-right.r57125
<p>
Moves an iterator 1 position forwards.
</p>
<<<<<<< .working
<a name="fusion.iterator.functions.next.synopsis"></a><h5>
<a name="id426939"></a>
<a href="next.html#fusion.iterator.functions.next.synopsis">Synopsis</a>
</h5>
=======
<a name="fusion.iterator.functions.next.synopsis"></a><h6>
<a name="id634988"></a>
<a class="link" href="next.html#fusion.iterator.functions.next.synopsis">Synopsis</a>
</h6>
>>>>>>> .merge-right.r57125
2009-09-14 07:47:53 +00:00
<pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span>
<span class="keyword">typename</span> <span class="identifier">I</span>
<span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/next.html" title="next"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">next</span><span class="special">(</span><span class="identifier">I</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">);</span>
</pre>
<div class="table">
<<<<<<< .working
<<<<<<< .working
<<<<<<< .working
<<<<<<< .working
<<<<<<< .working
<<<<<<< .working
<a name="id427082"></a><p class="title"><b>Table<EFBFBD>1.3.<2E>Parameters</b></p>
<table class="table" summary="Parameters">
=======
<a name="id679731"></a><p class="title"><b>Table<EFBFBD>1.3.<2E>Parameters</b></p>
=======
<a name="id634546"></a><p class="title"><b>Table<EFBFBD>1.3.<2E>Parameters</b></p>
=======
<a name="id626900"></a><p class="title"><b>Table<EFBFBD>1.3.<2E>Parameters</b></p>
=======
<a name="id650592"></a><p class="title"><b>Table&#160;1.3.&#160;Parameters</b></p>
=======
<a name="id638366"></a><p class="title"><b>Table&#160;1.3.&#160;Parameters</b></p>
=======
<a name="id635089"></a><p class="title"><b>Table&#160;1.3.&#160;Parameters</b></p>
>>>>>>> .merge-right.r58559
>>>>>>> .merge-right.r58549
>>>>>>> .merge-right.r58299
>>>>>>> .merge-right.r57337
>>>>>>> .merge-right.r57242
<div class="table-contents"><table class="table" summary="Parameters">
>>>>>>> .merge-right.r57125
<colgroup>
<col>
<col>
<col>
</colgroup>
<thead><tr>
<th><p>
Parameter
</p></th>
<th><p>
Requirement
</p></th>
<th><p>
Description
</p></th>
</tr></thead>
<tbody><tr>
<td><p>
<tt class="computeroutput"><span class="identifier">i</span></tt>
</p></td>
<td><p>
Model of <a href="../concepts/forward_iterator.html" title="Forward
Iterator">Forward
Iterator</a>
</p></td>
<td><p>
Operation's argument
</p></td>
</tr></tbody>
</table>
</div>
<<<<<<< .working
<a name="fusion.iterator.functions.next.expression_semantics"></a><h5>
<a name="id427182"></a>
<a href="next.html#fusion.iterator.functions.next.expression_semantics">Expression
=======
<br class="table-break"><a name="fusion.iterator.functions.next.expression_semantics"></a><h6>
<a name="id635717"></a>
<a class="link" href="next.html#fusion.iterator.functions.next.expression_semantics">Expression
>>>>>>> .merge-right.r57125
Semantics</a>
</h5>
2009-09-14 07:47:53 +00:00
<pre class="programlisting"><span class="identifier">next</span><span class="special">(</span><span class="identifier">i</span><span class="special">);</span>
</pre>
<p>
<span class="bold"><b>Return type</b></span>: A model of the same iterator
concept as <tt class="computeroutput"><span class="identifier">i</span></tt>.
</p>
<p>
<span class="bold"><b>Semantics</b></span>: Returns an iterator to the
next element after <tt class="computeroutput"><span class="identifier">i</span></tt>.
</p>
<<<<<<< .working
<a name="fusion.iterator.functions.next.header"></a><h5>
<a name="id427278"></a>
<a href="next.html#fusion.iterator.functions.next.header">Header</a>
</h5>
=======
<a name="fusion.iterator.functions.next.header"></a><h6>
<a name="id635782"></a>
<a class="link" href="next.html#fusion.iterator.functions.next.header">Header</a>
</h6>
>>>>>>> .merge-right.r57125
2009-09-14 07:47:53 +00:00
<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">iterator</span><span class="special">/</span><span class="identifier">next</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
2007-12-21 03:13:31 +00:00
<span class="preprocessor">#include</span> <span class="special">&lt;</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">next</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre>
<<<<<<< .working
<a name="fusion.iterator.functions.next.example"></a><h5>
<a name="id427434"></a>
<a href="next.html#fusion.iterator.functions.next.example">Example</a>
</h5>
<pre class="programlisting"><span class="keyword">typedef</span> <a href="../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</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">&gt;</span> <span class="identifier">vec</span><span class="special">;</span>
=======
<a name="fusion.iterator.functions.next.example"></a><h6>
<a name="id635890"></a>
<a class="link" href="next.html#fusion.iterator.functions.next.example">Example</a>
</h6>
<pre class="programlisting"><span class="keyword">typedef</span> <a class="link" href="../../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</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">&gt;</span> <span class="identifier">vec</span><span class="special">;</span>
>>>>>>> .merge-right.r57125
<span class="identifier">vec</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="deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><a href="../../sequence/intrinsic/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><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>
<span class="identifier">assert</span><span class="special">(</span><a href="deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><a href="next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../../sequence/intrinsic/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><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>
<span class="identifier">assert</span><span class="special">(</span><a href="deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><a href="next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../../sequence/intrinsic/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><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>
</pre>
</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 &#169; 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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="deref.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="prior.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
</body>
</html>