forked from boostorg/fusion
fusion: merge of associative iterators/views and the new fold interface
[SVN r58618]
This commit is contained in:
@ -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>distance</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<65>1.<2E>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="prior.html" title="prior">
|
||||
<link rel="next" href="advance.html" title="advance">
|
||||
@ -22,6 +30,7 @@
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="prior.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="advance.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">
|
||||
@ -33,13 +42,30 @@
|
||||
<a name="id428768"></a>
|
||||
<a href="distance.html#fusion.iterator.functions.distance.description">Description</a>
|
||||
</h5>
|
||||
=======
|
||||
<div class="section" title="distance">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.iterator.functions.distance"></a><a class="link" href="distance.html" title="distance">distance</a>
|
||||
</h4></div></div></div>
|
||||
<a name="fusion.iterator.functions.distance.description"></a><h6>
|
||||
<a name="id636810"></a>
|
||||
<a class="link" href="distance.html#fusion.iterator.functions.distance.description">Description</a>
|
||||
</h6>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<p>
|
||||
Returns the distance between 2 iterators.
|
||||
</p>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.iterator.functions.distance.synopsis"></a><h5>
|
||||
<a name="id428797"></a>
|
||||
<a href="distance.html#fusion.iterator.functions.distance.synopsis">Synopsis</a>
|
||||
</h5>
|
||||
=======
|
||||
<a name="fusion.iterator.functions.distance.synopsis"></a><h6>
|
||||
<a name="id636828"></a>
|
||||
<a class="link" href="distance.html#fusion.iterator.functions.distance.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span>
|
||||
<span class="keyword">typename</span> <span class="identifier">I</span><span class="special">,</span>
|
||||
<span class="keyword">typename</span> <span class="identifier">J</span>
|
||||
@ -47,8 +73,33 @@
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/distance.html" title="distance"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">distance</span></tt></a><span class="special"><</span><span class="identifier">I</span><span class="special">,</span> <span class="identifier">J</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">distance</span><span class="special">(</span><span class="identifier">I</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">i</span><span class="special">,</span> <span class="identifier">J</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">j</span><span class="special">);</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id428996"></a><p class="title"><b>Table<EFBFBD>1.5.<2E>Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
=======
|
||||
<a name="id681614"></a><p class="title"><b>Table<EFBFBD>1.5.<2E>Parameters</b></p>
|
||||
=======
|
||||
<a name="id637522"></a><p class="title"><b>Table<EFBFBD>1.5.<2E>Parameters</b></p>
|
||||
=======
|
||||
<a name="id629876"></a><p class="title"><b>Table<EFBFBD>1.5.<2E>Parameters</b></p>
|
||||
=======
|
||||
<a name="id652475"></a><p class="title"><b>Table 1.5. Parameters</b></p>
|
||||
=======
|
||||
<a name="id640249"></a><p class="title"><b>Table 1.5. Parameters</b></p>
|
||||
=======
|
||||
<a name="id636972"></a><p class="title"><b>Table 1.5. 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>
|
||||
@ -80,9 +131,15 @@
|
||||
</tr></tbody>
|
||||
</table>
|
||||
</div>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.iterator.functions.distance.expression_semantics"></a><h5>
|
||||
<a name="id429110"></a>
|
||||
<a href="distance.html#fusion.iterator.functions.distance.expression_semantics">Expression
|
||||
=======
|
||||
<br class="table-break"><a name="fusion.iterator.functions.distance.expression_semantics"></a><h6>
|
||||
<a name="id637061"></a>
|
||||
<a class="link" href="distance.html#fusion.iterator.functions.distance.expression_semantics">Expression
|
||||
>>>>>>> .merge-right.r57125
|
||||
Semantics</a>
|
||||
</h5>
|
||||
<pre class="programlisting"><a href="distance.html" title="distance"><tt class="computeroutput"><span class="identifier">distance</span></tt></a><span class="special">(</span><span class="identifier">i</span><span class="special">,</span><span class="identifier">j</span><span class="special">);</span>
|
||||
@ -94,18 +151,33 @@
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the distance between
|
||||
iterators <tt class="computeroutput"><span class="identifier">i</span></tt> and <tt class="computeroutput"><span class="identifier">j</span></tt>.
|
||||
</p>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.iterator.functions.distance.header"></a><h5>
|
||||
<a name="id429236"></a>
|
||||
<a href="distance.html#fusion.iterator.functions.distance.header">Header</a>
|
||||
</h5>
|
||||
=======
|
||||
<a name="fusion.iterator.functions.distance.header"></a><h6>
|
||||
<a name="id637144"></a>
|
||||
<a class="link" href="distance.html#fusion.iterator.functions.distance.header">Header</a>
|
||||
</h6>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">iterator</span><span class="special">/</span><span class="identifier">distance</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">distance</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.iterator.functions.distance.example"></a><h5>
|
||||
<a name="id429393"></a>
|
||||
<a href="distance.html#fusion.iterator.functions.distance.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"><</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">vec</span><span class="special">;</span>
|
||||
=======
|
||||
<a name="fusion.iterator.functions.distance.example"></a><h6>
|
||||
<a name="id637252"></a>
|
||||
<a class="link" href="distance.html#fusion.iterator.functions.distance.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"><</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">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="distance.html" title="distance"><tt class="computeroutput"><span class="identifier">distance</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> <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">2</span><span class="special">);</span>
|
||||
@ -113,7 +185,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 <EFBFBD> 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