diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-10-30 12:57:26 -0700 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-10-30 12:57:26 -0700 |
commit | 1a78a62555be32868418fe52f8e330c9d0f95d5a (patch) | |
tree | d3765a80e7d3b9640ec2e930743630cd6b9fce2b /libs/fusion/doc/html/fusion/algorithm | |
download | boost-1a78a62555be32868418fe52f8e330c9d0f95d5a.tar.gz boost-1a78a62555be32868418fe52f8e330c9d0f95d5a.tar.bz2 boost-1a78a62555be32868418fe52f8e330c9d0f95d5a.zip |
Imported Upstream version 1.49.0upstream/1.49.0
Diffstat (limited to 'libs/fusion/doc/html/fusion/algorithm')
76 files changed, 12018 insertions, 0 deletions
diff --git a/libs/fusion/doc/html/fusion/algorithm/auxiliary.html b/libs/fusion/doc/html/fusion/algorithm/auxiliary.html new file mode 100755 index 0000000000..0560269163 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/auxiliary.html @@ -0,0 +1,55 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>Auxiliary</title> +<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../algorithm.html" title="Algorithm"> +<link rel="prev" href="../algorithm.html" title="Algorithm"> +<link rel="next" href="auxiliary/functions.html" title="Functions"> +</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> +<td align="center"><a href="../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td> +<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="../algorithm.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../algorithm.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="auxiliary/functions.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h3 class="title"> +<a name="fusion.algorithm.auxiliary"></a><a class="link" href="auxiliary.html" title="Auxiliary">Auxiliary</a> +</h3></div></div></div> +<div class="toc"><dl><dt><span class="section"><a href="auxiliary/functions.html">Functions</a></span></dt></dl></div> +<p> + The auxiliary algorithms provide the utility algorithms for sequences. + </p> +<h5> +<a name="fusion.algorithm.auxiliary.h0"></a> + <span><a name="fusion.algorithm.auxiliary.header"></a></span><a class="link" href="auxiliary.html#fusion.algorithm.auxiliary.header">Header</a> + </h5> +<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">algorithm</span><span class="special">/</span><span class="identifier">auxiliary</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">auxiliary</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="../algorithm.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../algorithm.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="auxiliary/functions.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/auxiliary/functions.html b/libs/fusion/doc/html/fusion/algorithm/auxiliary/functions.html new file mode 100755 index 0000000000..3e4c351fb5 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/auxiliary/functions.html @@ -0,0 +1,45 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>Functions</title> +<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../auxiliary.html" title="Auxiliary"> +<link rel="prev" href="../auxiliary.html" title="Auxiliary"> +<link rel="next" href="functions/copy.html" title="copy"> +</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> +<td align="center"><a href="../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="../auxiliary.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../auxiliary.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="functions/copy.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h4 class="title"> +<a name="fusion.algorithm.auxiliary.functions"></a><a class="link" href="functions.html" title="Functions">Functions</a> +</h4></div></div></div> +<div class="toc"><dl><dt><span class="section"><a href="functions/copy.html">copy</a></span></dt></dl></div> +</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-2006, 2011 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="../auxiliary.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../auxiliary.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="functions/copy.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/auxiliary/functions/copy.html b/libs/fusion/doc/html/fusion/algorithm/auxiliary/functions/copy.html new file mode 100755 index 0000000000..45314d8192 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/auxiliary/functions/copy.html @@ -0,0 +1,170 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>copy</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="../functions.html" title="Functions"> +<link rel="next" href="../../iteration.html" title="Iteration"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="../functions.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../../iteration.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.auxiliary.functions.copy"></a><a class="link" href="copy.html" title="copy">copy</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.auxiliary.functions.copy.h0"></a> + <span><a name="fusion.algorithm.auxiliary.functions.copy.description"></a></span><a class="link" href="copy.html#fusion.algorithm.auxiliary.functions.copy.description">Description</a> + </h6> +<p> + Copy a sequence <code class="computeroutput"><span class="identifier">src</span></code> to + a sequence <code class="computeroutput"><span class="identifier">dest</span></code>. It is + also used to convert sequence into other. + </p> +<h6> +<a name="fusion.algorithm.auxiliary.functions.copy.h1"></a> + <span><a name="fusion.algorithm.auxiliary.functions.copy.synopsis"></a></span><a class="link" href="copy.html#fusion.algorithm.auxiliary.functions.copy.synopsis">Synopsis</a> + </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">copy</span><span class="special">(</span><span class="identifier">Seq1</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">src</span><span class="special">,</span> <span class="identifier">Seq2</span><span class="special">&</span> <span class="identifier">dest</span><span class="special">);</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.auxiliary.functions.copy.t0"></a><p class="title"><b>Table 1.37. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">src</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>, all elements contained in the <code class="computeroutput"><span class="identifier">src</span></code> sequence should be convertible + into the element contained in the <code class="computeroutput"><span class="identifier">dest</span></code> + sequence. + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">dest</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>, <code class="computeroutput"><span class="identifier">e2</span> + <span class="special">=</span> <span class="identifier">e1</span></code> + is valid expression for each pair of elements <code class="computeroutput"><span class="identifier">e1</span></code> of <code class="computeroutput"><span class="identifier">src</span></code> + and <code class="computeroutput"><span class="identifier">e2</span></code> of + <code class="computeroutput"><span class="identifier">dest</span></code>. + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.auxiliary.functions.copy.h2"></a> + <span><a name="fusion.algorithm.auxiliary.functions.copy.expression_semantics"></a></span><a class="link" href="copy.html#fusion.algorithm.auxiliary.functions.copy.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="copy.html" title="copy"><code class="computeroutput"><span class="identifier">copy</span></code></a><span class="special">(</span><span class="identifier">src</span><span class="special">,</span> <span class="identifier">dest</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">void</span></code> + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: <code class="computeroutput"><span class="identifier">e2</span> + <span class="special">=</span> <span class="identifier">e1</span></code> + for each element <code class="computeroutput"><span class="identifier">e1</span></code> in + <code class="computeroutput"><span class="identifier">src</span></code> and <code class="computeroutput"><span class="identifier">e2</span></code> in <code class="computeroutput"><span class="identifier">dest</span></code>. + </p> +<h6> +<a name="fusion.algorithm.auxiliary.functions.copy.h3"></a> + <span><a name="fusion.algorithm.auxiliary.functions.copy.complexity"></a></span><a class="link" href="copy.html#fusion.algorithm.auxiliary.functions.copy.complexity">Complexity</a> + </h6> +<p> + Linear, exactly <code class="computeroutput"><a class="link" href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">value</span></code>. + </p> +<h6> +<a name="fusion.algorithm.auxiliary.functions.copy.h4"></a> + <span><a name="fusion.algorithm.auxiliary.functions.copy.header"></a></span><a class="link" href="copy.html#fusion.algorithm.auxiliary.functions.copy.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">auxiliary</span><span class="special">/</span><span class="identifier">copy</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">copy</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.auxiliary.functions.copy.h5"></a> + <span><a name="fusion.algorithm.auxiliary.functions.copy.example"></a></span><a class="link" href="copy.html#fusion.algorithm.auxiliary.functions.copy.example">Example</a> + </h6> +<pre class="programlisting"><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="identifier">vec</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">);</span> +<a class="link" href="../../../container/list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">></span> <span class="identifier">ls</span><span class="special">;</span> +<a class="link" href="copy.html" title="copy"><code class="computeroutput"><span class="identifier">copy</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span> <span class="identifier">ls</span><span class="special">);</span> +<span class="identifier">assert</span><span class="special">(</span><span class="identifier">ls</span> <span class="special">==</span> <a class="link" href="../../../container/generation/functions/make_list.html" title="make_list"><code class="computeroutput"><span class="identifier">make_list</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</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 © 2001-2006, 2011 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="../functions.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../../iteration.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/iteration.html b/libs/fusion/doc/html/fusion/algorithm/iteration.html new file mode 100755 index 0000000000..4a2d76b910 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/iteration.html @@ -0,0 +1,59 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>Iteration</title> +<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../algorithm.html" title="Algorithm"> +<link rel="prev" href="auxiliary/functions/copy.html" title="copy"> +<link rel="next" href="iteration/functions.html" title="Functions"> +</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> +<td align="center"><a href="../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td> +<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="auxiliary/functions/copy.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../algorithm.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="iteration/functions.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h3 class="title"> +<a name="fusion.algorithm.iteration"></a><a class="link" href="iteration.html" title="Iteration">Iteration</a> +</h3></div></div></div> +<div class="toc"><dl> +<dt><span class="section"><a href="iteration/functions.html">Functions</a></span></dt> +<dt><span class="section"><a href="iteration/metafunctions.html">Metafunctions</a></span></dt> +</dl></div> +<p> + The iteration algorithms provide the fundamental algorithms for traversing + a sequence repeatedly applying an operation to its elements. + </p> +<h5> +<a name="fusion.algorithm.iteration.h0"></a> + <span><a name="fusion.algorithm.iteration.header"></a></span><a class="link" href="iteration.html#fusion.algorithm.iteration.header">Header</a> + </h5> +<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">algorithm</span><span class="special">/</span><span class="identifier">iteration</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">iteration</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="auxiliary/functions/copy.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../algorithm.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="iteration/functions.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/iteration/functions.html b/libs/fusion/doc/html/fusion/algorithm/iteration/functions.html new file mode 100755 index 0000000000..406d5ffb66 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/iteration/functions.html @@ -0,0 +1,52 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>Functions</title> +<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../iteration.html" title="Iteration"> +<link rel="prev" href="../iteration.html" title="Iteration"> +<link rel="next" href="functions/fold.html" title="fold"> +</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> +<td align="center"><a href="../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="../iteration.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../iteration.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="functions/fold.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h4 class="title"> +<a name="fusion.algorithm.iteration.functions"></a><a class="link" href="functions.html" title="Functions">Functions</a> +</h4></div></div></div> +<div class="toc"><dl> +<dt><span class="section"><a href="functions/fold.html">fold</a></span></dt> +<dt><span class="section"><a href="functions/reverse_fold.html">reverse_fold</a></span></dt> +<dt><span class="section"><a href="functions/iter_fold.html">iter_fold</a></span></dt> +<dt><span class="section"><a href="functions/reverse_iter_fold.html">reverse_iter_fold</a></span></dt> +<dt><span class="section"><a href="functions/accumulate.html">accumulate</a></span></dt> +<dt><span class="section"><a href="functions/for_each.html">for_each</a></span></dt> +</dl></div> +</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-2006, 2011 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="../iteration.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../iteration.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="functions/fold.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/iteration/functions/accumulate.html b/libs/fusion/doc/html/fusion/algorithm/iteration/functions/accumulate.html new file mode 100755 index 0000000000..f50eae48c3 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/iteration/functions/accumulate.html @@ -0,0 +1,209 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>accumulate</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="reverse_iter_fold.html" title="reverse_iter_fold"> +<link rel="next" href="for_each.html" title="for_each"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="reverse_iter_fold.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="for_each.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.iteration.functions.accumulate"></a><a class="link" href="accumulate.html" title="accumulate">accumulate</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.iteration.functions.accumulate.h0"></a> + <span><a name="fusion.algorithm.iteration.functions.accumulate.description"></a></span><a class="link" href="accumulate.html#fusion.algorithm.iteration.functions.accumulate.description">Description</a> + </h6> +<p> + For a sequence <code class="computeroutput"><span class="identifier">seq</span></code>, initial + state <code class="computeroutput"><span class="identifier">initial_state</span></code>, + and binary function object or function pointer <code class="computeroutput"><span class="identifier">f</span></code>, + <code class="literal">accumulate</code> returns the result of the repeated application + of binary <code class="computeroutput"><span class="identifier">f</span></code> to the result + of the previous <code class="computeroutput"><span class="identifier">f</span></code> invocation + (<code class="computeroutput"><span class="identifier">inital_state</span></code> if it is + the first call) and each element of <code class="computeroutput"><span class="identifier">seq</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.functions.accumulate.h1"></a> + <span><a name="fusion.algorithm.iteration.functions.accumulate.synopsis"></a></span><a class="link" href="accumulate.html#fusion.algorithm.iteration.functions.accumulate.synopsis">Synopsis</a> + </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> <span class="identifier">State</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">F</span> + <span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="../metafunctions/accumulate.html" title="accumulate"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">accumulate</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">State</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span> accumulate<span class="special">(</span> + <span class="identifier">Sequence</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">State</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">initial_state</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> + +<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> <span class="identifier">State</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">F</span> + <span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="../metafunctions/accumulate.html" title="accumulate"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">accumulate</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">State</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span> accumulate<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> <span class="identifier">State</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">initial_state</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.iteration.functions.accumulate.t0"></a><p class="title"><b>Table 1.42. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">initial_state</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + Initial state + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">f</span></code> + </p> + </td> +<td> + <p> + <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span>e<span class="special">)</span></code> with return type <code class="computeroutput"><a href="http://www.boost.org/libs/utility/utility.htm#result_of" target="_top"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">result_of</span></code></a><span class="special"><</span><span class="identifier">F</span><span class="special">(</span><span class="identifier">S</span><span class="special">,</span>E<span class="special">)>::</span><span class="identifier">type</span></code> for current state <code class="computeroutput"><span class="identifier">s</span></code> of type <code class="computeroutput"><span class="identifier">S</span></code>, + and for each element <code class="computeroutput"><span class="identifier">e</span></code> + of type <code class="computeroutput"><span class="identifier">E</span></code> in + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.iteration.functions.accumulate.h2"></a> + <span><a name="fusion.algorithm.iteration.functions.accumulate.expression_semantics"></a></span><a class="link" href="accumulate.html#fusion.algorithm.iteration.functions.accumulate.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting">accumulate<span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">initial_state</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: Any type + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Equivalent to <code class="literal">f(... + f(f(initial_state,e1),e2) ...eN)</code> where <code class="literal">e1 ...eN</code> + are the consecutive elements of <code class="computeroutput"><span class="identifier">seq</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.functions.accumulate.h3"></a> + <span><a name="fusion.algorithm.iteration.functions.accumulate.complexity"></a></span><a class="link" href="accumulate.html#fusion.algorithm.iteration.functions.accumulate.complexity">Complexity</a> + </h6> +<p> + Linear, exactly <code class="computeroutput"><a class="link" href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">value</span></code> applications of <code class="computeroutput"><span class="identifier">f</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.functions.accumulate.h4"></a> + <span><a name="fusion.algorithm.iteration.functions.accumulate.header"></a></span><a class="link" href="accumulate.html#fusion.algorithm.iteration.functions.accumulate.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">iteration</span><span class="special">/</span>accumulate<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>accumulate<span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.iteration.functions.accumulate.h5"></a> + <span><a name="fusion.algorithm.iteration.functions.accumulate.example"></a></span><a class="link" href="accumulate.html#fusion.algorithm.iteration.functions.accumulate.example">Example</a> + </h6> +<pre class="programlisting"><span class="keyword">struct</span> <span class="identifier">make_string</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="identifier">result_type</span><span class="special">;</span> + + <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">T</span><span class="special">></span> + <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="keyword">operator</span><span class="special">()(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">str</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&</span> <span class="identifier">t</span><span class="special">)</span> <span class="keyword">const</span> + <span class="special">{</span> + <span class="keyword">return</span> <span class="identifier">str</span> <span class="special">+</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">lexical_cast</span><span class="special"><</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">>(</span>t<span class="special">);</span> + <span class="special">}</span> +<span class="special">};</span> +<span class="special">...</span> +<span class="keyword">const</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="identifier">vec</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="identifier">assert</span><span class="special">(</span>accumulate<span class="special">(</span><span class="identifier">vec</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="string">""</span><span class="special">),</span> <span class="identifier">make_string</span><span class="special">())</span> <span class="special">==</span> "12"<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 © 2001-2006, 2011 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="reverse_iter_fold.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="for_each.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/iteration/functions/fold.html b/libs/fusion/doc/html/fusion/algorithm/iteration/functions/fold.html new file mode 100755 index 0000000000..81710a4f99 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/iteration/functions/fold.html @@ -0,0 +1,209 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>fold</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="../functions.html" title="Functions"> +<link rel="next" href="reverse_fold.html" title="reverse_fold"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="../functions.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="reverse_fold.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.iteration.functions.fold"></a><a class="link" href="fold.html" title="fold">fold</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.iteration.functions.fold.h0"></a> + <span><a name="fusion.algorithm.iteration.functions.fold.description"></a></span><a class="link" href="fold.html#fusion.algorithm.iteration.functions.fold.description">Description</a> + </h6> +<p> + For a sequence <code class="computeroutput"><span class="identifier">seq</span></code>, initial + state <code class="computeroutput"><span class="identifier">initial_state</span></code>, + and binary function object or function pointer <code class="computeroutput"><span class="identifier">f</span></code>, + <code class="literal">fold</code> returns the result of the repeated application + of binary <code class="computeroutput"><span class="identifier">f</span></code> to the result + of the previous <code class="computeroutput"><span class="identifier">f</span></code> invocation + (<code class="computeroutput"><span class="identifier">inital_state</span></code> if it is + the first call) and each element of <code class="computeroutput"><span class="identifier">seq</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.functions.fold.h1"></a> + <span><a name="fusion.algorithm.iteration.functions.fold.synopsis"></a></span><a class="link" href="fold.html#fusion.algorithm.iteration.functions.fold.synopsis">Synopsis</a> + </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> <span class="identifier">State</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">F</span> + <span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="../metafunctions/fold.html" title="fold"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">fold</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">State</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span> fold<span class="special">(</span> + <span class="identifier">Sequence</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">State</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">initial_state</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> + +<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> <span class="identifier">State</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">F</span> + <span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="../metafunctions/fold.html" title="fold"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">fold</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">State</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span> fold<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> <span class="identifier">State</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">initial_state</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.iteration.functions.fold.t0"></a><p class="title"><b>Table 1.38. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">initial_state</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + Initial state + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">f</span></code> + </p> + </td> +<td> + <p> + <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span>e<span class="special">)</span></code> with return type <code class="computeroutput"><a href="http://www.boost.org/libs/utility/utility.htm#result_of" target="_top"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">result_of</span></code></a><span class="special"><</span><span class="identifier">F</span><span class="special">(</span><span class="identifier">S</span><span class="special">,</span>E<span class="special">)>::</span><span class="identifier">type</span></code> for current state <code class="computeroutput"><span class="identifier">s</span></code> of type <code class="computeroutput"><span class="identifier">S</span></code>, + and for each element <code class="computeroutput"><span class="identifier">e</span></code> + of type <code class="computeroutput"><span class="identifier">E</span></code> in + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.iteration.functions.fold.h2"></a> + <span><a name="fusion.algorithm.iteration.functions.fold.expression_semantics"></a></span><a class="link" href="fold.html#fusion.algorithm.iteration.functions.fold.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting">fold<span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">initial_state</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: Any type + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Equivalent to <code class="literal">f(... + f(f(initial_state,e1),e2) ...eN)</code> where <code class="literal">e1 ...eN</code> + are the consecutive elements of <code class="computeroutput"><span class="identifier">seq</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.functions.fold.h3"></a> + <span><a name="fusion.algorithm.iteration.functions.fold.complexity"></a></span><a class="link" href="fold.html#fusion.algorithm.iteration.functions.fold.complexity">Complexity</a> + </h6> +<p> + Linear, exactly <code class="computeroutput"><a class="link" href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">value</span></code> applications of <code class="computeroutput"><span class="identifier">f</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.functions.fold.h4"></a> + <span><a name="fusion.algorithm.iteration.functions.fold.header"></a></span><a class="link" href="fold.html#fusion.algorithm.iteration.functions.fold.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">iteration</span><span class="special">/</span>fold<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>fold<span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.iteration.functions.fold.h5"></a> + <span><a name="fusion.algorithm.iteration.functions.fold.example"></a></span><a class="link" href="fold.html#fusion.algorithm.iteration.functions.fold.example">Example</a> + </h6> +<pre class="programlisting"><span class="keyword">struct</span> <span class="identifier">make_string</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="identifier">result_type</span><span class="special">;</span> + + <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">T</span><span class="special">></span> + <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="keyword">operator</span><span class="special">()(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">str</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&</span> <span class="identifier">t</span><span class="special">)</span> <span class="keyword">const</span> + <span class="special">{</span> + <span class="keyword">return</span> <span class="identifier">str</span> <span class="special">+</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">lexical_cast</span><span class="special"><</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">>(</span>t<span class="special">);</span> + <span class="special">}</span> +<span class="special">};</span> +<span class="special">...</span> +<span class="keyword">const</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="identifier">vec</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="identifier">assert</span><span class="special">(</span>fold<span class="special">(</span><span class="identifier">vec</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="string">""</span><span class="special">),</span> <span class="identifier">make_string</span><span class="special">())</span> <span class="special">==</span> "12"<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 © 2001-2006, 2011 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="../functions.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="reverse_fold.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/iteration/functions/for_each.html b/libs/fusion/doc/html/fusion/algorithm/iteration/functions/for_each.html new file mode 100755 index 0000000000..4c5def095d --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/iteration/functions/for_each.html @@ -0,0 +1,174 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>for_each</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="accumulate.html" title="accumulate"> +<link rel="next" href="../metafunctions.html" title="Metafunctions"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="accumulate.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.iteration.functions.for_each"></a><a class="link" href="for_each.html" title="for_each">for_each</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.iteration.functions.for_each.h0"></a> + <span><a name="fusion.algorithm.iteration.functions.for_each.description"></a></span><a class="link" href="for_each.html#fusion.algorithm.iteration.functions.for_each.description">Description</a> + </h6> +<p> + Applies a unary function object to each element of a sequence. + </p> +<h6> +<a name="fusion.algorithm.iteration.functions.for_each.h1"></a> + <span><a name="fusion.algorithm.iteration.functions.for_each.synopsis"></a></span><a class="link" href="for_each.html#fusion.algorithm.iteration.functions.for_each.synopsis">Synopsis</a> + </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> <span class="identifier">F</span> + <span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="../metafunctions/for_each.html" title="for_each"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">for_each</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">for_each</span><span class="special">(</span> + <span class="identifier">Sequence</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.iteration.functions.for_each.t0"></a><p class="title"><b>Table 1.43. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>, <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> must be a valid expression + for each element <code class="computeroutput"><span class="identifier">e</span></code> + in <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">f</span></code> + </p> + </td> +<td> + <p> + A unary <a class="link" href="../../../functional/concepts/reg_callable.html" title="Regular Callable Object">Regular + Callable Object</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.iteration.functions.for_each.h2"></a> + <span><a name="fusion.algorithm.iteration.functions.for_each.expression_semantics"></a></span><a class="link" href="for_each.html#fusion.algorithm.iteration.functions.for_each.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="for_each.html" title="for_each"><code class="computeroutput"><span class="identifier">for_each</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">void</span></code> + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Calls <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> for each element <code class="computeroutput"><span class="identifier">e</span></code> + in <code class="computeroutput"><span class="identifier">seq</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.functions.for_each.h3"></a> + <span><a name="fusion.algorithm.iteration.functions.for_each.complexity"></a></span><a class="link" href="for_each.html#fusion.algorithm.iteration.functions.for_each.complexity">Complexity</a> + </h6> +<p> + Linear, exactly <code class="computeroutput"><a class="link" href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">value</span></code> applications of <code class="computeroutput"><span class="identifier">f</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.functions.for_each.h4"></a> + <span><a name="fusion.algorithm.iteration.functions.for_each.header"></a></span><a class="link" href="for_each.html#fusion.algorithm.iteration.functions.for_each.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">iteration</span><span class="special">/</span><span class="identifier">for_each</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">for_each</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.iteration.functions.for_each.h5"></a> + <span><a name="fusion.algorithm.iteration.functions.for_each.example"></a></span><a class="link" href="for_each.html#fusion.algorithm.iteration.functions.for_each.example">Example</a> + </h6> +<pre class="programlisting"><span class="keyword">struct</span> <span class="identifier">increment</span> +<span class="special">{</span> + <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">T</span><span class="special">></span> + <span class="keyword">void</span> <span class="keyword">operator</span><span class="special">()(</span><span class="identifier">T</span><span class="special">&</span> <span class="identifier">t</span><span class="special">)</span> <span class="keyword">const</span> + <span class="special">{</span> + <span class="special">++</span><span class="identifier">t</span><span class="special">;</span> + <span class="special">}</span> +<span class="special">};</span> +<span class="special">...</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="identifier">vec</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">);</span> +<a class="link" href="for_each.html" title="for_each"><code class="computeroutput"><span class="identifier">for_each</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span> <span class="identifier">increment</span><span class="special">());</span> +<span class="identifier">assert</span><span class="special">(</span><span class="identifier">vec</span> <span class="special">==</span> <a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">2</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 © 2001-2006, 2011 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="accumulate.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/iteration/functions/iter_fold.html b/libs/fusion/doc/html/fusion/algorithm/iteration/functions/iter_fold.html new file mode 100755 index 0000000000..503dfd6961 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/iteration/functions/iter_fold.html @@ -0,0 +1,209 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>iter_fold</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="reverse_fold.html" title="reverse_fold"> +<link rel="next" href="reverse_iter_fold.html" title="reverse_iter_fold"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="reverse_fold.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="reverse_iter_fold.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.iteration.functions.iter_fold"></a><a class="link" href="iter_fold.html" title="iter_fold">iter_fold</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.iteration.functions.iter_fold.h0"></a> + <span><a name="fusion.algorithm.iteration.functions.iter_fold.description"></a></span><a class="link" href="iter_fold.html#fusion.algorithm.iteration.functions.iter_fold.description">Description</a> + </h6> +<p> + For a sequence <code class="computeroutput"><span class="identifier">seq</span></code>, initial + state <code class="computeroutput"><span class="identifier">initial_state</span></code>, + and binary function object or function pointer <code class="computeroutput"><span class="identifier">f</span></code>, + <code class="literal">iter_fold</code> returns the result of the repeated application + of binary <code class="computeroutput"><span class="identifier">f</span></code> to the result + of the previous <code class="computeroutput"><span class="identifier">f</span></code> invocation + (<code class="computeroutput"><span class="identifier">inital_state</span></code> if it is + the first call) and iterators on each element of <code class="computeroutput"><span class="identifier">seq</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.functions.iter_fold.h1"></a> + <span><a name="fusion.algorithm.iteration.functions.iter_fold.synopsis"></a></span><a class="link" href="iter_fold.html#fusion.algorithm.iteration.functions.iter_fold.synopsis">Synopsis</a> + </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> <span class="identifier">State</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">F</span> + <span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="../metafunctions/iter_fold.html" title="iter_fold"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">iter_fold</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">State</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span> iter_fold<span class="special">(</span> + <span class="identifier">Sequence</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">State</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">initial_state</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> + +<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> <span class="identifier">State</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">F</span> + <span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="../metafunctions/iter_fold.html" title="iter_fold"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">iter_fold</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">State</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span> iter_fold<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> <span class="identifier">State</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">initial_state</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.iteration.functions.iter_fold.t0"></a><p class="title"><b>Table 1.40. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">initial_state</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + Initial state + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">f</span></code> + </p> + </td> +<td> + <p> + <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span>it<span class="special">)</span></code> with return type <code class="computeroutput"><a href="http://www.boost.org/libs/utility/utility.htm#result_of" target="_top"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">result_of</span></code></a><span class="special"><</span><span class="identifier">F</span><span class="special">(</span><span class="identifier">S</span><span class="special">,</span>It<span class="special">)>::</span><span class="identifier">type</span></code> for current state <code class="computeroutput"><span class="identifier">s</span></code> of type <code class="computeroutput"><span class="identifier">S</span></code>, + and for each iterator <code class="computeroutput"><span class="identifier">it</span></code> + of type <code class="computeroutput"><span class="identifier">It</span></code> + on an element of <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.iteration.functions.iter_fold.h2"></a> + <span><a name="fusion.algorithm.iteration.functions.iter_fold.expression_semantics"></a></span><a class="link" href="iter_fold.html#fusion.algorithm.iteration.functions.iter_fold.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting">iter_fold<span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">initial_state</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: Any type + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Equivalent to <code class="literal">f(... + f(f(initial_state,it1),it2) ...itN)</code> where <code class="literal">it1 ...itN</code> + are consecutive iterators on the elements of <code class="computeroutput"><span class="identifier">seq</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.functions.iter_fold.h3"></a> + <span><a name="fusion.algorithm.iteration.functions.iter_fold.complexity"></a></span><a class="link" href="iter_fold.html#fusion.algorithm.iteration.functions.iter_fold.complexity">Complexity</a> + </h6> +<p> + Linear, exactly <code class="computeroutput"><a class="link" href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">value</span></code> applications of <code class="computeroutput"><span class="identifier">f</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.functions.iter_fold.h4"></a> + <span><a name="fusion.algorithm.iteration.functions.iter_fold.header"></a></span><a class="link" href="iter_fold.html#fusion.algorithm.iteration.functions.iter_fold.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">iteration</span><span class="special">/</span>iter_fold<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>iter_fold<span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.iteration.functions.iter_fold.h5"></a> + <span><a name="fusion.algorithm.iteration.functions.iter_fold.example"></a></span><a class="link" href="iter_fold.html#fusion.algorithm.iteration.functions.iter_fold.example">Example</a> + </h6> +<pre class="programlisting"><span class="keyword">struct</span> <span class="identifier">make_string</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="identifier">result_type</span><span class="special">;</span> + + <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">T</span><span class="special">></span> + <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="keyword">operator</span><span class="special">()(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">str</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&</span> <span class="identifier">t</span><span class="special">)</span> <span class="keyword">const</span> + <span class="special">{</span> + <span class="keyword">return</span> <span class="identifier">str</span> <span class="special">+</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">lexical_cast</span><span class="special"><</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">>(</span><a class="link" href="../../../iterator/functions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a>(t)<span class="special">);</span> + <span class="special">}</span> +<span class="special">};</span> +<span class="special">...</span> +<span class="keyword">const</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="identifier">vec</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="identifier">assert</span><span class="special">(</span>iter_fold<span class="special">(</span><span class="identifier">vec</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="string">""</span><span class="special">),</span> <span class="identifier">make_string</span><span class="special">())</span> <span class="special">==</span> "12"<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 © 2001-2006, 2011 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="reverse_fold.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="reverse_iter_fold.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/iteration/functions/reverse_fold.html b/libs/fusion/doc/html/fusion/algorithm/iteration/functions/reverse_fold.html new file mode 100755 index 0000000000..847832b37e --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/iteration/functions/reverse_fold.html @@ -0,0 +1,209 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>reverse_fold</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="fold.html" title="fold"> +<link rel="next" href="iter_fold.html" title="iter_fold"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="fold.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="iter_fold.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.iteration.functions.reverse_fold"></a><a class="link" href="reverse_fold.html" title="reverse_fold">reverse_fold</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.iteration.functions.reverse_fold.h0"></a> + <span><a name="fusion.algorithm.iteration.functions.reverse_fold.description"></a></span><a class="link" href="reverse_fold.html#fusion.algorithm.iteration.functions.reverse_fold.description">Description</a> + </h6> +<p> + For a sequence <code class="computeroutput"><span class="identifier">seq</span></code>, initial + state <code class="computeroutput"><span class="identifier">initial_state</span></code>, + and binary function object or function pointer <code class="computeroutput"><span class="identifier">f</span></code>, + <code class="literal">reverse_fold</code> returns the result of the repeated application + of binary <code class="computeroutput"><span class="identifier">f</span></code> to the result + of the previous <code class="computeroutput"><span class="identifier">f</span></code> invocation + (<code class="computeroutput"><span class="identifier">inital_state</span></code> if it is + the first call) and each element of <code class="computeroutput"><span class="identifier">seq</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.functions.reverse_fold.h1"></a> + <span><a name="fusion.algorithm.iteration.functions.reverse_fold.synopsis"></a></span><a class="link" href="reverse_fold.html#fusion.algorithm.iteration.functions.reverse_fold.synopsis">Synopsis</a> + </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> <span class="identifier">State</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">F</span> + <span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="../metafunctions/reverse_fold.html" title="reverse_fold"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">reverse_fold</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">State</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span> reverse_fold<span class="special">(</span> + <span class="identifier">Sequence</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">State</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">initial_state</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> + +<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> <span class="identifier">State</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">F</span> + <span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="../metafunctions/reverse_fold.html" title="reverse_fold"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">reverse_fold</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">State</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span> reverse_fold<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> <span class="identifier">State</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">initial_state</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.iteration.functions.reverse_fold.t0"></a><p class="title"><b>Table 1.39. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/bidirectional_sequence.html" title="Bidirectional Sequence">Bidirectional + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">initial_state</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + Initial state + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">f</span></code> + </p> + </td> +<td> + <p> + <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span>e<span class="special">)</span></code> with return type <code class="computeroutput"><a href="http://www.boost.org/libs/utility/utility.htm#result_of" target="_top"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">result_of</span></code></a><span class="special"><</span><span class="identifier">F</span><span class="special">(</span><span class="identifier">S</span><span class="special">,</span>E<span class="special">)>::</span><span class="identifier">type</span></code> for current state <code class="computeroutput"><span class="identifier">s</span></code> of type <code class="computeroutput"><span class="identifier">S</span></code>, + and for each element <code class="computeroutput"><span class="identifier">e</span></code> + of type <code class="computeroutput"><span class="identifier">E</span></code> in + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.iteration.functions.reverse_fold.h2"></a> + <span><a name="fusion.algorithm.iteration.functions.reverse_fold.expression_semantics"></a></span><a class="link" href="reverse_fold.html#fusion.algorithm.iteration.functions.reverse_fold.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting">reverse_fold<span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">initial_state</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: Any type + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Equivalent to <code class="literal">f(... + f(f(initial_state,eN),eN-1) ...e1)</code> where <code class="literal">e1 ...eN</code> + are the consecutive elements of <code class="computeroutput"><span class="identifier">seq</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.functions.reverse_fold.h3"></a> + <span><a name="fusion.algorithm.iteration.functions.reverse_fold.complexity"></a></span><a class="link" href="reverse_fold.html#fusion.algorithm.iteration.functions.reverse_fold.complexity">Complexity</a> + </h6> +<p> + Linear, exactly <code class="computeroutput"><a class="link" href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">value</span></code> applications of <code class="computeroutput"><span class="identifier">f</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.functions.reverse_fold.h4"></a> + <span><a name="fusion.algorithm.iteration.functions.reverse_fold.header"></a></span><a class="link" href="reverse_fold.html#fusion.algorithm.iteration.functions.reverse_fold.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">iteration</span><span class="special">/</span>reverse_fold<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>reverse_fold<span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.iteration.functions.reverse_fold.h5"></a> + <span><a name="fusion.algorithm.iteration.functions.reverse_fold.example"></a></span><a class="link" href="reverse_fold.html#fusion.algorithm.iteration.functions.reverse_fold.example">Example</a> + </h6> +<pre class="programlisting"><span class="keyword">struct</span> <span class="identifier">make_string</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="identifier">result_type</span><span class="special">;</span> + + <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">T</span><span class="special">></span> + <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="keyword">operator</span><span class="special">()(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">str</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&</span> <span class="identifier">t</span><span class="special">)</span> <span class="keyword">const</span> + <span class="special">{</span> + <span class="keyword">return</span> <span class="identifier">str</span> <span class="special">+</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">lexical_cast</span><span class="special"><</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">>(</span>t<span class="special">);</span> + <span class="special">}</span> +<span class="special">};</span> +<span class="special">...</span> +<span class="keyword">const</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="identifier">vec</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="identifier">assert</span><span class="special">(</span>reverse_fold<span class="special">(</span><span class="identifier">vec</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="string">""</span><span class="special">),</span> <span class="identifier">make_string</span><span class="special">())</span> <span class="special">==</span> "21"<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 © 2001-2006, 2011 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="fold.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="iter_fold.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/iteration/functions/reverse_iter_fold.html b/libs/fusion/doc/html/fusion/algorithm/iteration/functions/reverse_iter_fold.html new file mode 100755 index 0000000000..35f4fed927 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/iteration/functions/reverse_iter_fold.html @@ -0,0 +1,209 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>reverse_iter_fold</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="iter_fold.html" title="iter_fold"> +<link rel="next" href="accumulate.html" title="accumulate"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="iter_fold.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="accumulate.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.iteration.functions.reverse_iter_fold"></a><a class="link" href="reverse_iter_fold.html" title="reverse_iter_fold">reverse_iter_fold</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.iteration.functions.reverse_iter_fold.h0"></a> + <span><a name="fusion.algorithm.iteration.functions.reverse_iter_fold.description"></a></span><a class="link" href="reverse_iter_fold.html#fusion.algorithm.iteration.functions.reverse_iter_fold.description">Description</a> + </h6> +<p> + For a sequence <code class="computeroutput"><span class="identifier">seq</span></code>, initial + state <code class="computeroutput"><span class="identifier">initial_state</span></code>, + and binary function object or function pointer <code class="computeroutput"><span class="identifier">f</span></code>, + <code class="literal">reverse_iter_fold</code> returns the result of the repeated + application of binary <code class="computeroutput"><span class="identifier">f</span></code> + to the result of the previous <code class="computeroutput"><span class="identifier">f</span></code> + invocation (<code class="computeroutput"><span class="identifier">inital_state</span></code> + if it is the first call) and iterators on each element of <code class="computeroutput"><span class="identifier">seq</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.functions.reverse_iter_fold.h1"></a> + <span><a name="fusion.algorithm.iteration.functions.reverse_iter_fold.synopsis"></a></span><a class="link" href="reverse_iter_fold.html#fusion.algorithm.iteration.functions.reverse_iter_fold.synopsis">Synopsis</a> + </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> <span class="identifier">State</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">F</span> + <span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="../metafunctions/reverse_iter_fold.html" title="reverse_iter_fold"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">reverse_iter_fold</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">State</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span> reverse_iter_fold<span class="special">(</span> + <span class="identifier">Sequence</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">State</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">initial_state</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> + +<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> <span class="identifier">State</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">F</span> + <span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="../metafunctions/reverse_iter_fold.html" title="reverse_iter_fold"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">reverse_iter_fold</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">State</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span> reverse_iter_fold<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> <span class="identifier">State</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">initial_state</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.iteration.functions.reverse_iter_fold.t0"></a><p class="title"><b>Table 1.41. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/bidirectional_sequence.html" title="Bidirectional Sequence">Bidirectional + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">initial_state</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + Initial state + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">f</span></code> + </p> + </td> +<td> + <p> + <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span>it<span class="special">)</span></code> with return type <code class="computeroutput"><a href="http://www.boost.org/libs/utility/utility.htm#result_of" target="_top"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">result_of</span></code></a><span class="special"><</span><span class="identifier">F</span><span class="special">(</span><span class="identifier">S</span><span class="special">,</span>It<span class="special">)>::</span><span class="identifier">type</span></code> for current state <code class="computeroutput"><span class="identifier">s</span></code> of type <code class="computeroutput"><span class="identifier">S</span></code>, + and for each iterator <code class="computeroutput"><span class="identifier">it</span></code> + of type <code class="computeroutput"><span class="identifier">It</span></code> + on an element of <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.iteration.functions.reverse_iter_fold.h2"></a> + <span><a name="fusion.algorithm.iteration.functions.reverse_iter_fold.expression_semantics"></a></span><a class="link" href="reverse_iter_fold.html#fusion.algorithm.iteration.functions.reverse_iter_fold.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting">reverse_iter_fold<span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">initial_state</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: Any type + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Equivalent to <code class="literal">f(... + f(f(initial_state,itN),itN-1) ...it1)</code> where <code class="literal">it1 ...itN</code> + are consecutive iterators on the elements of <code class="computeroutput"><span class="identifier">seq</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.functions.reverse_iter_fold.h3"></a> + <span><a name="fusion.algorithm.iteration.functions.reverse_iter_fold.complexity"></a></span><a class="link" href="reverse_iter_fold.html#fusion.algorithm.iteration.functions.reverse_iter_fold.complexity">Complexity</a> + </h6> +<p> + Linear, exactly <code class="computeroutput"><a class="link" href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">value</span></code> applications of <code class="computeroutput"><span class="identifier">f</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.functions.reverse_iter_fold.h4"></a> + <span><a name="fusion.algorithm.iteration.functions.reverse_iter_fold.header"></a></span><a class="link" href="reverse_iter_fold.html#fusion.algorithm.iteration.functions.reverse_iter_fold.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">iteration</span><span class="special">/</span>reverse_iter_fold<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>reverse_iter_fold<span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.iteration.functions.reverse_iter_fold.h5"></a> + <span><a name="fusion.algorithm.iteration.functions.reverse_iter_fold.example"></a></span><a class="link" href="reverse_iter_fold.html#fusion.algorithm.iteration.functions.reverse_iter_fold.example">Example</a> + </h6> +<pre class="programlisting"><span class="keyword">struct</span> <span class="identifier">make_string</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="identifier">result_type</span><span class="special">;</span> + + <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">T</span><span class="special">></span> + <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="keyword">operator</span><span class="special">()(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">str</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&</span> <span class="identifier">t</span><span class="special">)</span> <span class="keyword">const</span> + <span class="special">{</span> + <span class="keyword">return</span> <span class="identifier">str</span> <span class="special">+</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">lexical_cast</span><span class="special"><</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">>(</span><a class="link" href="../../../iterator/functions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a>(t)<span class="special">);</span> + <span class="special">}</span> +<span class="special">};</span> +<span class="special">...</span> +<span class="keyword">const</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="identifier">vec</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="identifier">assert</span><span class="special">(</span>reverse_iter_fold<span class="special">(</span><span class="identifier">vec</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="string">""</span><span class="special">),</span> <span class="identifier">make_string</span><span class="special">())</span> <span class="special">==</span> "21"<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 © 2001-2006, 2011 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="iter_fold.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="accumulate.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/iteration/metafunctions.html b/libs/fusion/doc/html/fusion/algorithm/iteration/metafunctions.html new file mode 100755 index 0000000000..8a972ee9c8 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/iteration/metafunctions.html @@ -0,0 +1,52 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>Metafunctions</title> +<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../iteration.html" title="Iteration"> +<link rel="prev" href="functions/for_each.html" title="for_each"> +<link rel="next" href="metafunctions/fold.html" title="fold"> +</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> +<td align="center"><a href="../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="functions/for_each.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../iteration.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="metafunctions/fold.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h4 class="title"> +<a name="fusion.algorithm.iteration.metafunctions"></a><a class="link" href="metafunctions.html" title="Metafunctions">Metafunctions</a> +</h4></div></div></div> +<div class="toc"><dl> +<dt><span class="section"><a href="metafunctions/fold.html">fold</a></span></dt> +<dt><span class="section"><a href="metafunctions/reverse_fold.html">reverse_fold</a></span></dt> +<dt><span class="section"><a href="metafunctions/iter_fold.html">iter_fold</a></span></dt> +<dt><span class="section"><a href="metafunctions/reverse_iter_fold.html">reverse_iter_fold</a></span></dt> +<dt><span class="section"><a href="metafunctions/accumulate.html">accumulate</a></span></dt> +<dt><span class="section"><a href="metafunctions/for_each.html">for_each</a></span></dt> +</dl></div> +</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-2006, 2011 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="functions/for_each.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../iteration.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="metafunctions/fold.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/iteration/metafunctions/accumulate.html b/libs/fusion/doc/html/fusion/algorithm/iteration/metafunctions/accumulate.html new file mode 100755 index 0000000000..e47e392605 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/iteration/metafunctions/accumulate.html @@ -0,0 +1,180 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>accumulate</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="reverse_iter_fold.html" title="reverse_iter_fold"> +<link rel="next" href="for_each.html" title="for_each"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="reverse_iter_fold.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="for_each.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.iteration.metafunctions.accumulate"></a><a class="link" href="accumulate.html" title="accumulate">accumulate</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.iteration.metafunctions.accumulate.h0"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.accumulate.description"></a></span><a class="link" href="accumulate.html#fusion.algorithm.iteration.metafunctions.accumulate.description">Description</a> + </h6> +<p> + Returns the result type of <a class="link" href="../functions/accumulate.html" title="accumulate"><code class="computeroutput"><span class="identifier">accumulate</span></code></a>. + </p> +<h6> +<a name="fusion.algorithm.iteration.metafunctions.accumulate.h1"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.accumulate.synopsis"></a></span><a class="link" href="accumulate.html#fusion.algorithm.iteration.metafunctions.accumulate.synopsis">Synopsis</a> + </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> <span class="identifier">State</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">F</span><span class="special">></span> +<span class="keyword">struct</span> accumulate +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.iteration.metafunctions.accumulate.t0"></a><p class="title"><b>Table 1.48. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + The sequence to iterate + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">State</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + The initial state for the first application of <code class="computeroutput"><span class="identifier">F</span></code> + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">F</span></code> + </p> + </td> +<td> + <p> + <code class="computeroutput"><a href="http://www.boost.org/libs/utility/utility.htm#result_of" target="_top"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">result_of</span></code></a><span class="special"><</span><span class="identifier">F</span><span class="special">(</span><span class="identifier">S</span><span class="special">,</span>E<span class="special">)>::</span><span class="identifier">type</span></code> is the return type of + <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span>e<span class="special">)</span></code> with current state <code class="computeroutput"><span class="identifier">s</span></code> of type <code class="computeroutput"><span class="identifier">S</span></code>, + and an element <code class="computeroutput"><span class="identifier">e</span></code> + of type <code class="computeroutput"><span class="identifier">E</span></code> in + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + The operation to be applied on traversal + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.iteration.metafunctions.accumulate.h2"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.accumulate.expression_semantics"></a></span><a class="link" href="accumulate.html#fusion.algorithm.iteration.metafunctions.accumulate.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting">accumulate<span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">State</span><span class="special">,</span> <span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: Any type + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns the result of applying + <a class="link" href="../functions/accumulate.html" title="accumulate"><code class="computeroutput"><span class="identifier">accumulate</span></code></a> to a sequence of + type <code class="computeroutput"><span class="identifier">Sequence</span></code>, with an + initial state of type <code class="computeroutput"><span class="identifier">State</span></code> + and binary function object or function pointer of type <code class="computeroutput"><span class="identifier">F</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.metafunctions.accumulate.h3"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.accumulate.complexity"></a></span><a class="link" href="accumulate.html#fusion.algorithm.iteration.metafunctions.accumulate.complexity">Complexity</a> + </h6> +<p> + Linear, exactly <code class="computeroutput"><a class="link" href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">value</span></code> applications of <code class="computeroutput"><span class="identifier">F</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.metafunctions.accumulate.h4"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.accumulate.header"></a></span><a class="link" href="accumulate.html#fusion.algorithm.iteration.metafunctions.accumulate.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">iteration</span><span class="special">/</span>accumulate<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>accumulate<span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="reverse_iter_fold.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="for_each.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/iteration/metafunctions/fold.html b/libs/fusion/doc/html/fusion/algorithm/iteration/metafunctions/fold.html new file mode 100755 index 0000000000..6fd14d13f1 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/iteration/metafunctions/fold.html @@ -0,0 +1,180 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>fold</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="../metafunctions.html" title="Metafunctions"> +<link rel="next" href="reverse_fold.html" title="reverse_fold"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="../metafunctions.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="reverse_fold.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.iteration.metafunctions.fold"></a><a class="link" href="fold.html" title="fold">fold</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.iteration.metafunctions.fold.h0"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.fold.description"></a></span><a class="link" href="fold.html#fusion.algorithm.iteration.metafunctions.fold.description">Description</a> + </h6> +<p> + Returns the result type of <a class="link" href="../functions/fold.html" title="fold"><code class="computeroutput"><span class="identifier">fold</span></code></a>. + </p> +<h6> +<a name="fusion.algorithm.iteration.metafunctions.fold.h1"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.fold.synopsis"></a></span><a class="link" href="fold.html#fusion.algorithm.iteration.metafunctions.fold.synopsis">Synopsis</a> + </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> <span class="identifier">State</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">F</span><span class="special">></span> +<span class="keyword">struct</span> fold +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.iteration.metafunctions.fold.t0"></a><p class="title"><b>Table 1.44. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + The sequence to iterate + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">State</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + The initial state for the first application of <code class="computeroutput"><span class="identifier">F</span></code> + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">F</span></code> + </p> + </td> +<td> + <p> + <code class="computeroutput"><a href="http://www.boost.org/libs/utility/utility.htm#result_of" target="_top"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">result_of</span></code></a><span class="special"><</span><span class="identifier">F</span><span class="special">(</span><span class="identifier">S</span><span class="special">,</span>E<span class="special">)>::</span><span class="identifier">type</span></code> is the return type of + <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span>e<span class="special">)</span></code> with current state <code class="computeroutput"><span class="identifier">s</span></code> of type <code class="computeroutput"><span class="identifier">S</span></code>, + and an element <code class="computeroutput"><span class="identifier">e</span></code> + of type <code class="computeroutput"><span class="identifier">E</span></code> in + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + The operation to be applied on traversal + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.iteration.metafunctions.fold.h2"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.fold.expression_semantics"></a></span><a class="link" href="fold.html#fusion.algorithm.iteration.metafunctions.fold.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting">fold<span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">State</span><span class="special">,</span> <span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: Any type + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns the result of applying + <a class="link" href="../functions/fold.html" title="fold"><code class="computeroutput"><span class="identifier">fold</span></code></a> to a sequence of type + <code class="computeroutput"><span class="identifier">Sequence</span></code>, with an initial + state of type <code class="computeroutput"><span class="identifier">State</span></code> and + binary function object or function pointer of type <code class="computeroutput"><span class="identifier">F</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.metafunctions.fold.h3"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.fold.complexity"></a></span><a class="link" href="fold.html#fusion.algorithm.iteration.metafunctions.fold.complexity">Complexity</a> + </h6> +<p> + Linear, exactly <code class="computeroutput"><a class="link" href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">value</span></code> applications of <code class="computeroutput"><span class="identifier">F</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.metafunctions.fold.h4"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.fold.header"></a></span><a class="link" href="fold.html#fusion.algorithm.iteration.metafunctions.fold.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">iteration</span><span class="special">/</span>fold<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>fold<span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="../metafunctions.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="reverse_fold.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/iteration/metafunctions/for_each.html b/libs/fusion/doc/html/fusion/algorithm/iteration/metafunctions/for_each.html new file mode 100755 index 0000000000..aa05a3e1fa --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/iteration/metafunctions/for_each.html @@ -0,0 +1,160 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>for_each</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="accumulate.html" title="accumulate"> +<link rel="next" href="../../query.html" title="Query"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="accumulate.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../../query.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.iteration.metafunctions.for_each"></a><a class="link" href="for_each.html" title="for_each">for_each</a> +</h5></div></div></div> +<p> + A metafunction returning the result type of applying <a class="link" href="../functions/for_each.html" title="for_each"><code class="computeroutput"><span class="identifier">for_each</span></code></a> to a sequence. The + return type of <a class="link" href="../functions/for_each.html" title="for_each"><code class="computeroutput"><span class="identifier">for_each</span></code></a> is always <code class="computeroutput"><span class="keyword">void</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.metafunctions.for_each.h0"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.for_each.description"></a></span><a class="link" href="for_each.html#fusion.algorithm.iteration.metafunctions.for_each.description">Description</a> + </h6> +<h6> +<a name="fusion.algorithm.iteration.metafunctions.for_each.h1"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.for_each.synopsis"></a></span><a class="link" href="for_each.html#fusion.algorithm.iteration.metafunctions.for_each.synopsis">Synopsis</a> + </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> <span class="identifier">F</span> +<span class="special">></span> +<span class="keyword">struct</span> <span class="identifier">for_each</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="keyword">void</span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.iteration.metafunctions.for_each.t0"></a><p class="title"><b>Table 1.49. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">F</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.iteration.metafunctions.for_each.h2"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.for_each.expression_semantics"></a></span><a class="link" href="for_each.html#fusion.algorithm.iteration.metafunctions.for_each.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="for_each.html" title="for_each"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">for_each</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">void</span></code>. + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns the return type of + <a class="link" href="../functions/for_each.html" title="for_each"><code class="computeroutput"><span class="identifier">for_each</span></code></a> for a sequence of type + <code class="computeroutput"><span class="identifier">Sequence</span></code> and a unary + function object <code class="computeroutput"><span class="identifier">F</span></code>. The + return type is always <code class="computeroutput"><span class="keyword">void</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.metafunctions.for_each.h3"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.for_each.complexity"></a></span><a class="link" href="for_each.html#fusion.algorithm.iteration.metafunctions.for_each.complexity">Complexity</a> + </h6> +<p> + Constant. + </p> +<h6> +<a name="fusion.algorithm.iteration.metafunctions.for_each.h4"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.for_each.header"></a></span><a class="link" href="for_each.html#fusion.algorithm.iteration.metafunctions.for_each.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">iteration</span><span class="special">/</span><span class="identifier">for_each</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">for_each</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="accumulate.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../../query.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/iteration/metafunctions/iter_fold.html b/libs/fusion/doc/html/fusion/algorithm/iteration/metafunctions/iter_fold.html new file mode 100755 index 0000000000..e02339c8c7 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/iteration/metafunctions/iter_fold.html @@ -0,0 +1,180 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>iter_fold</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="reverse_fold.html" title="reverse_fold"> +<link rel="next" href="reverse_iter_fold.html" title="reverse_iter_fold"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="reverse_fold.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="reverse_iter_fold.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.iteration.metafunctions.iter_fold"></a><a class="link" href="iter_fold.html" title="iter_fold">iter_fold</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.iteration.metafunctions.iter_fold.h0"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.iter_fold.description"></a></span><a class="link" href="iter_fold.html#fusion.algorithm.iteration.metafunctions.iter_fold.description">Description</a> + </h6> +<p> + Returns the result type of <a class="link" href="../functions/iter_fold.html" title="iter_fold"><code class="computeroutput"><span class="identifier">iter_fold</span></code></a>. + </p> +<h6> +<a name="fusion.algorithm.iteration.metafunctions.iter_fold.h1"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.iter_fold.synopsis"></a></span><a class="link" href="iter_fold.html#fusion.algorithm.iteration.metafunctions.iter_fold.synopsis">Synopsis</a> + </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> <span class="identifier">State</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">F</span><span class="special">></span> +<span class="keyword">struct</span> iter_fold +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.iteration.metafunctions.iter_fold.t0"></a><p class="title"><b>Table 1.46. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + The sequence to iterate + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">State</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + The initial state for the first application of <code class="computeroutput"><span class="identifier">F</span></code> + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">F</span></code> + </p> + </td> +<td> + <p> + <code class="computeroutput"><a href="http://www.boost.org/libs/utility/utility.htm#result_of" target="_top"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">result_of</span></code></a><span class="special"><</span><span class="identifier">F</span><span class="special">(</span><span class="identifier">S</span><span class="special">,</span>It<span class="special">)>::</span><span class="identifier">type</span></code> is the return type of + <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span>it<span class="special">)</span></code> with current state <code class="computeroutput"><span class="identifier">s</span></code> of type <code class="computeroutput"><span class="identifier">S</span></code>, + and an iterator <code class="computeroutput"><span class="identifier">it</span></code> + of type <code class="computeroutput"><span class="identifier">It</span></code> + on an element of <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + The operation to be applied on traversal + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.iteration.metafunctions.iter_fold.h2"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.iter_fold.expression_semantics"></a></span><a class="link" href="iter_fold.html#fusion.algorithm.iteration.metafunctions.iter_fold.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting">iter_fold<span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">State</span><span class="special">,</span> <span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: Any type + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns the result of applying + <a class="link" href="../functions/iter_fold.html" title="iter_fold"><code class="computeroutput"><span class="identifier">iter_fold</span></code></a> to a sequence of type + <code class="computeroutput"><span class="identifier">Sequence</span></code>, with an initial + state of type <code class="computeroutput"><span class="identifier">State</span></code> and + binary function object or function pointer of type <code class="computeroutput"><span class="identifier">F</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.metafunctions.iter_fold.h3"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.iter_fold.complexity"></a></span><a class="link" href="iter_fold.html#fusion.algorithm.iteration.metafunctions.iter_fold.complexity">Complexity</a> + </h6> +<p> + Linear, exactly <code class="computeroutput"><a class="link" href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">value</span></code> applications of <code class="computeroutput"><span class="identifier">F</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.metafunctions.iter_fold.h4"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.iter_fold.header"></a></span><a class="link" href="iter_fold.html#fusion.algorithm.iteration.metafunctions.iter_fold.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">iteration</span><span class="special">/</span>iter_fold<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>iter_fold<span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="reverse_fold.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="reverse_iter_fold.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/iteration/metafunctions/reverse_fold.html b/libs/fusion/doc/html/fusion/algorithm/iteration/metafunctions/reverse_fold.html new file mode 100755 index 0000000000..b6f15f44f3 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/iteration/metafunctions/reverse_fold.html @@ -0,0 +1,180 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>reverse_fold</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="fold.html" title="fold"> +<link rel="next" href="iter_fold.html" title="iter_fold"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="fold.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="iter_fold.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.iteration.metafunctions.reverse_fold"></a><a class="link" href="reverse_fold.html" title="reverse_fold">reverse_fold</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.iteration.metafunctions.reverse_fold.h0"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.reverse_fold.description"></a></span><a class="link" href="reverse_fold.html#fusion.algorithm.iteration.metafunctions.reverse_fold.description">Description</a> + </h6> +<p> + Returns the result type of <a class="link" href="../functions/reverse_fold.html" title="reverse_fold"><code class="computeroutput"><span class="identifier">reverse_fold</span></code></a>. + </p> +<h6> +<a name="fusion.algorithm.iteration.metafunctions.reverse_fold.h1"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.reverse_fold.synopsis"></a></span><a class="link" href="reverse_fold.html#fusion.algorithm.iteration.metafunctions.reverse_fold.synopsis">Synopsis</a> + </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> <span class="identifier">State</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">F</span><span class="special">></span> +<span class="keyword">struct</span> reverse_fold +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.iteration.metafunctions.reverse_fold.t0"></a><p class="title"><b>Table 1.45. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/bidirectional_sequence.html" title="Bidirectional Sequence">Bidirectional + Sequence</a> + </p> + </td> +<td> + <p> + The sequence to iterate + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">State</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + The initial state for the first application of <code class="computeroutput"><span class="identifier">F</span></code> + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">F</span></code> + </p> + </td> +<td> + <p> + <code class="computeroutput"><a href="http://www.boost.org/libs/utility/utility.htm#result_of" target="_top"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">result_of</span></code></a><span class="special"><</span><span class="identifier">F</span><span class="special">(</span><span class="identifier">S</span><span class="special">,</span>E<span class="special">)>::</span><span class="identifier">type</span></code> is the return type of + <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span>e<span class="special">)</span></code> with current state <code class="computeroutput"><span class="identifier">s</span></code> of type <code class="computeroutput"><span class="identifier">S</span></code>, + and an element <code class="computeroutput"><span class="identifier">e</span></code> + of type <code class="computeroutput"><span class="identifier">E</span></code> in + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + The operation to be applied on traversal + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.iteration.metafunctions.reverse_fold.h2"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.reverse_fold.expression_semantics"></a></span><a class="link" href="reverse_fold.html#fusion.algorithm.iteration.metafunctions.reverse_fold.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting">reverse_fold<span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">State</span><span class="special">,</span> <span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: Any type + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns the result of applying + <a class="link" href="../functions/reverse_fold.html" title="reverse_fold"><code class="computeroutput"><span class="identifier">reverse_fold</span></code></a> to a sequence of + type <code class="computeroutput"><span class="identifier">Sequence</span></code>, with an + initial state of type <code class="computeroutput"><span class="identifier">State</span></code> + and binary function object or function pointer of type <code class="computeroutput"><span class="identifier">F</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.metafunctions.reverse_fold.h3"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.reverse_fold.complexity"></a></span><a class="link" href="reverse_fold.html#fusion.algorithm.iteration.metafunctions.reverse_fold.complexity">Complexity</a> + </h6> +<p> + Linear, exactly <code class="computeroutput"><a class="link" href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">value</span></code> applications of <code class="computeroutput"><span class="identifier">F</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.metafunctions.reverse_fold.h4"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.reverse_fold.header"></a></span><a class="link" href="reverse_fold.html#fusion.algorithm.iteration.metafunctions.reverse_fold.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">iteration</span><span class="special">/</span>reverse_fold<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>reverse_fold<span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="fold.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="iter_fold.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/iteration/metafunctions/reverse_iter_fold.html b/libs/fusion/doc/html/fusion/algorithm/iteration/metafunctions/reverse_iter_fold.html new file mode 100755 index 0000000000..6c1683e1b1 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/iteration/metafunctions/reverse_iter_fold.html @@ -0,0 +1,180 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>reverse_iter_fold</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="iter_fold.html" title="iter_fold"> +<link rel="next" href="accumulate.html" title="accumulate"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="iter_fold.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="accumulate.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.iteration.metafunctions.reverse_iter_fold"></a><a class="link" href="reverse_iter_fold.html" title="reverse_iter_fold">reverse_iter_fold</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.iteration.metafunctions.reverse_iter_fold.h0"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.reverse_iter_fold.description"></a></span><a class="link" href="reverse_iter_fold.html#fusion.algorithm.iteration.metafunctions.reverse_iter_fold.description">Description</a> + </h6> +<p> + Returns the result type of <a class="link" href="../functions/reverse_iter_fold.html" title="reverse_iter_fold"><code class="computeroutput"><span class="identifier">reverse_iter_fold</span></code></a>. + </p> +<h6> +<a name="fusion.algorithm.iteration.metafunctions.reverse_iter_fold.h1"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.reverse_iter_fold.synopsis"></a></span><a class="link" href="reverse_iter_fold.html#fusion.algorithm.iteration.metafunctions.reverse_iter_fold.synopsis">Synopsis</a> + </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> <span class="identifier">State</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">F</span><span class="special">></span> +<span class="keyword">struct</span> reverse_iter_fold +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.iteration.metafunctions.reverse_iter_fold.t0"></a><p class="title"><b>Table 1.47. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/bidirectional_sequence.html" title="Bidirectional Sequence">Bidirectional + Sequence</a> + </p> + </td> +<td> + <p> + The sequence to iterate + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">State</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + The initial state for the first application of <code class="computeroutput"><span class="identifier">F</span></code> + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">F</span></code> + </p> + </td> +<td> + <p> + <code class="computeroutput"><a href="http://www.boost.org/libs/utility/utility.htm#result_of" target="_top"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">result_of</span></code></a><span class="special"><</span><span class="identifier">F</span><span class="special">(</span><span class="identifier">S</span><span class="special">,</span>It<span class="special">)>::</span><span class="identifier">type</span></code> is the return type of + <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span>it<span class="special">)</span></code> with current state <code class="computeroutput"><span class="identifier">s</span></code> of type <code class="computeroutput"><span class="identifier">S</span></code>, + and an iterator <code class="computeroutput"><span class="identifier">it</span></code> + of type <code class="computeroutput"><span class="identifier">It</span></code> + on an element of <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + The operation to be applied on traversal + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.iteration.metafunctions.reverse_iter_fold.h2"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.reverse_iter_fold.expression_semantics"></a></span><a class="link" href="reverse_iter_fold.html#fusion.algorithm.iteration.metafunctions.reverse_iter_fold.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting">reverse_iter_fold<span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">State</span><span class="special">,</span> <span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: Any type + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns the result of applying + <a class="link" href="../functions/reverse_iter_fold.html" title="reverse_iter_fold"><code class="computeroutput"><span class="identifier">reverse_iter_fold</span></code></a> to a sequence + of type <code class="computeroutput"><span class="identifier">Sequence</span></code>, with + an initial state of type <code class="computeroutput"><span class="identifier">State</span></code> + and binary function object or function pointer of type <code class="computeroutput"><span class="identifier">F</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.metafunctions.reverse_iter_fold.h3"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.reverse_iter_fold.complexity"></a></span><a class="link" href="reverse_iter_fold.html#fusion.algorithm.iteration.metafunctions.reverse_iter_fold.complexity">Complexity</a> + </h6> +<p> + Linear, exactly <code class="computeroutput"><a class="link" href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">value</span></code> applications of <code class="computeroutput"><span class="identifier">F</span></code>. + </p> +<h6> +<a name="fusion.algorithm.iteration.metafunctions.reverse_iter_fold.h4"></a> + <span><a name="fusion.algorithm.iteration.metafunctions.reverse_iter_fold.header"></a></span><a class="link" href="reverse_iter_fold.html#fusion.algorithm.iteration.metafunctions.reverse_iter_fold.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">iteration</span><span class="special">/</span>reverse_iter_fold<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>reverse_iter_fold<span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="iter_fold.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="accumulate.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/query.html b/libs/fusion/doc/html/fusion/algorithm/query.html new file mode 100755 index 0000000000..d250ecdd1f --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/query.html @@ -0,0 +1,58 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>Query</title> +<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../algorithm.html" title="Algorithm"> +<link rel="prev" href="iteration/metafunctions/for_each.html" title="for_each"> +<link rel="next" href="query/functions.html" title="Functions"> +</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> +<td align="center"><a href="../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td> +<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="iteration/metafunctions/for_each.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../algorithm.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="query/functions.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h3 class="title"> +<a name="fusion.algorithm.query"></a><a class="link" href="query.html" title="Query">Query</a> +</h3></div></div></div> +<div class="toc"><dl> +<dt><span class="section"><a href="query/functions.html">Functions</a></span></dt> +<dt><span class="section"><a href="query/metafunctions.html">Metafunctions</a></span></dt> +</dl></div> +<p> + The query algorithms provide support for searching and analyzing sequences. + </p> +<h5> +<a name="fusion.algorithm.query.h0"></a> + <span><a name="fusion.algorithm.query.header"></a></span><a class="link" href="query.html#fusion.algorithm.query.header">Header</a> + </h5> +<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">algorithm</span><span class="special">/</span><span class="identifier">query</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">query</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="iteration/metafunctions/for_each.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../algorithm.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="query/functions.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/query/functions.html b/libs/fusion/doc/html/fusion/algorithm/query/functions.html new file mode 100755 index 0000000000..4cef0903b8 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/query/functions.html @@ -0,0 +1,53 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>Functions</title> +<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../query.html" title="Query"> +<link rel="prev" href="../query.html" title="Query"> +<link rel="next" href="functions/any.html" title="any"> +</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> +<td align="center"><a href="../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="../query.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../query.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="functions/any.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h4 class="title"> +<a name="fusion.algorithm.query.functions"></a><a class="link" href="functions.html" title="Functions">Functions</a> +</h4></div></div></div> +<div class="toc"><dl> +<dt><span class="section"><a href="functions/any.html">any</a></span></dt> +<dt><span class="section"><a href="functions/all.html">all</a></span></dt> +<dt><span class="section"><a href="functions/none.html">none</a></span></dt> +<dt><span class="section"><a href="functions/find.html">find</a></span></dt> +<dt><span class="section"><a href="functions/find_if.html">find_if</a></span></dt> +<dt><span class="section"><a href="functions/count.html">count</a></span></dt> +<dt><span class="section"><a href="functions/count_if.html">count_if</a></span></dt> +</dl></div> +</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-2006, 2011 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="../query.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../query.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="functions/any.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/query/functions/all.html b/libs/fusion/doc/html/fusion/algorithm/query/functions/all.html new file mode 100755 index 0000000000..76d6b9b0ff --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/query/functions/all.html @@ -0,0 +1,179 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>all</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="any.html" title="any"> +<link rel="next" href="none.html" title="none"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="any.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="none.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.query.functions.all"></a><a class="link" href="all.html" title="all">all</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.query.functions.all.h0"></a> + <span><a name="fusion.algorithm.query.functions.all.description"></a></span><a class="link" href="all.html#fusion.algorithm.query.functions.all.description">Description</a> + </h6> +<p> + For a sequence <code class="computeroutput"><span class="identifier">seq</span></code> and + unary function object <code class="computeroutput"><span class="identifier">f</span></code>, + <code class="computeroutput"><span class="identifier">all</span></code> returns true if + <code class="computeroutput"><span class="identifier">f</span></code> returns true for every + element of <code class="computeroutput"><span class="identifier">seq</span></code>. + </p> +<h6> +<a name="fusion.algorithm.query.functions.all.h1"></a> + <span><a name="fusion.algorithm.query.functions.all.synopsis"></a></span><a class="link" href="all.html#fusion.algorithm.query.functions.all.synopsis">Synopsis</a> + </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> <span class="identifier">F</span> + <span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="../metafunctions/all.html" title="all"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">all</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span><span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">all</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> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.query.functions.all.t0"></a><p class="title"><b>Table 1.51. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>, <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> is a valid expression, convertible + to <code class="computeroutput"><span class="keyword">bool</span></code>, for every + element <code class="computeroutput"><span class="identifier">e</span></code> in + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + The sequence to search + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">f</span></code> + </p> + </td> +<td> + <p> + A unary function object + </p> + </td> +<td> + <p> + The search predicate + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.query.functions.all.h2"></a> + <span><a name="fusion.algorithm.query.functions.all.expression_semantics"></a></span><a class="link" href="all.html#fusion.algorithm.query.functions.all.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="all.html" title="all"><code class="computeroutput"><span class="identifier">all</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code> + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns true if and only + if <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> + evaluates to <code class="computeroutput"><span class="keyword">true</span></code> for every + element <code class="computeroutput"><span class="identifier">e</span></code> in <code class="computeroutput"><span class="identifier">seq</span></code>. + </p> +<h6> +<a name="fusion.algorithm.query.functions.all.h3"></a> + <span><a name="fusion.algorithm.query.functions.all.complexity"></a></span><a class="link" href="all.html#fusion.algorithm.query.functions.all.complexity">Complexity</a> + </h6> +<p> + Linear. At most <code class="computeroutput"><a class="link" href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">value</span></code> comparisons. + </p> +<h6> +<a name="fusion.algorithm.query.functions.all.h4"></a> + <span><a name="fusion.algorithm.query.functions.all.header"></a></span><a class="link" href="all.html#fusion.algorithm.query.functions.all.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">query</span><span class="special">/</span><span class="identifier">all</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">all</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.query.functions.all.h5"></a> + <span><a name="fusion.algorithm.query.functions.all.example"></a></span><a class="link" href="all.html#fusion.algorithm.query.functions.all.example">Example</a> + </h6> +<pre class="programlisting"><span class="keyword">struct</span> <span class="identifier">odd</span> +<span class="special">{</span> + <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">T</span><span class="special">></span> + <span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">()(</span><span class="identifier">T</span> <span class="identifier">t</span><span class="special">)</span> <span class="keyword">const</span> + <span class="special">{</span> + <span class="keyword">return</span> <span class="identifier">t</span> <span class="special">%</span> <span class="number">2</span><span class="special">;</span> + <span class="special">}</span> +<span class="special">};</span> +<span class="special">...</span> +<span class="identifier">assert</span><span class="special">(</span><a class="link" href="all.html" title="all"><code class="computeroutput"><span class="identifier">all</span></code></a><span class="special">(</span><a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">3</span><span class="special">),</span> <span class="identifier">odd</span><span class="special">()));</span> +<span class="identifier">assert</span><span class="special">(!</span><a class="link" href="all.html" title="all"><code class="computeroutput"><span class="identifier">all</span></code></a><span class="special">(</span><a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">),</span> <span class="identifier">odd</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 © 2001-2006, 2011 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="any.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="none.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/query/functions/any.html b/libs/fusion/doc/html/fusion/algorithm/query/functions/any.html new file mode 100755 index 0000000000..dd14ece935 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/query/functions/any.html @@ -0,0 +1,179 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>any</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="../functions.html" title="Functions"> +<link rel="next" href="all.html" title="all"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="../functions.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="all.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.query.functions.any"></a><a class="link" href="any.html" title="any">any</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.query.functions.any.h0"></a> + <span><a name="fusion.algorithm.query.functions.any.description"></a></span><a class="link" href="any.html#fusion.algorithm.query.functions.any.description">Description</a> + </h6> +<p> + For a sequence <code class="computeroutput"><span class="identifier">seq</span></code> and + unary function object <code class="computeroutput"><span class="identifier">f</span></code>, + <code class="computeroutput"><span class="identifier">any</span></code> returns true if + <code class="computeroutput"><span class="identifier">f</span></code> returns true for at + least one element of <code class="computeroutput"><span class="identifier">seq</span></code>. + </p> +<h6> +<a name="fusion.algorithm.query.functions.any.h1"></a> + <span><a name="fusion.algorithm.query.functions.any.synopsis"></a></span><a class="link" href="any.html#fusion.algorithm.query.functions.any.synopsis">Synopsis</a> + </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> <span class="identifier">F</span> + <span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="../metafunctions/any.html" title="any"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">any</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span><span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">any</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> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.query.functions.any.t0"></a><p class="title"><b>Table 1.50. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>, <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> must be a valid expression, + convertible to <code class="computeroutput"><span class="keyword">bool</span></code>, + for each element <code class="computeroutput"><span class="identifier">e</span></code> + in <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + The sequence to search + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">f</span></code> + </p> + </td> +<td> + <p> + A unary function object + </p> + </td> +<td> + <p> + The search predicate + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.query.functions.any.h2"></a> + <span><a name="fusion.algorithm.query.functions.any.expression_semantics"></a></span><a class="link" href="any.html#fusion.algorithm.query.functions.any.expression_semantics">Expression + semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="any.html" title="any"><code class="computeroutput"><span class="identifier">any</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code> + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns true if and only + if <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> + evaluates to <code class="computeroutput"><span class="keyword">true</span></code> for some + element <code class="computeroutput"><span class="identifier">e</span></code> in <code class="computeroutput"><span class="identifier">seq</span></code>. + </p> +<h6> +<a name="fusion.algorithm.query.functions.any.h3"></a> + <span><a name="fusion.algorithm.query.functions.any.complexity"></a></span><a class="link" href="any.html#fusion.algorithm.query.functions.any.complexity">Complexity</a> + </h6> +<p> + Linear. At most <code class="computeroutput"><a class="link" href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">value</span></code> comparisons. + </p> +<h6> +<a name="fusion.algorithm.query.functions.any.h4"></a> + <span><a name="fusion.algorithm.query.functions.any.header"></a></span><a class="link" href="any.html#fusion.algorithm.query.functions.any.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">query</span><span class="special">/</span><span class="identifier">any</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">any</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.query.functions.any.h5"></a> + <span><a name="fusion.algorithm.query.functions.any.example"></a></span><a class="link" href="any.html#fusion.algorithm.query.functions.any.example">Example</a> + </h6> +<pre class="programlisting"><span class="keyword">struct</span> <span class="identifier">odd</span> +<span class="special">{</span> + <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">T</span><span class="special">></span> + <span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">()(</span><span class="identifier">T</span> <span class="identifier">t</span><span class="special">)</span> <span class="keyword">const</span> + <span class="special">{</span> + <span class="keyword">return</span> <span class="identifier">t</span> <span class="special">%</span> <span class="number">2</span><span class="special">;</span> + <span class="special">}</span> +<span class="special">};</span> +<span class="special">...</span> +<span class="identifier">assert</span><span class="special">(</span><a class="link" href="any.html" title="any"><code class="computeroutput"><span class="identifier">any</span></code></a><span class="special">(</span><a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">),</span> <span class="identifier">odd</span><span class="special">()));</span> +<span class="identifier">assert</span><span class="special">(!</span><a class="link" href="any.html" title="any"><code class="computeroutput"><span class="identifier">any</span></code></a><span class="special">(</span><a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">2</span><span class="special">,</span><span class="number">4</span><span class="special">),</span> <span class="identifier">odd</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 © 2001-2006, 2011 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="../functions.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="all.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/query/functions/count.html b/libs/fusion/doc/html/fusion/algorithm/query/functions/count.html new file mode 100755 index 0000000000..25b36efa4a --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/query/functions/count.html @@ -0,0 +1,166 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>count</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="find_if.html" title="find_if"> +<link rel="next" href="count_if.html" title="count_if"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="find_if.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="count_if.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.query.functions.count"></a><a class="link" href="count.html" title="count">count</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.query.functions.count.h0"></a> + <span><a name="fusion.algorithm.query.functions.count.description"></a></span><a class="link" href="count.html#fusion.algorithm.query.functions.count.description">Description</a> + </h6> +<p> + Returns the number of elements of a given type within a sequence. + </p> +<h6> +<a name="fusion.algorithm.query.functions.count.h1"></a> + <span><a name="fusion.algorithm.query.functions.count.synopsis"></a></span><a class="link" href="count.html#fusion.algorithm.query.functions.count.synopsis">Synopsis</a> + </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> <span class="identifier">T</span> + <span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="../metafunctions/count.html" title="count"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">count</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">count</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> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">t</span><span class="special">);</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.query.functions.count.t0"></a><p class="title"><b>Table 1.55. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>, <code class="computeroutput"><span class="identifier">e</span> + <span class="special">==</span> <span class="identifier">t</span></code> + must be a valid expression, convertible to <code class="computeroutput"><span class="keyword">bool</span></code>, + for each element <code class="computeroutput"><span class="identifier">e</span></code> + in <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + The sequence to search + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">T</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + The type to count + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.query.functions.count.h2"></a> + <span><a name="fusion.algorithm.query.functions.count.expression_semantics"></a></span><a class="link" href="count.html#fusion.algorithm.query.functions.count.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="count.html" title="count"><code class="computeroutput"><span class="identifier">count</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">t</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">int</span></code> + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns the number of elements + of type <code class="computeroutput"><span class="identifier">T</span></code> and equal to + <code class="computeroutput"><span class="identifier">t</span></code> in <code class="computeroutput"><span class="identifier">seq</span></code>. + </p> +<h6> +<a name="fusion.algorithm.query.functions.count.h3"></a> + <span><a name="fusion.algorithm.query.functions.count.complexity"></a></span><a class="link" href="count.html#fusion.algorithm.query.functions.count.complexity">Complexity</a> + </h6> +<p> + Linear. At most <code class="computeroutput"><a class="link" href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">value</span></code> comparisons. + </p> +<h6> +<a name="fusion.algorithm.query.functions.count.h4"></a> + <span><a name="fusion.algorithm.query.functions.count.header"></a></span><a class="link" href="count.html#fusion.algorithm.query.functions.count.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">query</span><span class="special">/</span><span class="identifier">count</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">count</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.query.functions.count.h5"></a> + <span><a name="fusion.algorithm.query.functions.count.example"></a></span><a class="link" href="count.html#fusion.algorithm.query.functions.count.example">Example</a> + </h6> +<pre class="programlisting"><span class="keyword">const</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">double</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><span class="number">1.0</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 class="link" href="count.html" title="count"><code class="computeroutput"><span class="identifier">count</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span><span class="number">2</span><span class="special">)</span> <span class="special">==</span> <span class="number">1</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 © 2001-2006, 2011 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="find_if.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="count_if.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/query/functions/count_if.html b/libs/fusion/doc/html/fusion/algorithm/query/functions/count_if.html new file mode 100755 index 0000000000..f4fef72598 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/query/functions/count_if.html @@ -0,0 +1,165 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>count_if</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="count.html" title="count"> +<link rel="next" href="../metafunctions.html" title="Metafunctions"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="count.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.query.functions.count_if"></a><a class="link" href="count_if.html" title="count_if">count_if</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.query.functions.count_if.h0"></a> + <span><a name="fusion.algorithm.query.functions.count_if.description"></a></span><a class="link" href="count_if.html#fusion.algorithm.query.functions.count_if.description">Description</a> + </h6> +<p> + Returns the number of elements within a sequence with a type for which + a given unary function object evaluates to <code class="computeroutput"><span class="keyword">true</span></code>. + </p> +<h6> +<a name="fusion.algorithm.query.functions.count_if.h1"></a> + <span><a name="fusion.algorithm.query.functions.count_if.synopsis"></a></span><a class="link" href="count_if.html#fusion.algorithm.query.functions.count_if.synopsis">Synopsis</a> + </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> <span class="identifier">F</span> + <span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="../metafunctions/count_if.html" title="count_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">count_if</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">count_if</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> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.query.functions.count_if.t0"></a><p class="title"><b>Table 1.56. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>, <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> is a valid expression, convertible + to <code class="computeroutput"><span class="keyword">bool</span></code>, for each + element <code class="computeroutput"><span class="identifier">e</span></code> in + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + The sequence to search + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">f</span></code> + </p> + </td> +<td> + <p> + A unary function object + </p> + </td> +<td> + <p> + The search predicate + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.query.functions.count_if.h2"></a> + <span><a name="fusion.algorithm.query.functions.count_if.expression_semantics"></a></span><a class="link" href="count_if.html#fusion.algorithm.query.functions.count_if.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="count_if.html" title="count_if"><code class="computeroutput"><span class="identifier">count_if</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">)</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">int</span></code> + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns the number of elements + in <code class="computeroutput"><span class="identifier">seq</span></code> where <code class="computeroutput"><span class="identifier">f</span></code> evaluates to <code class="computeroutput"><span class="keyword">true</span></code>. + </p> +<h6> +<a name="fusion.algorithm.query.functions.count_if.h3"></a> + <span><a name="fusion.algorithm.query.functions.count_if.complexity"></a></span><a class="link" href="count_if.html#fusion.algorithm.query.functions.count_if.complexity">Complexity</a> + </h6> +<p> + Linear. At most <code class="computeroutput"><a class="link" href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">value</span></code> comparisons. + </p> +<h6> +<a name="fusion.algorithm.query.functions.count_if.h4"></a> + <span><a name="fusion.algorithm.query.functions.count_if.header"></a></span><a class="link" href="count_if.html#fusion.algorithm.query.functions.count_if.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">query</span><span class="special">/</span><span class="identifier">count_if</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">count_if</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.query.functions.count_if.h5"></a> + <span><a name="fusion.algorithm.query.functions.count_if.example"></a></span><a class="link" href="count_if.html#fusion.algorithm.query.functions.count_if.example">Example</a> + </h6> +<pre class="programlisting"><span class="keyword">const</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><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 class="link" href="count_if.html" title="count_if"><code class="computeroutput"><span class="identifier">count_if</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span><span class="identifier">odd</span><span class="special">())</span> <span class="special">==</span> <span class="number">2</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 © 2001-2006, 2011 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="count.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/query/functions/find.html b/libs/fusion/doc/html/fusion/algorithm/query/functions/find.html new file mode 100755 index 0000000000..c07efd090e --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/query/functions/find.html @@ -0,0 +1,170 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>find</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="none.html" title="none"> +<link rel="next" href="find_if.html" title="find_if"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="none.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="find_if.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.query.functions.find"></a><a class="link" href="find.html" title="find">find</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.query.functions.find.h0"></a> + <span><a name="fusion.algorithm.query.functions.find.description"></a></span><a class="link" href="find.html#fusion.algorithm.query.functions.find.description">Description</a> + </h6> +<p> + Finds the first element of a given type within a sequence. + </p> +<h6> +<a name="fusion.algorithm.query.functions.find.h1"></a> + <span><a name="fusion.algorithm.query.functions.find.synopsis"></a></span><a class="link" href="find.html#fusion.algorithm.query.functions.find.synopsis">Synopsis</a> + </h6> +<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span> + <span class="keyword">typename</span> <span class="identifier">T</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">Sequence</span> + <span class="special">></span> +<span class="emphasis"><em>unspecified</em></span> <span class="identifier">find</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> + +<span class="keyword">template</span><span class="special"><</span> + <span class="keyword">typename</span> <span class="identifier">T</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">Sequence</span> + <span class="special">></span> +<span class="emphasis"><em>unspecified</em></span> <span class="identifier">find</span><span class="special">(</span><span class="identifier">Sequence</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.query.functions.find.t0"></a><p class="title"><b>Table 1.53. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + The sequence to search + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">T</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + The type to search for + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.query.functions.find.h2"></a> + <span><a name="fusion.algorithm.query.functions.find.expression_semantics"></a></span><a class="link" href="find.html#fusion.algorithm.query.functions.find.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="find.html" title="find"><code class="computeroutput"><span class="identifier">find</span></code></a><span class="special"><</span><span class="identifier">T</span><span class="special">>(</span><span class="identifier">seq</span><span class="special">)</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: A model of the same iterator + category as the iterators of <code class="computeroutput"><span class="identifier">seq</span></code>. + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns an iterator to the + first element of <code class="computeroutput"><span class="identifier">seq</span></code> + of type <code class="computeroutput"><span class="identifier">T</span></code>, or <code class="computeroutput"><a class="link" href="../../../sequence/intrinsic/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">)</span></code> if there is no such element. Equivalent + to <code class="computeroutput"><a class="link" href="find_if.html" title="find_if"><code class="computeroutput"><span class="identifier">find_if</span></code></a><span class="special"><</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special"><</span><span class="identifier">_</span><span class="special">,</span> <span class="identifier">T</span><span class="special">></span> <span class="special">>(</span><span class="identifier">seq</span><span class="special">)</span></code> + </p> +<h6> +<a name="fusion.algorithm.query.functions.find.h3"></a> + <span><a name="fusion.algorithm.query.functions.find.complexity"></a></span><a class="link" href="find.html#fusion.algorithm.query.functions.find.complexity">Complexity</a> + </h6> +<p> + Linear. At most <code class="computeroutput"><a class="link" href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">value</span></code> comparisons. + </p> +<h6> +<a name="fusion.algorithm.query.functions.find.h4"></a> + <span><a name="fusion.algorithm.query.functions.find.header"></a></span><a class="link" href="find.html#fusion.algorithm.query.functions.find.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">query</span><span class="special">/</span><span class="identifier">find</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">find</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.query.functions.find.h5"></a> + <span><a name="fusion.algorithm.query.functions.find.example"></a></span><a class="link" href="find.html#fusion.algorithm.query.functions.find.example">Example</a> + </h6> +<pre class="programlisting"><span class="keyword">const</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">char</span><span class="special">,</span><span class="keyword">int</span><span class="special">></span> <span class="identifier">vec</span><span class="special">(</span><span class="char">'a'</span><span class="special">,</span><span class="char">'0'</span><span class="special">);</span> +<span class="identifier">assert</span><span class="special">(*</span><a class="link" href="find.html" title="find"><code class="computeroutput"><span class="identifier">find</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">>(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <span class="char">'0'</span><span class="special">);</span> +<span class="identifier">assert</span><span class="special">(</span><a class="link" href="find.html" title="find"><code class="computeroutput"><span class="identifier">find</span></code></a><span class="special"><</span><span class="keyword">double</span><span class="special">>(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a class="link" href="../../../sequence/intrinsic/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">vec</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 © 2001-2006, 2011 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="none.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="find_if.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/query/functions/find_if.html b/libs/fusion/doc/html/fusion/algorithm/query/functions/find_if.html new file mode 100755 index 0000000000..01510df365 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/query/functions/find_if.html @@ -0,0 +1,175 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>find_if</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="find.html" title="find"> +<link rel="next" href="count.html" title="count"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="find.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="count.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.query.functions.find_if"></a><a class="link" href="find_if.html" title="find_if">find_if</a> +</h5></div></div></div> +<p> + Finds the first element within a sequence with a type for which a given + <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL + Lambda Expression</a> evaluates to <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code>. + </p> +<h6> +<a name="fusion.algorithm.query.functions.find_if.h0"></a> + <span><a name="fusion.algorithm.query.functions.find_if.description"></a></span><a class="link" href="find_if.html#fusion.algorithm.query.functions.find_if.description">Description</a> + </h6> +<h6> +<a name="fusion.algorithm.query.functions.find_if.h1"></a> + <span><a name="fusion.algorithm.query.functions.find_if.synopsis"></a></span><a class="link" href="find_if.html#fusion.algorithm.query.functions.find_if.synopsis">Synopsis</a> + </h6> +<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span> + <span class="keyword">typename</span> <span class="identifier">F</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">Sequence</span> + <span class="special">></span> +<span class="emphasis"><em>unspecified</em></span> <span class="identifier">find_if</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> + +<span class="keyword">template</span><span class="special"><</span> + <span class="keyword">typename</span> <span class="identifier">F</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">Sequence</span> + <span class="special">></span> +<span class="emphasis"><em>unspecified</em></span> <span class="identifier">find_if</span><span class="special">(</span><span class="identifier">Sequence</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.query.functions.find_if.t0"></a><p class="title"><b>Table 1.54. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + The sequence to search + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">F</span></code> + </p> + </td> +<td> + <p> + A unary <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL + Lambda Expression</a> + </p> + </td> +<td> + <p> + The search predicate + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.query.functions.find_if.h2"></a> + <span><a name="fusion.algorithm.query.functions.find_if.expression_semantics"></a></span><a class="link" href="find_if.html#fusion.algorithm.query.functions.find_if.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="find_if.html" title="find_if"><code class="computeroutput"><span class="identifier">find_if</span></code></a><span class="special"><</span><span class="identifier">F</span><span class="special">>(</span><span class="identifier">seq</span><span class="special">)</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: An iterator of the same + iterator category as the iterators of <code class="computeroutput"><span class="identifier">seq</span></code>. + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns the first element + of <code class="computeroutput"><span class="identifier">seq</span></code> for which <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL + Lambda Expression</a> <code class="computeroutput"><span class="identifier">F</span></code> + evaluates to <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code>, or <code class="computeroutput"><a class="link" href="../../../sequence/intrinsic/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">)</span></code> + if there is no such element. + </p> +<h6> +<a name="fusion.algorithm.query.functions.find_if.h3"></a> + <span><a name="fusion.algorithm.query.functions.find_if.complexity"></a></span><a class="link" href="find_if.html#fusion.algorithm.query.functions.find_if.complexity">Complexity</a> + </h6> +<p> + Linear. At most <code class="computeroutput"><a class="link" href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">value</span></code> comparisons. + </p> +<div class="orderedlist"><ol class="orderedlist" type="1"> +<li class="listitem"> + include <boost/fusion/algorithm/query/find_if.hpp> + </li> +<li class="listitem"> + include <boost/fusion/include/find_if.hpp> + </li> +</ol></div> +<h6> +<a name="fusion.algorithm.query.functions.find_if.h4"></a> + <span><a name="fusion.algorithm.query.functions.find_if.example"></a></span><a class="link" href="find_if.html#fusion.algorithm.query.functions.find_if.example">Example</a> + </h6> +<pre class="programlisting"><span class="keyword">const</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">double</span><span class="special">,</span><span class="keyword">int</span><span class="special">></span> <span class="identifier">vec</span><span class="special">(</span><span class="number">1.0</span><span class="special">,</span><span class="number">2</span><span class="special">);</span> +<span class="identifier">assert</span><span class="special">(*</span><a class="link" href="find_if.html" title="find_if"><code class="computeroutput"><span class="identifier">find_if</span></code></a><span class="special"><</span><span class="identifier">is_integral</span><span class="special"><</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">></span> <span class="special">>(</span><span class="identifier">vec</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 class="link" href="find_if.html" title="find_if"><code class="computeroutput"><span class="identifier">find_if</span></code></a><span class="special"><</span><span class="identifier">is_class</span><span class="special"><</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">></span> <span class="special">>(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a class="link" href="../../../sequence/intrinsic/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">vec</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 © 2001-2006, 2011 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="find.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="count.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/query/functions/none.html b/libs/fusion/doc/html/fusion/algorithm/query/functions/none.html new file mode 100755 index 0000000000..3198e4db1d --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/query/functions/none.html @@ -0,0 +1,179 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>none</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="all.html" title="all"> +<link rel="next" href="find.html" title="find"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="all.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="find.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.query.functions.none"></a><a class="link" href="none.html" title="none">none</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.query.functions.none.h0"></a> + <span><a name="fusion.algorithm.query.functions.none.description"></a></span><a class="link" href="none.html#fusion.algorithm.query.functions.none.description">Description</a> + </h6> +<p> + For a sequence <code class="computeroutput"><span class="identifier">seq</span></code> and + unary function object <code class="computeroutput"><span class="identifier">f</span></code>, + <code class="computeroutput"><span class="identifier">none</span></code> returns true if + <code class="computeroutput"><span class="identifier">f</span></code> returns false for every + element of <code class="computeroutput"><span class="identifier">seq</span></code>. + </p> +<h6> +<a name="fusion.algorithm.query.functions.none.h1"></a> + <span><a name="fusion.algorithm.query.functions.none.synopsis"></a></span><a class="link" href="none.html#fusion.algorithm.query.functions.none.synopsis">Synopsis</a> + </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> <span class="identifier">F</span> + <span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="../metafunctions/none.html" title="none"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">none</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span><span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">none</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> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.query.functions.none.t0"></a><p class="title"><b>Table 1.52. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>, <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> is a valid expression, convertible + to <code class="computeroutput"><span class="keyword">bool</span></code>, for every + element <code class="computeroutput"><span class="identifier">e</span></code> in + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + The sequence to search + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">f</span></code> + </p> + </td> +<td> + <p> + A unary function object + </p> + </td> +<td> + <p> + The search predicate + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.query.functions.none.h2"></a> + <span><a name="fusion.algorithm.query.functions.none.expression_semantics"></a></span><a class="link" href="none.html#fusion.algorithm.query.functions.none.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="none.html" title="none"><code class="computeroutput"><span class="identifier">none</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code> + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns true if and only + if <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> + evaluates to <code class="computeroutput"><span class="keyword">false</span></code> for every + element <code class="computeroutput"><span class="identifier">e</span></code> in <code class="computeroutput"><span class="identifier">seq</span></code>. Result equivalent to <code class="computeroutput"><span class="special">!</span><span class="identifier">any</span><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">)</span></code>. + </p> +<h6> +<a name="fusion.algorithm.query.functions.none.h3"></a> + <span><a name="fusion.algorithm.query.functions.none.complexity"></a></span><a class="link" href="none.html#fusion.algorithm.query.functions.none.complexity">Complexity</a> + </h6> +<p> + Linear. At most <code class="computeroutput"><a class="link" href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">value</span></code> comparisons. + </p> +<h6> +<a name="fusion.algorithm.query.functions.none.h4"></a> + <span><a name="fusion.algorithm.query.functions.none.header"></a></span><a class="link" href="none.html#fusion.algorithm.query.functions.none.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">query</span><span class="special">/</span><span class="identifier">none</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">none</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.query.functions.none.h5"></a> + <span><a name="fusion.algorithm.query.functions.none.example"></a></span><a class="link" href="none.html#fusion.algorithm.query.functions.none.example">Example</a> + </h6> +<pre class="programlisting"><span class="keyword">struct</span> <span class="identifier">odd</span> +<span class="special">{</span> + <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">T</span><span class="special">></span> + <span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">()(</span><span class="identifier">T</span> <span class="identifier">t</span><span class="special">)</span> <span class="keyword">const</span> + <span class="special">{</span> + <span class="keyword">return</span> <span class="identifier">t</span> <span class="special">%</span> <span class="number">2</span><span class="special">;</span> + <span class="special">}</span> +<span class="special">};</span> +<span class="special">...</span> +<span class="identifier">assert</span><span class="special">(</span><a class="link" href="none.html" title="none"><code class="computeroutput"><span class="identifier">none</span></code></a><span class="special">(</span><a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">2</span><span class="special">,</span><span class="number">4</span><span class="special">),</span> <span class="identifier">odd</span><span class="special">()));</span> +<span class="identifier">assert</span><span class="special">(!</span><a class="link" href="none.html" title="none"><code class="computeroutput"><span class="identifier">none</span></code></a><span class="special">(</span><a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">),</span> <span class="identifier">odd</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 © 2001-2006, 2011 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="all.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="find.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/query/metafunctions.html b/libs/fusion/doc/html/fusion/algorithm/query/metafunctions.html new file mode 100755 index 0000000000..38d887c3d3 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/query/metafunctions.html @@ -0,0 +1,53 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>Metafunctions</title> +<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../query.html" title="Query"> +<link rel="prev" href="functions/count_if.html" title="count_if"> +<link rel="next" href="metafunctions/any.html" title="any"> +</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> +<td align="center"><a href="../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="functions/count_if.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../query.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="metafunctions/any.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h4 class="title"> +<a name="fusion.algorithm.query.metafunctions"></a><a class="link" href="metafunctions.html" title="Metafunctions">Metafunctions</a> +</h4></div></div></div> +<div class="toc"><dl> +<dt><span class="section"><a href="metafunctions/any.html">any</a></span></dt> +<dt><span class="section"><a href="metafunctions/all.html">all</a></span></dt> +<dt><span class="section"><a href="metafunctions/none.html">none</a></span></dt> +<dt><span class="section"><a href="metafunctions/find.html">find</a></span></dt> +<dt><span class="section"><a href="metafunctions/find_if.html">find_if</a></span></dt> +<dt><span class="section"><a href="metafunctions/count.html">count</a></span></dt> +<dt><span class="section"><a href="metafunctions/count_if.html">count_if</a></span></dt> +</dl></div> +</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-2006, 2011 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="functions/count_if.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../query.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="metafunctions/any.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/query/metafunctions/all.html b/libs/fusion/doc/html/fusion/algorithm/query/metafunctions/all.html new file mode 100755 index 0000000000..f60153c80c --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/query/metafunctions/all.html @@ -0,0 +1,161 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>all</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="any.html" title="any"> +<link rel="next" href="none.html" title="none"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="any.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="none.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.query.metafunctions.all"></a><a class="link" href="all.html" title="all">all</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.query.metafunctions.all.h0"></a> + <span><a name="fusion.algorithm.query.metafunctions.all.description"></a></span><a class="link" href="all.html#fusion.algorithm.query.metafunctions.all.description">Description</a> + </h6> +<p> + A metafunction returning the result type of <a class="link" href="../functions/all.html" title="all"><code class="computeroutput"><span class="identifier">all</span></code></a>. + </p> +<h6> +<a name="fusion.algorithm.query.metafunctions.all.h1"></a> + <span><a name="fusion.algorithm.query.metafunctions.all.synopsis"></a></span><a class="link" href="all.html#fusion.algorithm.query.metafunctions.all.synopsis">Synopsis</a> + </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> <span class="identifier">F</span> + <span class="special">></span> +<span class="keyword">struct</span> <span class="identifier">all</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="keyword">bool</span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.query.metafunctions.all.t0"></a><p class="title"><b>Table 1.58. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">F</span></code> + </p> + </td> +<td> + <p> + A model of unary <a class="link" href="../../../functional/concepts/poly.html" title="Polymorphic Function Object">Polymorphic + Function Object</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.query.metafunctions.all.h2"></a> + <span><a name="fusion.algorithm.query.metafunctions.all.expression_semantics"></a></span><a class="link" href="all.html#fusion.algorithm.query.metafunctions.all.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="all.html" title="all"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">all</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code>. + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns the return type of + <a class="link" href="../functions/all.html" title="all"><code class="computeroutput"><span class="identifier">all</span></code></a> + given a sequence of type <code class="computeroutput"><span class="identifier">Sequence</span></code> + and a unary <a class="link" href="../../../functional/concepts/poly.html" title="Polymorphic Function Object">Polymorphic + Function Object</a> of type <code class="computeroutput"><span class="identifier">F</span></code>. + The return type is always <code class="computeroutput"><span class="keyword">bool</span></code>. + </p> +<h6> +<a name="fusion.algorithm.query.metafunctions.all.h3"></a> + <span><a name="fusion.algorithm.query.metafunctions.all.complexity"></a></span><a class="link" href="all.html#fusion.algorithm.query.metafunctions.all.complexity">Complexity</a> + </h6> +<p> + Constant. + </p> +<h6> +<a name="fusion.algorithm.query.metafunctions.all.h4"></a> + <span><a name="fusion.algorithm.query.metafunctions.all.header"></a></span><a class="link" href="all.html#fusion.algorithm.query.metafunctions.all.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">query</span><span class="special">/</span><span class="identifier">all</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">all</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="any.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="none.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/query/metafunctions/any.html b/libs/fusion/doc/html/fusion/algorithm/query/metafunctions/any.html new file mode 100755 index 0000000000..6f2af40837 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/query/metafunctions/any.html @@ -0,0 +1,161 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>any</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="../metafunctions.html" title="Metafunctions"> +<link rel="next" href="all.html" title="all"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="../metafunctions.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="all.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.query.metafunctions.any"></a><a class="link" href="any.html" title="any">any</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.query.metafunctions.any.h0"></a> + <span><a name="fusion.algorithm.query.metafunctions.any.description"></a></span><a class="link" href="any.html#fusion.algorithm.query.metafunctions.any.description">Description</a> + </h6> +<p> + A metafunction returning the result type of <a class="link" href="../functions/any.html" title="any"><code class="computeroutput"><span class="identifier">any</span></code></a>. + </p> +<h6> +<a name="fusion.algorithm.query.metafunctions.any.h1"></a> + <span><a name="fusion.algorithm.query.metafunctions.any.synopsis"></a></span><a class="link" href="any.html#fusion.algorithm.query.metafunctions.any.synopsis">Synopsis</a> + </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> <span class="identifier">F</span> + <span class="special">></span> +<span class="keyword">struct</span> <span class="identifier">any</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="keyword">bool</span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.query.metafunctions.any.t0"></a><p class="title"><b>Table 1.57. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">F</span></code> + </p> + </td> +<td> + <p> + A model of unary <a class="link" href="../../../functional/concepts/poly.html" title="Polymorphic Function Object">Polymorphic + Function Object</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.query.metafunctions.any.h2"></a> + <span><a name="fusion.algorithm.query.metafunctions.any.expression_semantics"></a></span><a class="link" href="any.html#fusion.algorithm.query.metafunctions.any.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="any.html" title="any"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">any</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code>. + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns the return type of + <a class="link" href="../functions/any.html" title="any"><code class="computeroutput"><span class="identifier">any</span></code></a> + given a sequence of type <code class="computeroutput"><span class="identifier">Sequence</span></code> + and a unary <a class="link" href="../../../functional/concepts/poly.html" title="Polymorphic Function Object">Polymorphic + Function Object</a> of type <code class="computeroutput"><span class="identifier">F</span></code>. + The return type is always <code class="computeroutput"><span class="keyword">bool</span></code>. + </p> +<h6> +<a name="fusion.algorithm.query.metafunctions.any.h3"></a> + <span><a name="fusion.algorithm.query.metafunctions.any.complexity"></a></span><a class="link" href="any.html#fusion.algorithm.query.metafunctions.any.complexity">Complexity</a> + </h6> +<p> + Constant. + </p> +<h6> +<a name="fusion.algorithm.query.metafunctions.any.h4"></a> + <span><a name="fusion.algorithm.query.metafunctions.any.header"></a></span><a class="link" href="any.html#fusion.algorithm.query.metafunctions.any.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">query</span><span class="special">/</span><span class="identifier">any</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">any</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="../metafunctions.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="all.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/query/metafunctions/count.html b/libs/fusion/doc/html/fusion/algorithm/query/metafunctions/count.html new file mode 100755 index 0000000000..76e33b4b3f --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/query/metafunctions/count.html @@ -0,0 +1,158 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>count</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="find_if.html" title="find_if"> +<link rel="next" href="count_if.html" title="count_if"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="find_if.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="count_if.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.query.metafunctions.count"></a><a class="link" href="count.html" title="count">count</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.query.metafunctions.count.h0"></a> + <span><a name="fusion.algorithm.query.metafunctions.count.description"></a></span><a class="link" href="count.html#fusion.algorithm.query.metafunctions.count.description">Description</a> + </h6> +<p> + A metafunction that returns the result type of <code class="computeroutput"><span class="identifier">count</span></code> + given the sequence and search types. + </p> +<h6> +<a name="fusion.algorithm.query.metafunctions.count.h1"></a> + <span><a name="fusion.algorithm.query.metafunctions.count.synopsis"></a></span><a class="link" href="count.html#fusion.algorithm.query.metafunctions.count.synopsis">Synopsis</a> + </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> <span class="identifier">T</span> + <span class="special">></span> +<span class="keyword">struct</span> <span class="identifier">count</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="keyword">int</span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.query.metafunctions.count.t0"></a><p class="title"><b>Table 1.62. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<colgroup> +<col> +<col> +<col> +</colgroup> +<thead><tr> +<th> + <p> + Parameter + </p> + </th> +<th> + <p> + Requirement + </p> + </th> +<th> + <p> + heading Description + </p> + </th> +</tr></thead> +<tbody> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">T</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.query.metafunctions.count.h2"></a> + <span><a name="fusion.algorithm.query.metafunctions.count.expression_semantics"></a></span><a class="link" href="count.html#fusion.algorithm.query.metafunctions.count.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="count.html" title="count"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">count</span></code></a><span class="special"><</span><span class="identifier">T</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">int</span></code>. + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns the return type of + <a class="link" href="../functions/count.html" title="count"><code class="computeroutput"><span class="identifier">count</span></code></a>. The return type is always + <code class="computeroutput"><span class="keyword">int</span></code>. + </p> +<h6> +<a name="fusion.algorithm.query.metafunctions.count.h3"></a> + <span><a name="fusion.algorithm.query.metafunctions.count.complexity"></a></span><a class="link" href="count.html#fusion.algorithm.query.metafunctions.count.complexity">Complexity</a> + </h6> +<p> + Constant. + </p> +<h6> +<a name="fusion.algorithm.query.metafunctions.count.h4"></a> + <span><a name="fusion.algorithm.query.metafunctions.count.header"></a></span><a class="link" href="count.html#fusion.algorithm.query.metafunctions.count.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">query</span><span class="special">/</span><span class="identifier">count</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">count</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="find_if.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="count_if.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/query/metafunctions/count_if.html b/libs/fusion/doc/html/fusion/algorithm/query/metafunctions/count_if.html new file mode 100755 index 0000000000..d6138ef68b --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/query/metafunctions/count_if.html @@ -0,0 +1,158 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>count_if</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="count.html" title="count"> +<link rel="next" href="../../transformation.html" title="Transformation"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="count.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../../transformation.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.query.metafunctions.count_if"></a><a class="link" href="count_if.html" title="count_if">count_if</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.query.metafunctions.count_if.h0"></a> + <span><a name="fusion.algorithm.query.metafunctions.count_if.description"></a></span><a class="link" href="count_if.html#fusion.algorithm.query.metafunctions.count_if.description">Description</a> + </h6> +<p> + A metafunction that returns the result type of <code class="computeroutput"><span class="identifier">count_if</span></code> + given the sequence and predicate types. + </p> +<h6> +<a name="fusion.algorithm.query.metafunctions.count_if.h1"></a> + <span><a name="fusion.algorithm.query.metafunctions.count_if.synopsis"></a></span><a class="link" href="count_if.html#fusion.algorithm.query.metafunctions.count_if.synopsis">Synopsis</a> + </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> <span class="identifier">Pred</span> + <span class="special">></span> +<span class="keyword">struct</span> <span class="identifier">count_if</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="keyword">int</span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.query.metafunctions.count_if.t0"></a><p class="title"><b>Table 1.63. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">Pred</span></code> + </p> + </td> +<td> + <p> + A unary function object + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.query.metafunctions.count_if.h2"></a> + <span><a name="fusion.algorithm.query.metafunctions.count_if.expression_semantics"></a></span><a class="link" href="count_if.html#fusion.algorithm.query.metafunctions.count_if.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="count_if.html" title="count_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">count_if</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">int</span></code>. + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns the return type of + <a class="link" href="../functions/count_if.html" title="count_if"><code class="computeroutput"><span class="identifier">count_if</span></code></a>. The return type is + always <code class="computeroutput"><span class="keyword">int</span></code>. + </p> +<h6> +<a name="fusion.algorithm.query.metafunctions.count_if.h3"></a> + <span><a name="fusion.algorithm.query.metafunctions.count_if.complexity"></a></span><a class="link" href="count_if.html#fusion.algorithm.query.metafunctions.count_if.complexity">Complexity</a> + </h6> +<p> + Constant. + </p> +<h6> +<a name="fusion.algorithm.query.metafunctions.count_if.h4"></a> + <span><a name="fusion.algorithm.query.metafunctions.count_if.header"></a></span><a class="link" href="count_if.html#fusion.algorithm.query.metafunctions.count_if.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">query</span><span class="special">/</span><span class="identifier">count_if</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">count_if</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="count.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../../transformation.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/query/metafunctions/find.html b/libs/fusion/doc/html/fusion/algorithm/query/metafunctions/find.html new file mode 100755 index 0000000000..beab617699 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/query/metafunctions/find.html @@ -0,0 +1,160 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>find</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="none.html" title="none"> +<link rel="next" href="find_if.html" title="find_if"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="none.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="find_if.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.query.metafunctions.find"></a><a class="link" href="find.html" title="find">find</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.query.metafunctions.find.h0"></a> + <span><a name="fusion.algorithm.query.metafunctions.find.description"></a></span><a class="link" href="find.html#fusion.algorithm.query.metafunctions.find.description">Description</a> + </h6> +<p> + Returns the result type of <a class="link" href="../functions/find.html" title="find"><code class="computeroutput"><span class="identifier">find</span></code></a>, given the sequence and + search types. + </p> +<h6> +<a name="fusion.algorithm.query.metafunctions.find.h1"></a> + <span><a name="fusion.algorithm.query.metafunctions.find.synopsis"></a></span><a class="link" href="find.html#fusion.algorithm.query.metafunctions.find.synopsis">Synopsis</a> + </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> <span class="identifier">T</span> + <span class="special">></span> +<span class="keyword">struct</span> <span class="identifier">find</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.query.metafunctions.find.t0"></a><p class="title"><b>Table 1.60. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + Model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">T</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.query.metafunctions.find.h2"></a> + <span><a name="fusion.algorithm.query.metafunctions.find.expression_semantics"></a></span><a class="link" href="find.html#fusion.algorithm.query.metafunctions.find.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="find.html" title="find"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">find</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: A model of the same iterator + category as the iterators of <code class="computeroutput"><span class="identifier">Sequence</span></code>. + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns an iterator to the + first element of type <code class="computeroutput"><span class="identifier">T</span></code> + in <code class="computeroutput"><span class="identifier">Sequence</span></code>, or <code class="computeroutput"><a class="link" href="../../../sequence/intrinsic/metafunctions/end.html" title="end"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">end</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span></code> + if there is no such element. + </p> +<h6> +<a name="fusion.algorithm.query.metafunctions.find.h3"></a> + <span><a name="fusion.algorithm.query.metafunctions.find.complexity"></a></span><a class="link" href="find.html#fusion.algorithm.query.metafunctions.find.complexity">Complexity</a> + </h6> +<p> + Linear, at most <code class="computeroutput"><a class="link" href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">value</span></code> comparisons. + </p> +<h6> +<a name="fusion.algorithm.query.metafunctions.find.h4"></a> + <span><a name="fusion.algorithm.query.metafunctions.find.header"></a></span><a class="link" href="find.html#fusion.algorithm.query.metafunctions.find.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">query</span><span class="special">/</span><span class="identifier">find</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">find</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="none.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="find_if.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/query/metafunctions/find_if.html b/libs/fusion/doc/html/fusion/algorithm/query/metafunctions/find_if.html new file mode 100755 index 0000000000..a525b5435d --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/query/metafunctions/find_if.html @@ -0,0 +1,161 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>find_if</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="find.html" title="find"> +<link rel="next" href="count.html" title="count"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="find.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="count.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.query.metafunctions.find_if"></a><a class="link" href="find_if.html" title="find_if">find_if</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.query.metafunctions.find_if.h0"></a> + <span><a name="fusion.algorithm.query.metafunctions.find_if.description"></a></span><a class="link" href="find_if.html#fusion.algorithm.query.metafunctions.find_if.description">Description</a> + </h6> +<p> + Returns the result type of <a class="link" href="../functions/find_if.html" title="find_if"><code class="computeroutput"><span class="identifier">find_if</span></code></a> given the sequence and + predicate types. + </p> +<h6> +<a name="fusion.algorithm.query.metafunctions.find_if.h1"></a> + <span><a name="fusion.algorithm.query.metafunctions.find_if.synopsis"></a></span><a class="link" href="find_if.html#fusion.algorithm.query.metafunctions.find_if.synopsis">Synopsis</a> + </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> <span class="identifier">Pred</span> + <span class="special">></span> +<span class="keyword">struct</span> <span class="identifier">find_if</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.query.metafunctions.find_if.t0"></a><p class="title"><b>Table 1.61. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">Pred</span></code> + </p> + </td> +<td> + <p> + A model of <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL + Lambda Expression</a> + </p> + </td> +<td> + <p> + Operation's arguments + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.query.metafunctions.find_if.h2"></a> + <span><a name="fusion.algorithm.query.metafunctions.find_if.expression_semantics"></a></span><a class="link" href="find_if.html#fusion.algorithm.query.metafunctions.find_if.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="find_if.html" title="find_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">find_if</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: A model of the same iterator + category as the iterators of <code class="computeroutput"><span class="identifier">Sequence</span></code>. + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns an iterator to the + first element in <code class="computeroutput"><span class="identifier">Sequence</span></code> + for which <code class="computeroutput"><span class="identifier">Pred</span></code> evaluates + to true. Returns <code class="computeroutput"><a class="link" href="../../../sequence/intrinsic/metafunctions/end.html" title="end"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">end</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span></code> if there is no such element. + </p> +<h6> +<a name="fusion.algorithm.query.metafunctions.find_if.h3"></a> + <span><a name="fusion.algorithm.query.metafunctions.find_if.complexity"></a></span><a class="link" href="find_if.html#fusion.algorithm.query.metafunctions.find_if.complexity">Complexity</a> + </h6> +<p> + Linear. At most <code class="computeroutput"><a class="link" href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">value</span></code> comparisons. + </p> +<h6> +<a name="fusion.algorithm.query.metafunctions.find_if.h4"></a> + <span><a name="fusion.algorithm.query.metafunctions.find_if.header"></a></span><a class="link" href="find_if.html#fusion.algorithm.query.metafunctions.find_if.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">query</span><span class="special">/</span><span class="identifier">find_if</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">find_if</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="find.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="count.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/query/metafunctions/none.html b/libs/fusion/doc/html/fusion/algorithm/query/metafunctions/none.html new file mode 100755 index 0000000000..a567a88795 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/query/metafunctions/none.html @@ -0,0 +1,161 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>none</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="all.html" title="all"> +<link rel="next" href="find.html" title="find"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="all.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="find.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.query.metafunctions.none"></a><a class="link" href="none.html" title="none">none</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.query.metafunctions.none.h0"></a> + <span><a name="fusion.algorithm.query.metafunctions.none.description"></a></span><a class="link" href="none.html#fusion.algorithm.query.metafunctions.none.description">Description</a> + </h6> +<p> + A metafunction returning the result type of <a class="link" href="../functions/none.html" title="none"><code class="computeroutput"><span class="identifier">none</span></code></a>. + </p> +<h6> +<a name="fusion.algorithm.query.metafunctions.none.h1"></a> + <span><a name="fusion.algorithm.query.metafunctions.none.synopsis"></a></span><a class="link" href="none.html#fusion.algorithm.query.metafunctions.none.synopsis">Synopsis</a> + </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> <span class="identifier">F</span> + <span class="special">></span> +<span class="keyword">struct</span> <span class="identifier">none</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="keyword">bool</span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.query.metafunctions.none.t0"></a><p class="title"><b>Table 1.59. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">F</span></code> + </p> + </td> +<td> + <p> + A model of unary <a class="link" href="../../../functional/concepts/poly.html" title="Polymorphic Function Object">Polymorphic + Function Object</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.query.metafunctions.none.h2"></a> + <span><a name="fusion.algorithm.query.metafunctions.none.expression_semantics"></a></span><a class="link" href="none.html#fusion.algorithm.query.metafunctions.none.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="none.html" title="none"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">none</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code>. + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns the return type of + <a class="link" href="../functions/none.html" title="none"><code class="computeroutput"><span class="identifier">none</span></code></a> + given a sequence of type <code class="computeroutput"><span class="identifier">Sequence</span></code> + and a unary <a class="link" href="../../../functional/concepts/poly.html" title="Polymorphic Function Object">Polymorphic + Function Object</a> of type <code class="computeroutput"><span class="identifier">F</span></code>. + The return type is always <code class="computeroutput"><span class="keyword">bool</span></code>. + </p> +<h6> +<a name="fusion.algorithm.query.metafunctions.none.h3"></a> + <span><a name="fusion.algorithm.query.metafunctions.none.complexity"></a></span><a class="link" href="none.html#fusion.algorithm.query.metafunctions.none.complexity">Complexity</a> + </h6> +<p> + Constant. + </p> +<h6> +<a name="fusion.algorithm.query.metafunctions.none.h4"></a> + <span><a name="fusion.algorithm.query.metafunctions.none.header"></a></span><a class="link" href="none.html#fusion.algorithm.query.metafunctions.none.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">query</span><span class="special">/</span><span class="identifier">none</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">none</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="all.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="find.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation.html b/libs/fusion/doc/html/fusion/algorithm/transformation.html new file mode 100755 index 0000000000..edceb644a6 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation.html @@ -0,0 +1,71 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>Transformation</title> +<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../algorithm.html" title="Algorithm"> +<link rel="prev" href="query/metafunctions/count_if.html" title="count_if"> +<link rel="next" href="transformation/functions.html" title="Functions"> +</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> +<td align="center"><a href="../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td> +<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="query/metafunctions/count_if.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../algorithm.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="transformation/functions.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h3 class="title"> +<a name="fusion.algorithm.transformation"></a><a class="link" href="transformation.html" title="Transformation">Transformation</a> +</h3></div></div></div> +<div class="toc"><dl> +<dt><span class="section"><a href="transformation/functions.html">Functions</a></span></dt> +<dt><span class="section"><a href="transformation/metafunctions.html">Metafunctions</a></span></dt> +</dl></div> +<p> + The transformation algorithms create new sequences out of existing sequences + by performing some sort of transformation. In reality the new sequences are + views onto the data in the original sequences. + </p> +<div class="note"><table border="0" summary="Note"> +<tr> +<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../doc/src/images/note.png"></td> +<th align="left">Note</th> +</tr> +<tr><td align="left" valign="top"><p> + As the transformation algorithms return views onto their input arguments, + it is important that the lifetime of the input arguments is greater than + the period during which you wish to use the results. + </p></td></tr> +</table></div> +<h5> +<a name="fusion.algorithm.transformation.h0"></a> + <span><a name="fusion.algorithm.transformation.header"></a></span><a class="link" href="transformation.html#fusion.algorithm.transformation.header">Header</a> + </h5> +<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">algorithm</span><span class="special">/</span><span class="identifier">transformation</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">transformation</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="query/metafunctions/count_if.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../algorithm.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="transformation/functions.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/functions.html b/libs/fusion/doc/html/fusion/algorithm/transformation/functions.html new file mode 100755 index 0000000000..347d398aa0 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/functions.html @@ -0,0 +1,65 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>Functions</title> +<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../transformation.html" title="Transformation"> +<link rel="prev" href="../transformation.html" title="Transformation"> +<link rel="next" href="functions/filter.html" title="filter"> +</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> +<td align="center"><a href="../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="../transformation.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../transformation.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="functions/filter.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h4 class="title"> +<a name="fusion.algorithm.transformation.functions"></a><a class="link" href="functions.html" title="Functions">Functions</a> +</h4></div></div></div> +<div class="toc"><dl> +<dt><span class="section"><a href="functions/filter.html">filter</a></span></dt> +<dt><span class="section"><a href="functions/filter_if.html">filter_if</a></span></dt> +<dt><span class="section"><a href="functions/transform.html">transform</a></span></dt> +<dt><span class="section"><a href="functions/replace.html">replace</a></span></dt> +<dt><span class="section"><a href="functions/replace_if.html">replace_if</a></span></dt> +<dt><span class="section"><a href="functions/remove.html">remove</a></span></dt> +<dt><span class="section"><a href="functions/remove_if.html">remove_if</a></span></dt> +<dt><span class="section"><a href="functions/reverse.html">reverse</a></span></dt> +<dt><span class="section"><a href="functions/clear.html">clear</a></span></dt> +<dt><span class="section"><a href="functions/erase.html">erase</a></span></dt> +<dt><span class="section"><a href="functions/erase_key.html">erase_key</a></span></dt> +<dt><span class="section"><a href="functions/insert.html">insert</a></span></dt> +<dt><span class="section"><a href="functions/insert_range.html">insert_range</a></span></dt> +<dt><span class="section"><a href="functions/join.html">join</a></span></dt> +<dt><span class="section"><a href="functions/zip.html">zip</a></span></dt> +<dt><span class="section"><a href="functions/pop_back.html">pop_back</a></span></dt> +<dt><span class="section"><a href="functions/pop_front.html">pop_front</a></span></dt> +<dt><span class="section"><a href="functions/push_back.html">push_back</a></span></dt> +<dt><span class="section"><a href="functions/push_front.html">push_front</a></span></dt> +</dl></div> +</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-2006, 2011 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="../transformation.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../transformation.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="functions/filter.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/functions/clear.html b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/clear.html new file mode 100755 index 0000000000..54fc0b4841 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/clear.html @@ -0,0 +1,140 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>clear</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="reverse.html" title="reverse"> +<link rel="next" href="erase.html" title="erase"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="reverse.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="erase.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.functions.clear"></a><a class="link" href="clear.html" title="clear">clear</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.functions.clear.h0"></a> + <span><a name="fusion.algorithm.transformation.functions.clear.description"></a></span><a class="link" href="clear.html#fusion.algorithm.transformation.functions.clear.description">Description</a> + </h6> +<p> + <a class="link" href="clear.html" title="clear"><code class="computeroutput"><span class="identifier">clear</span></code></a> returns an empty sequence. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.clear.h1"></a> + <span><a name="fusion.algorithm.transformation.functions.clear.synposis"></a></span><a class="link" href="clear.html#fusion.algorithm.transformation.functions.clear.synposis">Synposis</a> + </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 class="link" href="../metafunctions/clear.html" title="clear"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">clear</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">clear</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> +<div class="table"> +<a name="fusion.algorithm.transformation.functions.clear.t0"></a><p class="title"><b>Table 1.73. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr></tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.functions.clear.h2"></a> + <span><a name="fusion.algorithm.transformation.functions.clear.expression_semantics"></a></span><a class="link" href="clear.html#fusion.algorithm.transformation.functions.clear.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="clear.html" title="clear"><code class="computeroutput"><span class="identifier">clear</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </p> +<p> + <span class="bold"><strong>Expression Semantics</strong></span>: Returns a sequence + with no elements. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.clear.h3"></a> + <span><a name="fusion.algorithm.transformation.functions.clear.complexity"></a></span><a class="link" href="clear.html#fusion.algorithm.transformation.functions.clear.complexity">Complexity</a> + </h6> +<p> + Constant. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.clear.h4"></a> + <span><a name="fusion.algorithm.transformation.functions.clear.header"></a></span><a class="link" href="clear.html#fusion.algorithm.transformation.functions.clear.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">clear</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">clear</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.transformation.functions.clear.h5"></a> + <span><a name="fusion.algorithm.transformation.functions.clear.example"></a></span><a class="link" href="clear.html#fusion.algorithm.transformation.functions.clear.example">Example</a> + </h6> +<pre class="programlisting"><span class="identifier">assert</span><span class="special">(</span><a class="link" href="clear.html" title="clear"><code class="computeroutput"><span class="identifier">clear</span></code></a><span class="special">(</span><a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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="special">==</span> <a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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 © 2001-2006, 2011 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="reverse.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="erase.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/functions/erase.html b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/erase.html new file mode 100755 index 0000000000..b67494ab28 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/erase.html @@ -0,0 +1,226 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>erase</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="clear.html" title="clear"> +<link rel="next" href="erase_key.html" title="erase_key"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="clear.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="erase_key.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.functions.erase"></a><a class="link" href="erase.html" title="erase">erase</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.functions.erase.h0"></a> + <span><a name="fusion.algorithm.transformation.functions.erase.description"></a></span><a class="link" href="erase.html#fusion.algorithm.transformation.functions.erase.description">Description</a> + </h6> +<p> + Returns a new sequence, containing all the elements of the original except + those at a specified iterator, or between two iterators. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.erase.h1"></a> + <span><a name="fusion.algorithm.transformation.functions.erase.synposis"></a></span><a class="link" href="erase.html#fusion.algorithm.transformation.functions.erase.synposis">Synposis</a> + </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> <span class="identifier">First</span> + <span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="../metafunctions/erase.html" title="erase"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">First</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">erase</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> <span class="identifier">First</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">it1</span><span class="special">);</span> + +<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> <span class="identifier">First</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">Last</span> + <span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="../metafunctions/erase.html" title="erase"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">First</span><span class="special">,</span> <span class="identifier">Last</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">erase</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> <span class="identifier">First</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">it1</span><span class="special">,</span> <span class="identifier">Last</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">it2</span><span class="special">);</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.functions.erase.t0"></a><p class="title"><b>Table 1.74. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<colgroup> +<col> +<col> +<col> +</colgroup> +<thead><tr> +<th> + <p> + Parameters + </p> + </th> +<th> + <p> + Requirement + </p> + </th> +<th> + <p> + Description + </p> + </th> +</tr></thead> +<tbody> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">it1</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../iterator/concepts/forward_iterator.html" title="Forward Iterator">Forward + Iterator</a> + </p> + </td> +<td> + <p> + Iterator into <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">it2</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../iterator/concepts/forward_iterator.html" title="Forward Iterator">Forward + Iterator</a> + </p> + </td> +<td> + <p> + Iterator into <code class="computeroutput"><span class="identifier">seq</span></code> + after <code class="computeroutput"><span class="identifier">it1</span></code> + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.functions.erase.h2"></a> + <span><a name="fusion.algorithm.transformation.functions.erase.expression_semantics"></a></span><a class="link" href="erase.html#fusion.algorithm.transformation.functions.erase.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="erase.html" title="erase"><code class="computeroutput"><span class="identifier">erase</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">pos</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </li> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> if <code class="computeroutput"><span class="identifier">seq</span></code> + implements the <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> model. + </li> +</ul></div> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing + all the elements of <code class="computeroutput"><span class="identifier">seq</span></code> + except the element at <code class="computeroutput"><span class="identifier">pos</span></code>. + </p> +<pre class="programlisting"><a class="link" href="erase.html" title="erase"><code class="computeroutput"><span class="identifier">erase</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">first</span><span class="special">,</span> <span class="identifier">last</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </li> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> if <code class="computeroutput"><span class="identifier">seq</span></code> + implements the <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> model. + </li> +</ul></div> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, with + all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>, + in their original order, except those in the range [<code class="computeroutput"><span class="identifier">first</span></code>,<code class="computeroutput"><span class="identifier">last</span></code>). + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.erase.h3"></a> + <span><a name="fusion.algorithm.transformation.functions.erase.complexity"></a></span><a class="link" href="erase.html#fusion.algorithm.transformation.functions.erase.complexity">Complexity</a> + </h6> +<p> + Constant. Returns a view which is lazily evaluated. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.erase.h4"></a> + <span><a name="fusion.algorithm.transformation.functions.erase.header"></a></span><a class="link" href="erase.html#fusion.algorithm.transformation.functions.erase.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">erase</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">erase</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.transformation.functions.erase.h5"></a> + <span><a name="fusion.algorithm.transformation.functions.erase.example"></a></span><a class="link" href="erase.html#fusion.algorithm.transformation.functions.erase.example">Example</a> + </h6> +<pre class="programlisting"><span class="keyword">const</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">double</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="identifier">vec</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2.0</span><span class="special">,</span> <span class="char">'c'</span><span class="special">);</span> +<span class="identifier">assert</span><span class="special">(</span><a class="link" href="erase.html" title="erase"><code class="computeroutput"><span class="identifier">erase</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span> <a class="link" href="../../../iterator/functions/next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><a class="link" href="../../../sequence/intrinsic/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">)))</span> <span class="special">==</span> <a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="char">'c'</span><span class="special">));</span> +<span class="identifier">assert</span><span class="special">(</span><a class="link" href="erase.html" title="erase"><code class="computeroutput"><span class="identifier">erase</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span> <a class="link" href="../../../iterator/functions/next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><a class="link" href="../../../sequence/intrinsic/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">)),</span> <a class="link" href="../../../sequence/intrinsic/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">))</span> <span class="special">==</span> <a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</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 © 2001-2006, 2011 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="clear.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="erase_key.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/functions/erase_key.html b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/erase_key.html new file mode 100755 index 0000000000..7e96737d02 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/erase_key.html @@ -0,0 +1,168 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>erase_key</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="erase.html" title="erase"> +<link rel="next" href="insert.html" title="insert"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="erase.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="insert.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.functions.erase_key"></a><a class="link" href="erase_key.html" title="erase_key">erase_key</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.functions.erase_key.h0"></a> + <span><a name="fusion.algorithm.transformation.functions.erase_key.description"></a></span><a class="link" href="erase_key.html#fusion.algorithm.transformation.functions.erase_key.description">Description</a> + </h6> +<p> + For an <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">associative</a>] + <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward Sequence</a> + <code class="computeroutput"><span class="identifier">seq</span></code>, returns a <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">associative</a>] + <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward Sequence</a> + containing all the elements of the original except those with a given + key. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.erase_key.h1"></a> + <span><a name="fusion.algorithm.transformation.functions.erase_key.synposis"></a></span><a class="link" href="erase_key.html#fusion.algorithm.transformation.functions.erase_key.synposis">Synposis</a> + </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 class="link" href="../metafunctions/erase_key.html" title="erase_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase_key</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Key</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">erase_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> +<div class="table"> +<a name="fusion.algorithm.transformation.functions.erase_key.t0"></a><p class="title"><b>Table 1.75. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> and <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">Key</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + Key to erase + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.functions.erase_key.h2"></a> + <span><a name="fusion.algorithm.transformation.functions.erase_key.expression_semantics"></a></span><a class="link" href="erase_key.html#fusion.algorithm.transformation.functions.erase_key.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="erase_key.html" title="erase_key"><code class="computeroutput"><span class="identifier">erase_key</span></code></a><span class="special"><</span><span class="identifier">Key</span><span class="special">>(</span><span class="identifier">seq</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> and <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a>. + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing + all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>, + except those with key <code class="computeroutput"><span class="identifier">Key</span></code>. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.erase_key.h3"></a> + <span><a name="fusion.algorithm.transformation.functions.erase_key.complexity"></a></span><a class="link" href="erase_key.html#fusion.algorithm.transformation.functions.erase_key.complexity">Complexity</a> + </h6> +<p> + Constant. Returns a view which is lazily evaluated. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.erase_key.h4"></a> + <span><a name="fusion.algorithm.transformation.functions.erase_key.header"></a></span><a class="link" href="erase_key.html#fusion.algorithm.transformation.functions.erase_key.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">erase_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">erase_key</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.transformation.functions.erase_key.h5"></a> + <span><a name="fusion.algorithm.transformation.functions.erase_key.example"></a></span><a class="link" href="erase_key.html#fusion.algorithm.transformation.functions.erase_key.example">Example</a> + </h6> +<pre class="programlisting"><span class="identifier">assert</span><span class="special">(</span><a class="link" href="erase_key.html" title="erase_key"><code class="computeroutput"><span class="identifier">erase_key</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">>(</span><a class="link" href="../../../container/generation/functions/make_map.html" title="make_map"><code class="computeroutput"><span class="identifier">make_map</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">long</span><span class="special">>(</span><span class="char">'a'</span><span class="special">,</span> <span class="char">'b'</span><span class="special">))</span> <span class="special">==</span> <a class="link" href="../../../container/generation/functions/make_map.html" title="make_map"><code class="computeroutput"><span class="identifier">make_map</span></code></a><span class="special"><</span><span class="keyword">long</span><span class="special">>(</span><span class="char">'b'</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 © 2001-2006, 2011 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="erase.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="insert.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/functions/filter.html b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/filter.html new file mode 100755 index 0000000000..0ad600a878 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/filter.html @@ -0,0 +1,175 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>filter</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="../functions.html" title="Functions"> +<link rel="next" href="filter_if.html" title="filter_if"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="../functions.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="filter_if.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.functions.filter"></a><a class="link" href="filter.html" title="filter">filter</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.functions.filter.h0"></a> + <span><a name="fusion.algorithm.transformation.functions.filter.description"></a></span><a class="link" href="filter.html#fusion.algorithm.transformation.functions.filter.description">Description</a> + </h6> +<p> + For a given sequence, filter returns a new sequences containing only + the elements of a specified type. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.filter.h1"></a> + <span><a name="fusion.algorithm.transformation.functions.filter.synopsis"></a></span><a class="link" href="filter.html#fusion.algorithm.transformation.functions.filter.synopsis">Synopsis</a> + </h6> +<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span> + <span class="keyword">typename</span> <span class="identifier">T</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 class="link" href="../metafunctions/filter.html" title="filter"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">filter</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">T</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">filter</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> +<div class="table"> +<a name="fusion.algorithm.transformation.functions.filter.t0"></a><p class="title"><b>Table 1.64. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">T</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + The type to retain + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.functions.filter.h2"></a> + <span><a name="fusion.algorithm.transformation.functions.filter.expression_semantics"></a></span><a class="link" href="filter.html#fusion.algorithm.transformation.functions.filter.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="filter.html" title="filter"><code class="computeroutput"><span class="identifier">filter</span></code></a><span class="special"><</span><span class="identifier">T</span><span class="special">>(</span><span class="identifier">seq</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </li> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> if <code class="computeroutput"><span class="identifier">seq</span></code> + implements the <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> model. + </li> +</ul></div> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a sequence containing + all the elements of <code class="computeroutput"><span class="identifier">seq</span></code> + of type <code class="computeroutput"><span class="identifier">T</span></code>. Equivalent + to <code class="computeroutput"><a class="link" href="filter_if.html" title="filter_if"><code class="computeroutput"><span class="identifier">filter_if</span></code></a><span class="special"><</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">same_type</span><span class="special"><</span><span class="identifier">_</span><span class="special">,</span> <span class="identifier">T</span><span class="special">></span> <span class="special">>(</span><span class="identifier">seq</span><span class="special">)</span></code>. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.filter.h3"></a> + <span><a name="fusion.algorithm.transformation.functions.filter.complexity"></a></span><a class="link" href="filter.html#fusion.algorithm.transformation.functions.filter.complexity">Complexity</a> + </h6> +<p> + Constant. Returns a view which is lazily evaluated. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.filter.h4"></a> + <span><a name="fusion.algorithm.transformation.functions.filter.header"></a></span><a class="link" href="filter.html#fusion.algorithm.transformation.functions.filter.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">filter</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">filter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.transformation.functions.filter.h5"></a> + <span><a name="fusion.algorithm.transformation.functions.filter.example"></a></span><a class="link" href="filter.html#fusion.algorithm.transformation.functions.filter.example">Example</a> + </h6> +<pre class="programlisting"><span class="keyword">const</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">long</span><span class="special">,</span><span class="keyword">long</span><span class="special">></span> <span class="identifier">vec</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="number">4</span><span class="special">);</span> +<span class="identifier">assert</span><span class="special">(</span><a class="link" href="filter.html" title="filter"><code class="computeroutput"><span class="identifier">filter</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">>(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</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 © 2001-2006, 2011 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="../functions.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="filter_if.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/functions/filter_if.html b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/filter_if.html new file mode 100755 index 0000000000..6b70ea4105 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/filter_if.html @@ -0,0 +1,178 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>filter_if</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="filter.html" title="filter"> +<link rel="next" href="transform.html" title="transform"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="filter.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="transform.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.functions.filter_if"></a><a class="link" href="filter_if.html" title="filter_if">filter_if</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.functions.filter_if.h0"></a> + <span><a name="fusion.algorithm.transformation.functions.filter_if.description"></a></span><a class="link" href="filter_if.html#fusion.algorithm.transformation.functions.filter_if.description">Description</a> + </h6> +<p> + For a given sequence, <a class="link" href="filter_if.html" title="filter_if"><code class="computeroutput"><span class="identifier">filter_if</span></code></a> returns a new sequences + containing only the elements with types for which a given <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL + Lambda Expression</a> evaluates to <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code>. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.filter_if.h1"></a> + <span><a name="fusion.algorithm.transformation.functions.filter_if.synopsis"></a></span><a class="link" href="filter_if.html#fusion.algorithm.transformation.functions.filter_if.synopsis">Synopsis</a> + </h6> +<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span> + <span class="keyword">typename</span> <span class="identifier">Pred</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 class="link" href="../metafunctions/filter_if.html" title="filter_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">filter_if</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">filter_if</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> +<div class="table"> +<a name="fusion.algorithm.transformation.functions.filter_if.t0"></a><p class="title"><b>Table 1.65. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">Pred</span></code> + </p> + </td> +<td> + <p> + A unary <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL + Lambda Expression</a> + </p> + </td> +<td> + <p> + The predicate to filter by + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.functions.filter_if.h2"></a> + <span><a name="fusion.algorithm.transformation.functions.filter_if.expression_semantics"></a></span><a class="link" href="filter_if.html#fusion.algorithm.transformation.functions.filter_if.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="filter_if.html" title="filter_if"><code class="computeroutput"><span class="identifier">filter_if</span></code></a><span class="special"><</span><span class="identifier">Pred</span><span class="special">>(</span><span class="identifier">seq</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </li> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> if <code class="computeroutput"><span class="identifier">seq</span></code> + implements the <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> model. + </li> +</ul></div> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a sequence containing + all the elements of <code class="computeroutput"><span class="identifier">seq</span></code> + with types for which <code class="computeroutput"><span class="identifier">Pred</span></code> + evaluates to <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code>. The order of the retained elements + is the same as in the original sequence. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.filter_if.h3"></a> + <span><a name="fusion.algorithm.transformation.functions.filter_if.complexity"></a></span><a class="link" href="filter_if.html#fusion.algorithm.transformation.functions.filter_if.complexity">Complexity</a> + </h6> +<p> + Constant. Returns a view which is lazily evaluated. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.filter_if.h4"></a> + <span><a name="fusion.algorithm.transformation.functions.filter_if.header"></a></span><a class="link" href="filter_if.html#fusion.algorithm.transformation.functions.filter_if.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">filter_if</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">filter_if</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.transformation.functions.filter_if.h5"></a> + <span><a name="fusion.algorithm.transformation.functions.filter_if.example"></a></span><a class="link" href="filter_if.html#fusion.algorithm.transformation.functions.filter_if.example">Example</a> + </h6> +<pre class="programlisting"><span class="keyword">const</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">double</span><span class="special">,</span><span class="keyword">double</span><span class="special">></span> <span class="identifier">vec</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.0</span><span class="special">,</span><span class="number">4.0</span><span class="special">);</span> +<span class="identifier">assert</span><span class="special">(</span><a class="link" href="filter_if.html" title="filter_if"><code class="computeroutput"><span class="identifier">filter_if</span></code></a><span class="special"><</span><span class="identifier">is_integral</span><span class="special"><</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">></span> <span class="special">>(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</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 © 2001-2006, 2011 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="filter.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="transform.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/functions/insert.html b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/insert.html new file mode 100755 index 0000000000..5f1a830bdb --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/insert.html @@ -0,0 +1,188 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>insert</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="erase_key.html" title="erase_key"> +<link rel="next" href="insert_range.html" title="insert_range"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="erase_key.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="insert_range.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.functions.insert"></a><a class="link" href="insert.html" title="insert">insert</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.functions.insert.h0"></a> + <span><a name="fusion.algorithm.transformation.functions.insert.description"></a></span><a class="link" href="insert.html#fusion.algorithm.transformation.functions.insert.description">Description</a> + </h6> +<p> + Returns a new sequence with all the elements of the original, an a new + element inserted the position described by a given iterator. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.insert.h1"></a> + <span><a name="fusion.algorithm.transformation.functions.insert.synposis"></a></span><a class="link" href="insert.html#fusion.algorithm.transformation.functions.insert.synposis">Synposis</a> + </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> <span class="identifier">Pos</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">T</span> + <span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="../metafunctions/insert.html" title="insert"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">insert</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Pos</span><span class="special">,</span> <span class="identifier">T</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">insert</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> <span class="identifier">Pos</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">pos</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">t</span><span class="special">);</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.functions.insert.t0"></a><p class="title"><b>Table 1.76. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">pos</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../iterator/concepts/forward_iterator.html" title="Forward Iterator">Forward + Iterator</a> + </p> + </td> +<td> + <p> + The position to insert at + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">t</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + The value to insert + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.functions.insert.h2"></a> + <span><a name="fusion.algorithm.transformation.functions.insert.expression_semantics"></a></span><a class="link" href="insert.html#fusion.algorithm.transformation.functions.insert.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="insert.html" title="insert"><code class="computeroutput"><span class="identifier">insert</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">p</span><span class="special">,</span> <span class="identifier">t</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </li></ul></div> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing + all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>, + in their original order, and a new element with the type and value of + <code class="computeroutput"><span class="identifier">t</span></code> inserted at iterator + <code class="computeroutput"><span class="identifier">pos</span></code>. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.insert.h3"></a> + <span><a name="fusion.algorithm.transformation.functions.insert.complexity"></a></span><a class="link" href="insert.html#fusion.algorithm.transformation.functions.insert.complexity">Complexity</a> + </h6> +<p> + Constant. Returns a view which is lazily evaluated. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.insert.h4"></a> + <span><a name="fusion.algorithm.transformation.functions.insert.header"></a></span><a class="link" href="insert.html#fusion.algorithm.transformation.functions.insert.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">insert</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">insert</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.transformation.functions.insert.h5"></a> + <span><a name="fusion.algorithm.transformation.functions.insert.example"></a></span><a class="link" href="insert.html#fusion.algorithm.transformation.functions.insert.example">Example</a> + </h6> +<pre class="programlisting"><span class="keyword">const</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="identifier">vec</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="identifier">assert</span><span class="special">(</span><a class="link" href="insert.html" title="insert"><code class="computeroutput"><span class="identifier">insert</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span> <a class="link" href="../../../iterator/functions/next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><a class="link" href="../../../sequence/intrinsic/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">)),</span> <span class="number">3</span><span class="special">)</span> <span class="special">==</span> <a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">3</span><span class="special">,</span><span class="number">2</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 © 2001-2006, 2011 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="erase_key.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="insert_range.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/functions/insert_range.html b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/insert_range.html new file mode 100755 index 0000000000..7ca8024a9e --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/insert_range.html @@ -0,0 +1,197 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>insert_range</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="insert.html" title="insert"> +<link rel="next" href="join.html" title="join"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="insert.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="join.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.functions.insert_range"></a><a class="link" href="insert_range.html" title="insert_range">insert_range</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.functions.insert_range.h0"></a> + <span><a name="fusion.algorithm.transformation.functions.insert_range.description"></a></span><a class="link" href="insert_range.html#fusion.algorithm.transformation.functions.insert_range.description">Description</a> + </h6> +<p> + Returns a new sequence with another sequence inserted at a specified + iterator. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.insert_range.h1"></a> + <span><a name="fusion.algorithm.transformation.functions.insert_range.synposis"></a></span><a class="link" href="insert_range.html#fusion.algorithm.transformation.functions.insert_range.synposis">Synposis</a> + </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> <span class="identifier">Pos</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">Range</span> + <span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="../metafunctions/insert_range.html" title="insert_range"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">insert_range</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Pos</span><span class="special">,</span> <span class="identifier">Range</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">insert_range</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> <span class="identifier">Pos</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">pos</span><span class="special">,</span> <span class="identifier">Range</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">range</span><span class="special">);</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.functions.insert_range.t0"></a><p class="title"><b>Table 1.77. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">pos</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../iterator/concepts/forward_iterator.html" title="Forward Iterator">Forward + Iterator</a> + </p> + </td> +<td> + <p> + The position to insert at + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">range</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Range to insert + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.functions.insert_range.h2"></a> + <span><a name="fusion.algorithm.transformation.functions.insert_range.expression_semantics"></a></span><a class="link" href="insert_range.html#fusion.algorithm.transformation.functions.insert_range.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="insert_range.html" title="insert_range"><code class="computeroutput"><span class="identifier">insert_range</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">pos</span><span class="special">,</span> <span class="identifier">range</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </li> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> if <code class="computeroutput"><span class="identifier">seq</span></code> + implements the <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> model. + </li> +</ul></div> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing + all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>, + and the elements of <code class="computeroutput"><span class="identifier">range</span></code> + inserted at iterator <code class="computeroutput"><span class="identifier">pos</span></code>. + All elements retaining their ordering from the orignal sequences. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.insert_range.h3"></a> + <span><a name="fusion.algorithm.transformation.functions.insert_range.complexity"></a></span><a class="link" href="insert_range.html#fusion.algorithm.transformation.functions.insert_range.complexity">Complexity</a> + </h6> +<p> + Constant. Returns a view which is lazily evaluated. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.insert_range.h4"></a> + <span><a name="fusion.algorithm.transformation.functions.insert_range.header"></a></span><a class="link" href="insert_range.html#fusion.algorithm.transformation.functions.insert_range.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">insert_range</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">insert_range</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.transformation.functions.insert_range.h5"></a> + <span><a name="fusion.algorithm.transformation.functions.insert_range.example"></a></span><a class="link" href="insert_range.html#fusion.algorithm.transformation.functions.insert_range.example">Example</a> + </h6> +<pre class="programlisting"><span class="keyword">const</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="identifier">vec</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="identifier">assert</span><span class="special">(</span><a class="link" href="insert_range.html" title="insert_range"><code class="computeroutput"><span class="identifier">insert_range</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span> <a class="link" href="../../../iterator/functions/next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><a class="link" href="../../../sequence/intrinsic/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">)),</span> <a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">3</span><span class="special">,</span><span class="number">4</span><span class="special">))</span> <span class="special">==</span> <a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">3</span><span class="special">,</span><span class="number">4</span><span class="special">,</span><span class="number">2</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 © 2001-2006, 2011 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="insert.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="join.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/functions/join.html b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/join.html new file mode 100755 index 0000000000..c30ec8dc33 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/join.html @@ -0,0 +1,177 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>join</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="insert_range.html" title="insert_range"> +<link rel="next" href="zip.html" title="zip"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="insert_range.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="zip.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.functions.join"></a><a class="link" href="join.html" title="join">join</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.functions.join.h0"></a> + <span><a name="fusion.algorithm.transformation.functions.join.description"></a></span><a class="link" href="join.html#fusion.algorithm.transformation.functions.join.description">Description</a> + </h6> +<p> + Takes 2 sequences and returns a sequence containing the elements of the + first followed by the elements of the second. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.join.h1"></a> + <span><a name="fusion.algorithm.transformation.functions.join.synopsis"></a></span><a class="link" href="join.html#fusion.algorithm.transformation.functions.join.synopsis">Synopsis</a> + </h6> +<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span> + <span class="keyword">typename</span> <span class="identifier">LhSequence</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">RhSequence</span><span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="../metafunctions/join.html" title="join"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">join</span></code></a><span class="special"><</span><span class="identifier">LhSequence</span><span class="special">,</span> <span class="identifier">RhSequence</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">join</span><span class="special">(</span><span class="identifier">LhSequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="identifier">RhSequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">rhs</span><span class="special">);</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.functions.join.t0"></a><p class="title"><b>Table 1.78. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">lhs</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">rhs</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.functions.join.h2"></a> + <span><a name="fusion.algorithm.transformation.functions.join.expression_semantics"></a></span><a class="link" href="join.html#fusion.algorithm.transformation.functions.join.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="join.html" title="join"><code class="computeroutput"><span class="identifier">join</span></code></a><span class="special">(</span><span class="identifier">lhs</span><span class="special">,</span> <span class="identifier">rhs</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </li> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> if <code class="computeroutput"><span class="identifier">lhs</span></code> + and <code class="computeroutput"><span class="identifier">rhs</span></code> implement + the <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> model. + </li> +</ul></div> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a sequence containing + all the elements of <code class="computeroutput"><span class="identifier">lhs</span></code> + followed by all the elements of <code class="computeroutput"><span class="identifier">rhs</span></code>. + The order of the elements is preserved. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.join.h3"></a> + <span><a name="fusion.algorithm.transformation.functions.join.complexity"></a></span><a class="link" href="join.html#fusion.algorithm.transformation.functions.join.complexity">Complexity</a> + </h6> +<p> + Constant. Returns a view which is lazily evaluated. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.join.h4"></a> + <span><a name="fusion.algorithm.transformation.functions.join.header"></a></span><a class="link" href="join.html#fusion.algorithm.transformation.functions.join.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">join</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">join</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.transformation.functions.join.h5"></a> + <span><a name="fusion.algorithm.transformation.functions.join.example"></a></span><a class="link" href="join.html#fusion.algorithm.transformation.functions.join.example">Example</a> + </h6> +<pre class="programlisting"><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">char</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="char">'a'</span><span class="special">);</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">char</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="char">'b'</span><span class="special">);</span> +<span class="identifier">assert</span><span class="special">(</span><a class="link" href="join.html" title="join"><code class="computeroutput"><span class="identifier">join</span></code></a><span class="special">(</span><span class="identifier">v1</span><span class="special">,</span> <span class="identifier">v2</span><span class="special">)</span> <span class="special">==</span> <a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="char">'a'</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="char">'b'</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 © 2001-2006, 2011 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="insert_range.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="zip.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/functions/pop_back.html b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/pop_back.html new file mode 100755 index 0000000000..111248e906 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/pop_back.html @@ -0,0 +1,153 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>pop_back</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="zip.html" title="zip"> +<link rel="next" href="pop_front.html" title="pop_front"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="zip.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="pop_front.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.functions.pop_back"></a><a class="link" href="pop_back.html" title="pop_back">pop_back</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.functions.pop_back.h0"></a> + <span><a name="fusion.algorithm.transformation.functions.pop_back.description"></a></span><a class="link" href="pop_back.html#fusion.algorithm.transformation.functions.pop_back.description">Description</a> + </h6> +<p> + Returns a new sequence, with the last element of the original removed. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.pop_back.h1"></a> + <span><a name="fusion.algorithm.transformation.functions.pop_back.synopsis"></a></span><a class="link" href="pop_back.html#fusion.algorithm.transformation.functions.pop_back.synopsis">Synopsis</a> + </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 class="link" href="../metafunctions/pop_back.html" title="pop_back"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">pop_back</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">pop_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> +<div class="table"> +<a name="fusion.algorithm.transformation.functions.pop_back.t0"></a><p class="title"><b>Table 1.80. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr></tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.functions.pop_back.h2"></a> + <span><a name="fusion.algorithm.transformation.functions.pop_back.expression_semantics"></a></span><a class="link" href="pop_back.html#fusion.algorithm.transformation.functions.pop_back.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="pop_back.html" title="pop_back"><code class="computeroutput"><span class="identifier">pop_back</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </li> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> if <code class="computeroutput"><span class="identifier">seq</span></code> + implements the <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> model. + </li> +</ul></div> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence containing + all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>, + except the last element. The elements in the new sequence are in the + same order as they were in <code class="computeroutput"><span class="identifier">seq</span></code>. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.pop_back.h3"></a> + <span><a name="fusion.algorithm.transformation.functions.pop_back.complexity"></a></span><a class="link" href="pop_back.html#fusion.algorithm.transformation.functions.pop_back.complexity">Complexity</a> + </h6> +<p> + Constant. Returns a view which is lazily evaluated. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.pop_back.h4"></a> + <span><a name="fusion.algorithm.transformation.functions.pop_back.header"></a></span><a class="link" href="pop_back.html#fusion.algorithm.transformation.functions.pop_back.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">pop_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">pop_back</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.transformation.functions.pop_back.h5"></a> + <span><a name="fusion.algorithm.transformation.functions.pop_back.example"></a></span><a class="link" href="pop_back.html#fusion.algorithm.transformation.functions.pop_back.example">Example</a> + </h6> +<pre class="programlisting"><span class="identifier">assert</span><span class="special">(</span><span class="identifier">___pop_back__</span><span class="special">(</span><a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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="special">==</span> <a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</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 © 2001-2006, 2011 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="zip.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="pop_front.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/functions/pop_front.html b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/pop_front.html new file mode 100755 index 0000000000..eec92dc64a --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/pop_front.html @@ -0,0 +1,153 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>pop_front</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="pop_back.html" title="pop_back"> +<link rel="next" href="push_back.html" title="push_back"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="pop_back.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="push_back.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.functions.pop_front"></a><a class="link" href="pop_front.html" title="pop_front">pop_front</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.functions.pop_front.h0"></a> + <span><a name="fusion.algorithm.transformation.functions.pop_front.description"></a></span><a class="link" href="pop_front.html#fusion.algorithm.transformation.functions.pop_front.description">Description</a> + </h6> +<p> + Returns a new sequence, with the first element of the original removed. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.pop_front.h1"></a> + <span><a name="fusion.algorithm.transformation.functions.pop_front.synopsis"></a></span><a class="link" href="pop_front.html#fusion.algorithm.transformation.functions.pop_front.synopsis">Synopsis</a> + </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 class="link" href="../metafunctions/pop_front.html" title="pop_front"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">pop_front</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">pop_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> +<div class="table"> +<a name="fusion.algorithm.transformation.functions.pop_front.t0"></a><p class="title"><b>Table 1.81. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr></tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.functions.pop_front.h2"></a> + <span><a name="fusion.algorithm.transformation.functions.pop_front.expression_semantics"></a></span><a class="link" href="pop_front.html#fusion.algorithm.transformation.functions.pop_front.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="pop_front.html" title="pop_front"><code class="computeroutput"><span class="identifier">pop_front</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </li> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> if <code class="computeroutput"><span class="identifier">seq</span></code> + implements the <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> model. + </li> +</ul></div> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence containing + all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>, + except the first element. The elements in the new sequence are in the + same order as they were in <code class="computeroutput"><span class="identifier">seq</span></code>. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.pop_front.h3"></a> + <span><a name="fusion.algorithm.transformation.functions.pop_front.complexity"></a></span><a class="link" href="pop_front.html#fusion.algorithm.transformation.functions.pop_front.complexity">Complexity</a> + </h6> +<p> + Constant. Returns a view which is lazily evaluated. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.pop_front.h4"></a> + <span><a name="fusion.algorithm.transformation.functions.pop_front.header"></a></span><a class="link" href="pop_front.html#fusion.algorithm.transformation.functions.pop_front.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">pop_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">pop_front</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.transformation.functions.pop_front.h5"></a> + <span><a name="fusion.algorithm.transformation.functions.pop_front.example"></a></span><a class="link" href="pop_front.html#fusion.algorithm.transformation.functions.pop_front.example">Example</a> + </h6> +<pre class="programlisting"><span class="identifier">assert</span><span class="special">(</span><a class="link" href="pop_front.html" title="pop_front"><code class="computeroutput"><span class="identifier">pop_front</span></code></a><span class="special">(</span><a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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="special">==</span> <a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">2</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 © 2001-2006, 2011 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="pop_back.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="push_back.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/functions/push_back.html b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/push_back.html new file mode 100755 index 0000000000..f13303f0eb --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/push_back.html @@ -0,0 +1,166 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>push_back</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="pop_front.html" title="pop_front"> +<link rel="next" href="push_front.html" title="push_front"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="pop_front.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="push_front.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.functions.push_back"></a><a class="link" href="push_back.html" title="push_back">push_back</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.functions.push_back.h0"></a> + <span><a name="fusion.algorithm.transformation.functions.push_back.description"></a></span><a class="link" href="push_back.html#fusion.algorithm.transformation.functions.push_back.description">Description</a> + </h6> +<p> + Returns a new sequence with an element added at the end. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.push_back.h1"></a> + <span><a name="fusion.algorithm.transformation.functions.push_back.synopsis"></a></span><a class="link" href="push_back.html#fusion.algorithm.transformation.functions.push_back.synopsis">Synopsis</a> + </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> <span class="identifier">T</span> + <span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="../metafunctions/push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">push_back</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">push_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> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">t</span><span class="special">);</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.functions.push_back.t0"></a><p class="title"><b>Table 1.82. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">t</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + The value to add to the end + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.functions.push_back.h2"></a> + <span><a name="fusion.algorithm.transformation.functions.push_back.expression_semantics"></a></span><a class="link" href="push_back.html#fusion.algorithm.transformation.functions.push_back.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">push_back</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">t</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </li></ul></div> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing + all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>, + and new element <code class="computeroutput"><span class="identifier">t</span></code> appended + to the end. The elements are in the same order as they were in <code class="computeroutput"><span class="identifier">seq</span></code>. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.push_back.h3"></a> + <span><a name="fusion.algorithm.transformation.functions.push_back.complexity"></a></span><a class="link" href="push_back.html#fusion.algorithm.transformation.functions.push_back.complexity">Complexity</a> + </h6> +<p> + Constant. Returns a view which is lazily evaluated. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.push_back.h4"></a> + <span><a name="fusion.algorithm.transformation.functions.push_back.header"></a></span><a class="link" href="push_back.html#fusion.algorithm.transformation.functions.push_back.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">push_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">push_back</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.transformation.functions.push_back.h5"></a> + <span><a name="fusion.algorithm.transformation.functions.push_back.example"></a></span><a class="link" href="push_back.html#fusion.algorithm.transformation.functions.push_back.example">Example</a> + </h6> +<pre class="programlisting"><span class="identifier">assert</span><span class="special">(</span><a class="link" href="push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">push_back</span></code></a><span class="special">(</span><a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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="number">4</span><span class="special">)</span> <span class="special">==</span> <a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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="number">4</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 © 2001-2006, 2011 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="pop_front.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="push_front.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/functions/push_front.html b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/push_front.html new file mode 100755 index 0000000000..4babd83759 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/push_front.html @@ -0,0 +1,167 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>push_front</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="push_back.html" title="push_back"> +<link rel="next" href="../metafunctions.html" title="Metafunctions"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="push_back.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.functions.push_front"></a><a class="link" href="push_front.html" title="push_front">push_front</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.functions.push_front.h0"></a> + <span><a name="fusion.algorithm.transformation.functions.push_front.description"></a></span><a class="link" href="push_front.html#fusion.algorithm.transformation.functions.push_front.description">Description</a> + </h6> +<p> + Returns a new sequence with an element added at the beginning. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.push_front.h1"></a> + <span><a name="fusion.algorithm.transformation.functions.push_front.synopsis"></a></span><a class="link" href="push_front.html#fusion.algorithm.transformation.functions.push_front.synopsis">Synopsis</a> + </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> <span class="identifier">T</span> + <span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="../metafunctions/push_front.html" title="push_front"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">push_front</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">push_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> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">t</span><span class="special">);</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.functions.push_front.t0"></a><p class="title"><b>Table 1.83. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">t</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + The value to add to the beginning + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.functions.push_front.h2"></a> + <span><a name="fusion.algorithm.transformation.functions.push_front.expression_semantics"></a></span><a class="link" href="push_front.html#fusion.algorithm.transformation.functions.push_front.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">push_back</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">t</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </li></ul></div> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing + all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>, + and new element <code class="computeroutput"><span class="identifier">t</span></code> appended + to the beginning. The elements are in the same order as they were in + <code class="computeroutput"><span class="identifier">seq</span></code>. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.push_front.h3"></a> + <span><a name="fusion.algorithm.transformation.functions.push_front.complexity"></a></span><a class="link" href="push_front.html#fusion.algorithm.transformation.functions.push_front.complexity">Complexity</a> + </h6> +<p> + Constant. Returns a view which is lazily evaluated. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.push_front.h4"></a> + <span><a name="fusion.algorithm.transformation.functions.push_front.header"></a></span><a class="link" href="push_front.html#fusion.algorithm.transformation.functions.push_front.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">push_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">push_front</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.transformation.functions.push_front.h5"></a> + <span><a name="fusion.algorithm.transformation.functions.push_front.example"></a></span><a class="link" href="push_front.html#fusion.algorithm.transformation.functions.push_front.example">Example</a> + </h6> +<pre class="programlisting"><span class="identifier">assert</span><span class="special">(</span><a class="link" href="push_front.html" title="push_front"><code class="computeroutput"><span class="identifier">push_front</span></code></a><span class="special">(</span><a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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="number">0</span><span class="special">)</span> <span class="special">==</span> <a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">0</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> +</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 © 2001-2006, 2011 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="push_back.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/functions/remove.html b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/remove.html new file mode 100755 index 0000000000..578d7ec22f --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/remove.html @@ -0,0 +1,175 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>remove</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="replace_if.html" title="replace_if"> +<link rel="next" href="remove_if.html" title="remove_if"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="replace_if.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="remove_if.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.functions.remove"></a><a class="link" href="remove.html" title="remove">remove</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.functions.remove.h0"></a> + <span><a name="fusion.algorithm.transformation.functions.remove.description"></a></span><a class="link" href="remove.html#fusion.algorithm.transformation.functions.remove.description">Description</a> + </h6> +<p> + Returns a new sequence, with all the elements of the original sequence, + except those of a given type. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.remove.h1"></a> + <span><a name="fusion.algorithm.transformation.functions.remove.synopsis"></a></span><a class="link" href="remove.html#fusion.algorithm.transformation.functions.remove.synopsis">Synopsis</a> + </h6> +<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span> + <span class="keyword">typename</span> <span class="identifier">T</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 class="link" href="../metafunctions/remove.html" title="remove"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">remove</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">T</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">replace</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> +<div class="table"> +<a name="fusion.algorithm.transformation.functions.remove.t0"></a><p class="title"><b>Table 1.70. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">T</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + Type to remove + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.functions.remove.h2"></a> + <span><a name="fusion.algorithm.transformation.functions.remove.expression_semantics"></a></span><a class="link" href="remove.html#fusion.algorithm.transformation.functions.remove.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="remove.html" title="remove"><code class="computeroutput"><span class="identifier">remove</span></code></a><span class="special"><</span><span class="identifier">T</span><span class="special">>(</span><span class="identifier">seq</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </li> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> if <code class="computeroutput"><span class="identifier">Sequence</span></code> + implements the <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> model. + </li> +</ul></div> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing + all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>, + in their original order, except those of type <code class="computeroutput"><span class="identifier">T</span></code>. + Equivalent to <code class="computeroutput"><a class="link" href="remove_if.html" title="remove_if"><code class="computeroutput"><span class="identifier">remove_if</span></code></a><span class="special"><</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special"><</span><span class="identifier">_</span><span class="special">,</span><span class="identifier">T</span><span class="special">></span> <span class="special">>(</span><span class="identifier">seq</span><span class="special">)</span></code>. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.remove.h3"></a> + <span><a name="fusion.algorithm.transformation.functions.remove.complexity"></a></span><a class="link" href="remove.html#fusion.algorithm.transformation.functions.remove.complexity">Complexity</a> + </h6> +<p> + Constant. Returns a view which is lazily evaluated. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.remove.h4"></a> + <span><a name="fusion.algorithm.transformation.functions.remove.header"></a></span><a class="link" href="remove.html#fusion.algorithm.transformation.functions.remove.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">remove</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">remove</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.transformation.functions.remove.h5"></a> + <span><a name="fusion.algorithm.transformation.functions.remove.example"></a></span><a class="link" href="remove.html#fusion.algorithm.transformation.functions.remove.example">Example</a> + </h6> +<pre class="programlisting"><span class="keyword">const</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">double</span><span class="special">></span> <span class="identifier">vec</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2.0</span><span class="special">);</span> +<span class="identifier">assert</span><span class="special">(</span><a class="link" href="remove.html" title="remove"><code class="computeroutput"><span class="identifier">remove</span></code></a><span class="special"><</span><span class="keyword">double</span><span class="special">>(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</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 © 2001-2006, 2011 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="replace_if.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="remove_if.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/functions/remove_if.html b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/remove_if.html new file mode 100755 index 0000000000..ed15b451fd --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/remove_if.html @@ -0,0 +1,177 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>remove_if</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="remove.html" title="remove"> +<link rel="next" href="reverse.html" title="reverse"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="remove.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="reverse.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.functions.remove_if"></a><a class="link" href="remove_if.html" title="remove_if">remove_if</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.functions.remove_if.h0"></a> + <span><a name="fusion.algorithm.transformation.functions.remove_if.description"></a></span><a class="link" href="remove_if.html#fusion.algorithm.transformation.functions.remove_if.description">Description</a> + </h6> +<p> + Returns a new sequence, containing all the elements of the original except + those where a given unary function object evaluates to <code class="computeroutput"><span class="keyword">true</span></code>. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.remove_if.h1"></a> + <span><a name="fusion.algorithm.transformation.functions.remove_if.synopsis"></a></span><a class="link" href="remove_if.html#fusion.algorithm.transformation.functions.remove_if.synopsis">Synopsis</a> + </h6> +<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span> + <span class="keyword">typename</span> <span class="identifier">Pred</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 class="link" href="../metafunctions/remove_if.html" title="remove_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">remove_if</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">remove_if</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> +<div class="table"> +<a name="fusion.algorithm.transformation.functions.remove_if.t0"></a><p class="title"><b>Table 1.71. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">Pred</span></code> + </p> + </td> +<td> + <p> + A model of unary <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL + Lambda Expression</a> + </p> + </td> +<td> + <p> + Removal predicate + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.functions.remove_if.h2"></a> + <span><a name="fusion.algorithm.transformation.functions.remove_if.expression_semantics"></a></span><a class="link" href="remove_if.html#fusion.algorithm.transformation.functions.remove_if.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="remove_if.html" title="remove_if"><code class="computeroutput"><span class="identifier">remove_if</span></code></a><span class="special"><</span><span class="identifier">Pred</span><span class="special">>(</span><span class="identifier">seq</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </li> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> if <code class="computeroutput"><span class="identifier">seq</span></code> + implements the <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> model. + </li> +</ul></div> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing + all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>, + in their original order, except those elements with types for which + <code class="computeroutput"><span class="identifier">Pred</span></code> evaluates to <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code>. Equivalent to <code class="computeroutput"><a class="link" href="filter.html" title="filter"><code class="computeroutput"><span class="identifier">filter</span></code></a><span class="special"><</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">not_</span><span class="special"><</span><span class="identifier">Pred</span><span class="special">></span> + <span class="special">>(</span><span class="identifier">seq</span><span class="special">)</span></code>. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.remove_if.h3"></a> + <span><a name="fusion.algorithm.transformation.functions.remove_if.complexity"></a></span><a class="link" href="remove_if.html#fusion.algorithm.transformation.functions.remove_if.complexity">Complexity</a> + </h6> +<p> + Constant. Returns a view which is lazily evaluated. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.remove_if.h4"></a> + <span><a name="fusion.algorithm.transformation.functions.remove_if.header"></a></span><a class="link" href="remove_if.html#fusion.algorithm.transformation.functions.remove_if.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">remove_if</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">remove_if</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.transformation.functions.remove_if.h5"></a> + <span><a name="fusion.algorithm.transformation.functions.remove_if.example"></a></span><a class="link" href="remove_if.html#fusion.algorithm.transformation.functions.remove_if.example">Example</a> + </h6> +<pre class="programlisting"><span class="keyword">const</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">double</span><span class="special">></span> <span class="identifier">vec</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2.0</span><span class="special">);</span> +<span class="identifier">assert</span><span class="special">(</span><a class="link" href="remove_if.html" title="remove_if"><code class="computeroutput"><span class="identifier">remove_if</span></code></a><span class="special"><</span><span class="identifier">is_floating_point</span><span class="special"><</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">></span> <span class="special">>(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</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 © 2001-2006, 2011 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="remove.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="reverse.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/functions/replace.html b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/replace.html new file mode 100755 index 0000000000..7697cd8faa --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/replace.html @@ -0,0 +1,186 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>replace</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="transform.html" title="transform"> +<link rel="next" href="replace_if.html" title="replace_if"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="transform.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="replace_if.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.functions.replace"></a><a class="link" href="replace.html" title="replace">replace</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.functions.replace.h0"></a> + <span><a name="fusion.algorithm.transformation.functions.replace.description"></a></span><a class="link" href="replace.html#fusion.algorithm.transformation.functions.replace.description">Description</a> + </h6> +<p> + Replaces each value within a sequence of a given type and value with + a new value. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.replace.h1"></a> + <span><a name="fusion.algorithm.transformation.functions.replace.synopsis"></a></span><a class="link" href="replace.html#fusion.algorithm.transformation.functions.replace.synopsis">Synopsis</a> + </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> <span class="identifier">T</span> + <span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="../metafunctions/replace.html" title="replace"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">replace</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">T</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">replace</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> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">old_value</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">new_value</span><span class="special">);</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.functions.replace.t0"></a><p class="title"><b>Table 1.68. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>, <code class="computeroutput"><span class="identifier">e</span> + <span class="special">==</span> <span class="identifier">old_value</span></code> + is a valid expression, convertible to <code class="computeroutput"><span class="keyword">bool</span></code>, + for each element <code class="computeroutput"><span class="identifier">e</span></code> + in <code class="computeroutput"><span class="identifier">seq</span></code> with + type convertible to <code class="computeroutput"><span class="identifier">T</span></code> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">old_value</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + Value to replace + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">new_value</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + Replacement value + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.functions.replace.h2"></a> + <span><a name="fusion.algorithm.transformation.functions.replace.expression_semantics"></a></span><a class="link" href="replace.html#fusion.algorithm.transformation.functions.replace.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="replace.html" title="replace"><code class="computeroutput"><span class="identifier">replace</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">old_value</span><span class="special">,</span> <span class="identifier">new_value</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence with + all the values of <code class="computeroutput"><span class="identifier">seq</span></code> + with <code class="computeroutput"><span class="identifier">new_value</span></code> assigned + to elements with the same type and equal to <code class="computeroutput"><span class="identifier">old_value</span></code>. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.replace.h3"></a> + <span><a name="fusion.algorithm.transformation.functions.replace.complexity"></a></span><a class="link" href="replace.html#fusion.algorithm.transformation.functions.replace.complexity">Complexity</a> + </h6> +<p> + Constant. Returns a view which is lazily evaluated. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.replace.h4"></a> + <span><a name="fusion.algorithm.transformation.functions.replace.header"></a></span><a class="link" href="replace.html#fusion.algorithm.transformation.functions.replace.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">replace</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">replace</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.transformation.functions.replace.h5"></a> + <span><a name="fusion.algorithm.transformation.functions.replace.example"></a></span><a class="link" href="replace.html#fusion.algorithm.transformation.functions.replace.example">Example</a> + </h6> +<pre class="programlisting"><span class="identifier">assert</span><span class="special">(</span><a class="link" href="replace.html" title="replace"><code class="computeroutput"><span class="identifier">replace</span></code></a><span class="special">(</span><a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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">2</span><span class="special">,</span> <span class="number">3</span><span class="special">)</span> <span class="special">==</span> <a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</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 © 2001-2006, 2011 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="transform.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="replace_if.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/functions/replace_if.html b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/replace_if.html new file mode 100755 index 0000000000..f6f28441e6 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/replace_if.html @@ -0,0 +1,195 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>replace_if</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="replace.html" title="replace"> +<link rel="next" href="remove.html" title="remove"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="replace.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="remove.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.functions.replace_if"></a><a class="link" href="replace_if.html" title="replace_if">replace_if</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.functions.replace_if.h0"></a> + <span><a name="fusion.algorithm.transformation.functions.replace_if.description"></a></span><a class="link" href="replace_if.html#fusion.algorithm.transformation.functions.replace_if.description">Description</a> + </h6> +<p> + Replaces each element of a given sequence for which an unary function + object evaluates to <code class="computeroutput"><span class="keyword">true</span></code> + replaced with a new value. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.replace_if.h1"></a> + <span><a name="fusion.algorithm.transformation.functions.replace_if.synopsis"></a></span><a class="link" href="replace_if.html#fusion.algorithm.transformation.functions.replace_if.synopsis">Synopsis</a> + </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> <span class="identifier">F</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">T</span><span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="../metafunctions/replace_if.html" title="replace_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">replace_if</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">,</span> <span class="identifier">T</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">replace_if</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> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">new_value</span><span class="special">);</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.functions.replace_if.t0"></a><p class="title"><b>Table 1.69. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">f</span></code> + </p> + </td> +<td> + <p> + A function object for which <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> is a valid expression, convertible + to <code class="computeroutput"><span class="keyword">bool</span></code>, for each + element <code class="computeroutput"><span class="identifier">e</span></code> in + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">new_value</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + Replacement value + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.functions.replace_if.h2"></a> + <span><a name="fusion.algorithm.transformation.functions.replace_if.expression_semantics"></a></span><a class="link" href="replace_if.html#fusion.algorithm.transformation.functions.replace_if.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="replace_if.html" title="replace_if"><code class="computeroutput"><span class="identifier">replace_if</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">,</span> <span class="identifier">new_value</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence with + all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>, + with <code class="computeroutput"><span class="identifier">new_value</span></code> assigned + to each element for which <code class="computeroutput"><span class="identifier">f</span></code> + evaluates to <code class="computeroutput"><span class="keyword">true</span></code>. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.replace_if.h3"></a> + <span><a name="fusion.algorithm.transformation.functions.replace_if.complexity"></a></span><a class="link" href="replace_if.html#fusion.algorithm.transformation.functions.replace_if.complexity">Complexity</a> + </h6> +<p> + Constant. Returns a view which is lazily evaluated. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.replace_if.h4"></a> + <span><a name="fusion.algorithm.transformation.functions.replace_if.header"></a></span><a class="link" href="replace_if.html#fusion.algorithm.transformation.functions.replace_if.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">replace_if</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">replace_if</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.transformation.functions.replace_if.h5"></a> + <span><a name="fusion.algorithm.transformation.functions.replace_if.example"></a></span><a class="link" href="replace_if.html#fusion.algorithm.transformation.functions.replace_if.example">Example</a> + </h6> +<pre class="programlisting"><span class="keyword">struct</span> <span class="identifier">odd</span> +<span class="special">{</span> + <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">T</span><span class="special">></span> + <span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">()(</span><span class="identifier">T</span> <span class="identifier">t</span><span class="special">)</span> <span class="keyword">const</span> + <span class="special">{</span> + <span class="keyword">return</span> <span class="identifier">t</span> <span class="special">%</span> <span class="number">2</span><span class="special">;</span> + <span class="special">}</span> +<span class="special">};</span> +<span class="special">...</span> +<span class="identifier">assert</span><span class="special">(</span><a class="link" href="replace_if.html" title="replace_if"><code class="computeroutput"><span class="identifier">replace_if</span></code></a><span class="special">(</span><a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">),</span> <span class="identifier">odd</span><span class="special">(),</span> <span class="number">3</span><span class="special">)</span> <span class="special">==</span> <a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">3</span><span class="special">,</span><span class="number">2</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 © 2001-2006, 2011 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="replace.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="remove.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/functions/reverse.html b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/reverse.html new file mode 100755 index 0000000000..6c8a82eb59 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/reverse.html @@ -0,0 +1,157 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>reverse</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="remove_if.html" title="remove_if"> +<link rel="next" href="clear.html" title="clear"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="remove_if.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="clear.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.functions.reverse"></a><a class="link" href="reverse.html" title="reverse">reverse</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.functions.reverse.h0"></a> + <span><a name="fusion.algorithm.transformation.functions.reverse.description"></a></span><a class="link" href="reverse.html#fusion.algorithm.transformation.functions.reverse.description">Description</a> + </h6> +<p> + Returns a new sequence with the elements of the original in reverse order. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.reverse.h1"></a> + <span><a name="fusion.algorithm.transformation.functions.reverse.synposis"></a></span><a class="link" href="reverse.html#fusion.algorithm.transformation.functions.reverse.synposis">Synposis</a> + </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 class="link" href="../metafunctions/reverse.html" title="reverse"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">reverse</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">reverse</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> +<div class="table"> +<a name="fusion.algorithm.transformation.functions.reverse.t0"></a><p class="title"><b>Table 1.72. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/bidirectional_sequence.html" title="Bidirectional Sequence">Bidirectional + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr></tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.functions.reverse.h2"></a> + <span><a name="fusion.algorithm.transformation.functions.reverse.expression_semantics"></a></span><a class="link" href="reverse.html#fusion.algorithm.transformation.functions.reverse.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="reverse.html" title="reverse"><code class="computeroutput"><span class="identifier">reverse</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/bidirectional_sequence.html" title="Bidirectional Sequence">Bidirectional + Sequence</a> if <code class="computeroutput"><span class="identifier">seq</span></code> + is a <a class="link" href="../../../sequence/concepts/bidirectional_sequence.html" title="Bidirectional Sequence">Bidirectional + Sequence</a> else, <a class="link" href="../../../sequence/concepts/random_access_sequence.html" title="Random Access Sequence">Random + Access Sequence</a> if <code class="computeroutput"><span class="identifier">seq</span></code> + is a <a class="link" href="../../../sequence/concepts/random_access_sequence.html" title="Random Access Sequence">Random + Access Sequence</a>. + </li> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> if <code class="computeroutput"><span class="identifier">seq</span></code> + implements the <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> model. + </li> +</ul></div> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence containing + all the elements of <code class="computeroutput"><span class="identifier">seq</span></code> + in reverse order. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.reverse.h3"></a> + <span><a name="fusion.algorithm.transformation.functions.reverse.complexity"></a></span><a class="link" href="reverse.html#fusion.algorithm.transformation.functions.reverse.complexity">Complexity</a> + </h6> +<p> + Constant. Returns a view which is lazily evaluated. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.reverse.h4"></a> + <span><a name="fusion.algorithm.transformation.functions.reverse.header"></a></span><a class="link" href="reverse.html#fusion.algorithm.transformation.functions.reverse.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">reverse</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">reverse</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.transformation.functions.reverse.h5"></a> + <span><a name="fusion.algorithm.transformation.functions.reverse.example"></a></span><a class="link" href="reverse.html#fusion.algorithm.transformation.functions.reverse.example">Example</a> + </h6> +<pre class="programlisting"><span class="identifier">assert</span><span class="special">(</span><a class="link" href="reverse.html" title="reverse"><code class="computeroutput"><span class="identifier">reverse</span></code></a><span class="special">(</span><a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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="special">==</span> <a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">3</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="number">1</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 © 2001-2006, 2011 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="remove_if.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="clear.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/functions/transform.html b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/transform.html new file mode 100755 index 0000000000..86dd47f52b --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/transform.html @@ -0,0 +1,291 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>transform</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="filter_if.html" title="filter_if"> +<link rel="next" href="replace.html" title="replace"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="filter_if.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="replace.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.functions.transform"></a><a class="link" href="transform.html" title="transform">transform</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.functions.transform.h0"></a> + <span><a name="fusion.algorithm.transformation.functions.transform.description"></a></span><a class="link" href="transform.html#fusion.algorithm.transformation.functions.transform.description">Description</a> + </h6> +<p> + For a sequence <code class="computeroutput"><span class="identifier">seq</span></code> and + function object or function pointer <code class="computeroutput"><span class="identifier">f</span></code>, + <code class="computeroutput"><span class="identifier">transform</span></code> returns a new + sequence with elements created by applying <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> to each element of <code class="computeroutput"><span class="identifier">e</span></code> + of <code class="computeroutput"><span class="identifier">seq</span></code>. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.transform.h1"></a> + <span><a name="fusion.algorithm.transformation.functions.transform.unary_version_synopsis"></a></span><a class="link" href="transform.html#fusion.algorithm.transformation.functions.transform.unary_version_synopsis">Unary + version synopsis</a> + </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> <span class="identifier">F</span> + <span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="../metafunctions/transform.html" title="transform"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">transform</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">transform</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> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.functions.transform.t0"></a><p class="title"><b>Table 1.66. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">f</span></code> + </p> + </td> +<td> + <p> + <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> + is a valid expression for each element <code class="computeroutput"><span class="identifier">e</span></code> + of <code class="computeroutput"><span class="identifier">seq</span></code>. <code class="computeroutput"><a href="http://www.boost.org/libs/utility/utility.htm#result_of" target="_top"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">result_of</span></code></a><span class="special"><</span><span class="identifier">F</span><span class="special">(</span><span class="identifier">E</span><span class="special">)>::</span><span class="identifier">type</span></code> + is the return type of <code class="computeroutput"><span class="identifier">f</span></code> + when called with a value of each element type <code class="computeroutput"><span class="identifier">E</span></code>. + </p> + </td> +<td> + <p> + Transformation function + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.functions.transform.h2"></a> + <span><a name="fusion.algorithm.transformation.functions.transform.expression_semantics"></a></span><a class="link" href="transform.html#fusion.algorithm.transformation.functions.transform.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="transform.html" title="transform"><code class="computeroutput"><span class="identifier">transform</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing + the return values of <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> for each element <code class="computeroutput"><span class="identifier">e</span></code> + within <code class="computeroutput"><span class="identifier">seq</span></code>. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.transform.h3"></a> + <span><a name="fusion.algorithm.transformation.functions.transform.binary_version_synopsis"></a></span><a class="link" href="transform.html#fusion.algorithm.transformation.functions.transform.binary_version_synopsis">Binary + version synopsis</a> + </h6> +<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span> + <span class="keyword">typename</span> <span class="identifier">Sequence1</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">Sequence2</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">F</span> + <span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="../metafunctions/transform.html" title="transform"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">transform</span></code></a><span class="special"><</span><span class="identifier">Sequence1</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Sequence2</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">transform</span><span class="special">(</span> + <span class="identifier">Sequence1</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq1</span><span class="special">,</span> <span class="identifier">Sequence2</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq2</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.functions.transform.t1"></a><p class="title"><b>Table 1.67. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq1</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">seq2</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">f</span></code> + </p> + </td> +<td> + <p> + <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e1</span><span class="special">,</span><span class="identifier">e2</span><span class="special">)</span></code> + is a valid expression for each pair of elements <code class="computeroutput"><span class="identifier">e1</span></code> of <code class="computeroutput"><span class="identifier">seq1</span></code> + and <code class="computeroutput"><span class="identifier">e2</span></code> of + <code class="computeroutput"><span class="identifier">seq2</span></code>. <code class="computeroutput"><a href="http://www.boost.org/libs/utility/utility.htm#result_of" target="_top"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">result_of</span></code></a><span class="special"><</span><span class="identifier">F</span><span class="special">(</span><span class="identifier">E1</span><span class="special">,</span><span class="identifier">E2</span><span class="special">)>::</span><span class="identifier">type</span></code> + is the return type of <code class="computeroutput"><span class="identifier">f</span></code> + when called with elements of type <code class="computeroutput"><span class="identifier">E1</span></code> + and <code class="computeroutput"><span class="identifier">E2</span></code> + </p> + </td> +<td> + <p> + Transformation function + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><p> + <span class="bold"><strong>Return type</strong></span>: A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing + the return values of <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e1</span><span class="special">,</span> <span class="identifier">e2</span><span class="special">)</span></code> for each pair of elements <code class="computeroutput"><span class="identifier">e1</span></code> and <code class="computeroutput"><span class="identifier">e2</span></code> + within <code class="computeroutput"><span class="identifier">seq1</span></code> and <code class="computeroutput"><span class="identifier">seq2</span></code> respectively. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.transform.h4"></a> + <span><a name="fusion.algorithm.transformation.functions.transform.complexity"></a></span><a class="link" href="transform.html#fusion.algorithm.transformation.functions.transform.complexity">Complexity</a> + </h6> +<p> + Constant. Returns a view which is lazily evaluated. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.transform.h5"></a> + <span><a name="fusion.algorithm.transformation.functions.transform.header"></a></span><a class="link" href="transform.html#fusion.algorithm.transformation.functions.transform.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">transform</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">transform</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.transformation.functions.transform.h6"></a> + <span><a name="fusion.algorithm.transformation.functions.transform.example"></a></span><a class="link" href="transform.html#fusion.algorithm.transformation.functions.transform.example">Example</a> + </h6> +<pre class="programlisting"><span class="keyword">struct</span> <span class="identifier">triple</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="keyword">int</span> <span class="identifier">result_type</span><span class="special">;</span> + + <span class="keyword">int</span> <span class="keyword">operator</span><span class="special">()(</span><span class="keyword">int</span> <span class="identifier">t</span><span class="special">)</span> <span class="keyword">const</span> + <span class="special">{</span> + <span class="keyword">return</span> <span class="identifier">t</span> <span class="special">*</span> <span class="number">3</span><span class="special">;</span> + <span class="special">};</span> +<span class="special">};</span> +<span class="special">...</span> +<span class="identifier">assert</span><span class="special">(</span><a class="link" href="transform.html" title="transform"><code class="computeroutput"><span class="identifier">transform</span></code></a><span class="special">(</span><a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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">triple</span><span class="special">())</span> <span class="special">==</span> <a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">3</span><span class="special">,</span><span class="number">6</span><span class="special">,</span><span class="number">9</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 © 2001-2006, 2011 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="filter_if.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="replace.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/functions/zip.html b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/zip.html new file mode 100755 index 0000000000..7b22079428 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/functions/zip.html @@ -0,0 +1,153 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>zip</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../functions.html" title="Functions"> +<link rel="prev" href="join.html" title="join"> +<link rel="next" href="pop_back.html" title="pop_back"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="join.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="pop_back.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.functions.zip"></a><a class="link" href="zip.html" title="zip">zip</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.functions.zip.h0"></a> + <span><a name="fusion.algorithm.transformation.functions.zip.description"></a></span><a class="link" href="zip.html#fusion.algorithm.transformation.functions.zip.description">Description</a> + </h6> +<p> + Zips sequences together to form a single sequence, whos members are tuples + of the members of the component sequences. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.zip.h1"></a> + <span><a name="fusion.algorithm.transformation.functions.zip.synopsis"></a></span><a class="link" href="zip.html#fusion.algorithm.transformation.functions.zip.synopsis">Synopsis</a> + </h6> +<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span> + <span class="keyword">typename</span> <span class="identifier">Sequence1</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">Sequence2</span><span class="special">,</span> + <span class="special">...</span> + <span class="keyword">typename</span> <span class="identifier">SequenceN</span> + <span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="../metafunctions/zip.html" title="zip"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">zip</span></code></a><span class="special"><</span><span class="identifier">Sequence1</span><span class="special">,</span> <span class="identifier">Sequence2</span><span class="special">,</span> <span class="special">...</span> <span class="identifier">SequenceN</span><span class="special">>::</span><span class="identifier">type</span> +<span class="identifier">zip</span><span class="special">(</span><span class="identifier">Sequence1</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq1</span><span class="special">,</span> <span class="identifier">Sequence2</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq2</span><span class="special">,</span> <span class="special">...</span> <span class="identifier">SequenceN</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seqN</span><span class="special">);</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.functions.zip.t0"></a><p class="title"><b>Table 1.79. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq1</span></code> to <code class="computeroutput"><span class="identifier">seqN</span></code> + </p> + </td> +<td> + <p> + Each sequence is a model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr></tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.functions.zip.h2"></a> + <span><a name="fusion.algorithm.transformation.functions.zip.expression_semantics"></a></span><a class="link" href="zip.html#fusion.algorithm.transformation.functions.zip.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="zip.html" title="zip"><code class="computeroutput"><span class="identifier">zip</span></code></a><span class="special">(</span><span class="identifier">seq1</span><span class="special">,</span> <span class="identifier">seq2</span><span class="special">,</span> <span class="special">...</span> <span class="identifier">seqN</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a sequence containing + tuples of elements from sequences <code class="computeroutput"><span class="identifier">seq1</span></code> + to <code class="computeroutput"><span class="identifier">seqN</span></code>. For example, + applying zip to tuples <code class="computeroutput"><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></code> + and <code class="computeroutput"><span class="special">(</span><span class="char">'a'</span><span class="special">,</span> <span class="char">'b'</span><span class="special">,</span> + <span class="char">'c'</span><span class="special">)</span></code> + would return <code class="computeroutput"><span class="special">((</span><span class="number">1</span><span class="special">,</span> <span class="char">'a'</span><span class="special">),(</span><span class="number">2</span><span class="special">,</span> <span class="char">'b'</span><span class="special">),(</span><span class="number">3</span><span class="special">,</span> + <span class="char">'c'</span><span class="special">))</span></code> + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.zip.h3"></a> + <span><a name="fusion.algorithm.transformation.functions.zip.complexity"></a></span><a class="link" href="zip.html#fusion.algorithm.transformation.functions.zip.complexity">Complexity</a> + </h6> +<p> + Constant. Returns a view which is lazily evaluated. + </p> +<h6> +<a name="fusion.algorithm.transformation.functions.zip.h4"></a> + <span><a name="fusion.algorithm.transformation.functions.zip.header"></a></span><a class="link" href="zip.html#fusion.algorithm.transformation.functions.zip.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">zip</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">zip</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.transformation.functions.zip.h5"></a> + <span><a name="fusion.algorithm.transformation.functions.zip.example"></a></span><a class="link" href="zip.html#fusion.algorithm.transformation.functions.zip.example">Example</a> + </h6> +<pre class="programlisting"><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">char</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="char">'a'</span><span class="special">);</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">char</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="char">'b'</span><span class="special">);</span> +<span class="identifier">assert</span><span class="special">(</span><a class="link" href="zip.html" title="zip"><code class="computeroutput"><span class="identifier">zip</span></code></a><span class="special">(</span><span class="identifier">v1</span><span class="special">,</span> <span class="identifier">v2</span><span class="special">)</span> <span class="special">==</span> <a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">),</span><a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="char">'a'</span><span class="special">,</span> <span class="char">'b'</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 © 2001-2006, 2011 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="join.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="pop_back.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions.html b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions.html new file mode 100755 index 0000000000..edeb5d42d8 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions.html @@ -0,0 +1,65 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>Metafunctions</title> +<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../transformation.html" title="Transformation"> +<link rel="prev" href="functions/push_front.html" title="push_front"> +<link rel="next" href="metafunctions/filter.html" title="filter"> +</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> +<td align="center"><a href="../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="functions/push_front.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../transformation.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="metafunctions/filter.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h4 class="title"> +<a name="fusion.algorithm.transformation.metafunctions"></a><a class="link" href="metafunctions.html" title="Metafunctions">Metafunctions</a> +</h4></div></div></div> +<div class="toc"><dl> +<dt><span class="section"><a href="metafunctions/filter.html">filter</a></span></dt> +<dt><span class="section"><a href="metafunctions/filter_if.html">filter_if</a></span></dt> +<dt><span class="section"><a href="metafunctions/transform.html">transform</a></span></dt> +<dt><span class="section"><a href="metafunctions/replace.html">replace</a></span></dt> +<dt><span class="section"><a href="metafunctions/replace_if.html">replace_if</a></span></dt> +<dt><span class="section"><a href="metafunctions/remove.html">remove</a></span></dt> +<dt><span class="section"><a href="metafunctions/remove_if.html">remove_if</a></span></dt> +<dt><span class="section"><a href="metafunctions/reverse.html">reverse</a></span></dt> +<dt><span class="section"><a href="metafunctions/clear.html">clear</a></span></dt> +<dt><span class="section"><a href="metafunctions/erase.html">erase</a></span></dt> +<dt><span class="section"><a href="metafunctions/erase_key.html">erase_key</a></span></dt> +<dt><span class="section"><a href="metafunctions/insert.html">insert</a></span></dt> +<dt><span class="section"><a href="metafunctions/insert_range.html">insert_range</a></span></dt> +<dt><span class="section"><a href="metafunctions/join.html">join</a></span></dt> +<dt><span class="section"><a href="metafunctions/zip.html">zip</a></span></dt> +<dt><span class="section"><a href="metafunctions/pop_back.html">pop_back</a></span></dt> +<dt><span class="section"><a href="metafunctions/pop_front.html">pop_front</a></span></dt> +<dt><span class="section"><a href="metafunctions/push_back.html">push_back</a></span></dt> +<dt><span class="section"><a href="metafunctions/push_front.html">push_front</a></span></dt> +</dl></div> +</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-2006, 2011 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="functions/push_front.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../transformation.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="metafunctions/filter.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/clear.html b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/clear.html new file mode 100755 index 0000000000..0c386813a7 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/clear.html @@ -0,0 +1,136 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>clear</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="reverse.html" title="reverse"> +<link rel="next" href="erase.html" title="erase"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="reverse.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="erase.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.metafunctions.clear"></a><a class="link" href="clear.html" title="clear">clear</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.clear.h0"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.clear.description"></a></span><a class="link" href="clear.html#fusion.algorithm.transformation.metafunctions.clear.description">Description</a> + </h6> +<p> + Returns the result type of <a class="link" href="../functions/clear.html" title="clear"><code class="computeroutput"><span class="identifier">clear</span></code></a>, given the input sequence + type. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.clear.h1"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.clear.synopsis"></a></span><a class="link" href="clear.html#fusion.algorithm.transformation.metafunctions.clear.synopsis">Synopsis</a> + </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">struct</span> <span class="identifier">clear</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.metafunctions.clear.t0"></a><p class="title"><b>Table 1.93. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr></tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.metafunctions.clear.h2"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.clear.expression_semantics"></a></span><a class="link" href="clear.html#fusion.algorithm.transformation.metafunctions.clear.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="clear.html" title="clear"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">clear</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns an empty sequence. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.clear.h3"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.clear.complexity"></a></span><a class="link" href="clear.html#fusion.algorithm.transformation.metafunctions.clear.complexity">Complexity</a> + </h6> +<p> + Constant. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.clear.h4"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.clear.header"></a></span><a class="link" href="clear.html#fusion.algorithm.transformation.metafunctions.clear.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">clear</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">clear</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="reverse.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="erase.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/erase.html b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/erase.html new file mode 100755 index 0000000000..7331e4f93f --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/erase.html @@ -0,0 +1,199 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>erase</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="clear.html" title="clear"> +<link rel="next" href="erase_key.html" title="erase_key"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="clear.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="erase_key.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.metafunctions.erase"></a><a class="link" href="erase.html" title="erase">erase</a> +</h5></div></div></div> +<p> + Returns the result type of <a class="link" href="../functions/erase.html" title="erase"><code class="computeroutput"><span class="identifier">erase</span></code></a>, given the input sequence + and range delimiting iterator types. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.erase.h0"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.erase.description"></a></span><a class="link" href="erase.html#fusion.algorithm.transformation.metafunctions.erase.description">Description</a> + </h6> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.erase.h1"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.erase.synopsis"></a></span><a class="link" href="erase.html#fusion.algorithm.transformation.metafunctions.erase.synopsis">Synopsis</a> + </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> <span class="identifier">It1</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">It2</span> <span class="special">=</span> <span class="emphasis"><em>unspecified</em></span><span class="special">></span> +<span class="keyword">struct</span> <span class="identifier">erase</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.metafunctions.erase.t0"></a><p class="title"><b>Table 1.94. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">It1</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../iterator/concepts/forward_iterator.html" title="Forward Iterator">Forward + Iterator</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">It2</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../iterator/concepts/forward_iterator.html" title="Forward Iterator">Forward + Iterator</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.metafunctions.erase.h2"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.erase.expression_semantics"></a></span><a class="link" href="erase.html#fusion.algorithm.transformation.metafunctions.erase.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="erase.html" title="erase"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">It1</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </li> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> if <code class="computeroutput"><span class="identifier">Sequence</span></code> + implements the <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> model. + </li> +</ul></div> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence with + the element at <code class="computeroutput"><span class="identifier">It1</span></code> removed. + </p> +<pre class="programlisting"><a class="link" href="erase.html" title="erase"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">It1</span><span class="special">,</span> <span class="identifier">It2</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence with + the elements between <code class="computeroutput"><span class="identifier">It1</span></code> + and <code class="computeroutput"><span class="identifier">It2</span></code> removed. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.erase.h3"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.erase.complexity"></a></span><a class="link" href="erase.html#fusion.algorithm.transformation.metafunctions.erase.complexity">Complexity</a> + </h6> +<p> + Constant. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.erase.h4"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.erase.header"></a></span><a class="link" href="erase.html#fusion.algorithm.transformation.metafunctions.erase.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">erase</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">erase</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="clear.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="erase_key.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/erase_key.html b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/erase_key.html new file mode 100755 index 0000000000..028a5297e1 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/erase_key.html @@ -0,0 +1,161 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>erase_key</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="erase.html" title="erase"> +<link rel="next" href="insert.html" title="insert"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="erase.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="insert.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.metafunctions.erase_key"></a><a class="link" href="erase_key.html" title="erase_key">erase_key</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.erase_key.h0"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.erase_key.description"></a></span><a class="link" href="erase_key.html#fusion.algorithm.transformation.metafunctions.erase_key.description">Description</a> + </h6> +<p> + Returns the result type of <a class="link" href="../functions/erase_key.html" title="erase_key"><code class="computeroutput"><span class="identifier">erase_key</span></code></a>, given the sequence + and key types. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.erase_key.h1"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.erase_key.synopsis"></a></span><a class="link" href="erase_key.html#fusion.algorithm.transformation.metafunctions.erase_key.synopsis">Synopsis</a> + </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> <span class="identifier">Key</span> + <span class="special">></span> +<span class="keyword">struct</span> <span class="identifier">erase_key</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.metafunctions.erase_key.t0"></a><p class="title"><b>Table 1.95. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> and <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">Key</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + Key type + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.metafunctions.erase_key.h2"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.erase_key.expression_semantics"></a></span><a class="link" href="erase_key.html#fusion.algorithm.transformation.metafunctions.erase_key.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="erase_key.html" title="erase_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase_key</span></code></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> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> and <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a>. + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a sequence with the + elements of <code class="computeroutput"><span class="identifier">Sequence</span></code>, + except those with key <code class="computeroutput"><span class="identifier">Key</span></code>. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.erase_key.h3"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.erase_key.complexity"></a></span><a class="link" href="erase_key.html#fusion.algorithm.transformation.metafunctions.erase_key.complexity">Complexity</a> + </h6> +<p> + Constant. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.erase_key.h4"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.erase_key.header"></a></span><a class="link" href="erase_key.html#fusion.algorithm.transformation.metafunctions.erase_key.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">erase_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">erase_key</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="erase.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="insert.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/filter.html b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/filter.html new file mode 100755 index 0000000000..f106bfc150 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/filter.html @@ -0,0 +1,172 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>filter</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="../metafunctions.html" title="Metafunctions"> +<link rel="next" href="filter_if.html" title="filter_if"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="../metafunctions.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="filter_if.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.metafunctions.filter"></a><a class="link" href="filter.html" title="filter">filter</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.filter.h0"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.filter.description"></a></span><a class="link" href="filter.html#fusion.algorithm.transformation.metafunctions.filter.description">Description</a> + </h6> +<p> + Returns the result type of <a class="link" href="../functions/filter.html" title="filter"><code class="computeroutput"><span class="identifier">filter</span></code></a> given the sequence type + and type to retain. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.filter.h1"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.filter.synopsis"></a></span><a class="link" href="filter.html#fusion.algorithm.transformation.metafunctions.filter.synopsis">Synopsis</a> + </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> <span class="identifier">T</span> + <span class="special">></span> +<span class="keyword">struct</span> <span class="identifier">filter</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.metafunctions.filter.t0"></a><p class="title"><b>Table 1.84. Parameter</b></p> +<div class="table-contents"><table class="table" summary="Parameter"> +<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> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">T</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + Type to retain + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.metafunctions.filter.h2"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.filter.expression_semantics"></a></span><a class="link" href="filter.html#fusion.algorithm.transformation.metafunctions.filter.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="filter.html" title="filter"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">filter</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </li> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> if <code class="computeroutput"><span class="identifier">Sequence</span></code> + implements the <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> model. + </li> +</ul></div> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a sequence containing + the elements of <code class="computeroutput"><span class="identifier">Sequence</span></code> + that are of type <code class="computeroutput"><span class="identifier">T</span></code>. Equivalent + to <code class="computeroutput"><a class="link" href="filter_if.html" title="filter_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">filter_if</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> + <span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special"><</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">,</span> <span class="identifier">T</span><span class="special">></span> <span class="special">>::</span><span class="identifier">type</span></code>. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.filter.h3"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.filter.complexity"></a></span><a class="link" href="filter.html#fusion.algorithm.transformation.metafunctions.filter.complexity">Complexity</a> + </h6> +<p> + Constant. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.filter.h4"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.filter.header"></a></span><a class="link" href="filter.html#fusion.algorithm.transformation.metafunctions.filter.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">filter</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">filter</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="../metafunctions.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="filter_if.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/filter_if.html b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/filter_if.html new file mode 100755 index 0000000000..409ce252b2 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/filter_if.html @@ -0,0 +1,173 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>filter_if</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="filter.html" title="filter"> +<link rel="next" href="transform.html" title="transform"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="filter.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="transform.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.metafunctions.filter_if"></a><a class="link" href="filter_if.html" title="filter_if">filter_if</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.filter_if.h0"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.filter_if.description"></a></span><a class="link" href="filter_if.html#fusion.algorithm.transformation.metafunctions.filter_if.description">Description</a> + </h6> +<p> + Returns the result type of <a class="link" href="../functions/filter_if.html" title="filter_if"><code class="computeroutput"><span class="identifier">filter_if</span></code></a> given the sequence + and unary <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL + Lambda Expression</a> predicate type. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.filter_if.h1"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.filter_if.synopsis"></a></span><a class="link" href="filter_if.html#fusion.algorithm.transformation.metafunctions.filter_if.synopsis">Synopsis</a> + </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> <span class="identifier">Pred</span> + <span class="special">></span> +<span class="keyword">struct</span> <span class="identifier">filter_if</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.metafunctions.filter_if.t0"></a><p class="title"><b>Table 1.85. Parameter</b></p> +<div class="table-contents"><table class="table" summary="Parameter"> +<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> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">Pred</span></code> + </p> + </td> +<td> + <p> + A unary <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL + Lambda Expression</a> + </p> + </td> +<td> + <p> + Type to retain + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.metafunctions.filter_if.h2"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.filter_if.expression_semantics"></a></span><a class="link" href="filter_if.html#fusion.algorithm.transformation.metafunctions.filter_if.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="filter_if.html" title="filter_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">filter_if</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </li> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> if <code class="computeroutput"><span class="identifier">Sequence</span></code> + implements the <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> model. + </li> +</ul></div> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a sequence containing + the elements of <code class="computeroutput"><span class="identifier">Sequence</span></code> + for which <code class="computeroutput"><span class="identifier">Pred</span></code> evaluates + to <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code>. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.filter_if.h3"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.filter_if.complexity"></a></span><a class="link" href="filter_if.html#fusion.algorithm.transformation.metafunctions.filter_if.complexity">Complexity</a> + </h6> +<p> + Constant. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.filter_if.h4"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.filter_if.header"></a></span><a class="link" href="filter_if.html#fusion.algorithm.transformation.metafunctions.filter_if.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">filter_if</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">filter_if</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="filter.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="transform.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/insert.html b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/insert.html new file mode 100755 index 0000000000..a3cb03fbd1 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/insert.html @@ -0,0 +1,182 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>insert</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="erase_key.html" title="erase_key"> +<link rel="next" href="insert_range.html" title="insert_range"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="erase_key.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="insert_range.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.metafunctions.insert"></a><a class="link" href="insert.html" title="insert">insert</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.insert.h0"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.insert.description"></a></span><a class="link" href="insert.html#fusion.algorithm.transformation.metafunctions.insert.description">Description</a> + </h6> +<p> + Returns the result type of <a class="link" href="../functions/insert.html" title="insert"><code class="computeroutput"><span class="identifier">insert</span></code></a>, given the sequence, + position iterator and insertion types. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.insert.h1"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.insert.synopsis"></a></span><a class="link" href="insert.html#fusion.algorithm.transformation.metafunctions.insert.synopsis">Synopsis</a> + </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> <span class="identifier">Position</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">T</span> + <span class="special">></span> +<span class="keyword">struct</span> <span class="identifier">insert</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.metafunctions.insert.t0"></a><p class="title"><b>Table 1.96. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">Position</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../iterator/concepts/forward_iterator.html" title="Forward Iterator">Forward + Iterator</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">T</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.metafunctions.insert.h2"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.insert.expression_semantics"></a></span><a class="link" href="insert.html#fusion.algorithm.transformation.metafunctions.insert.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="insert.html" title="insert"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">insert</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Position</span><span class="special">,</span> <span class="identifier">T</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </li></ul></div> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a sequence with an + element of type <code class="computeroutput"><span class="identifier">T</span></code> inserted + at position <code class="computeroutput"><span class="identifier">Position</span></code> + in <code class="computeroutput"><span class="identifier">Sequence</span></code>. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.insert.h3"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.insert.complexity"></a></span><a class="link" href="insert.html#fusion.algorithm.transformation.metafunctions.insert.complexity">Complexity</a> + </h6> +<p> + Constant. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.insert.h4"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.insert.header"></a></span><a class="link" href="insert.html#fusion.algorithm.transformation.metafunctions.insert.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">insert</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">insert</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="erase_key.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="insert_range.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/insert_range.html b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/insert_range.html new file mode 100755 index 0000000000..da23d9b145 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/insert_range.html @@ -0,0 +1,191 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>insert_range</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="insert.html" title="insert"> +<link rel="next" href="join.html" title="join"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="insert.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="join.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.metafunctions.insert_range"></a><a class="link" href="insert_range.html" title="insert_range">insert_range</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.insert_range.h0"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.insert_range.description"></a></span><a class="link" href="insert_range.html#fusion.algorithm.transformation.metafunctions.insert_range.description">Description</a> + </h6> +<p> + Returns the result type of <a class="link" href="../functions/insert_range.html" title="insert_range"><code class="computeroutput"><span class="identifier">insert_range</span></code></a>, given the input + sequence, position iterator and insertion range types. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.insert_range.h1"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.insert_range.synopsis"></a></span><a class="link" href="insert_range.html#fusion.algorithm.transformation.metafunctions.insert_range.synopsis">Synopsis</a> + </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> <span class="identifier">Position</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">Range</span> + <span class="special">></span> +<span class="keyword">struct</span> <span class="identifier">insert_range</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.metafunctions.insert_range.t0"></a><p class="title"><b>Table 1.97. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">Position</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../iterator/concepts/forward_iterator.html" title="Forward Iterator">Forward + Iterator</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">Range</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.metafunctions.insert_range.h2"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.insert_range.expression_semantics"></a></span><a class="link" href="insert_range.html#fusion.algorithm.transformation.metafunctions.insert_range.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="insert_range.html" title="insert_range"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">insert_range</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Position</span><span class="special">,</span> <span class="identifier">Range</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </li> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> if <code class="computeroutput"><span class="identifier">Sequence</span></code> + implements the <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> model. + </li> +</ul></div> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a sequence with the + elements of <code class="computeroutput"><span class="identifier">Range</span></code> inserted + at position <code class="computeroutput"><span class="identifier">Position</span></code> + into <code class="computeroutput"><span class="identifier">Sequence</span></code>. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.insert_range.h3"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.insert_range.complexity"></a></span><a class="link" href="insert_range.html#fusion.algorithm.transformation.metafunctions.insert_range.complexity">Complexity</a> + </h6> +<p> + Constant. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.insert_range.h4"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.insert_range.header"></a></span><a class="link" href="insert_range.html#fusion.algorithm.transformation.metafunctions.insert_range.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">insert_range</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">insert_range</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="insert.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="join.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/join.html b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/join.html new file mode 100755 index 0000000000..402b247a30 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/join.html @@ -0,0 +1,107 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>join</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="insert_range.html" title="insert_range"> +<link rel="next" href="zip.html" title="zip"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="insert_range.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="zip.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.metafunctions.join"></a><a class="link" href="join.html" title="join">join</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.join.h0"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.join.description"></a></span><a class="link" href="join.html#fusion.algorithm.transformation.metafunctions.join.description">Description</a> + </h6> +<p> + Returns the result of joining 2 sequences, given the sequence types. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.join.h1"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.join.synopsis"></a></span><a class="link" href="join.html#fusion.algorithm.transformation.metafunctions.join.synopsis">Synopsis</a> + </h6> +<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span> + <span class="keyword">typename</span> <span class="identifier">LhSequence</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">RhSequence</span> + <span class="special">></span> +<span class="keyword">struct</span> <span class="identifier">join</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.join.h2"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.join.expression_semantics"></a></span><a class="link" href="join.html#fusion.algorithm.transformation.metafunctions.join.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="join.html" title="join"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">join</span></code></a><span class="special"><</span><span class="identifier">LhSequence</span><span class="special">,</span> <span class="identifier">RhSequence</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </li> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> if <code class="computeroutput"><span class="identifier">LhSequence</span></code> + amd <code class="computeroutput"><span class="identifier">RhSequence</span></code> implement + the <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> model. + </li> +</ul></div> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a sequence containing + the elements of <code class="computeroutput"><span class="identifier">LhSequence</span></code> + followed by the elements of <code class="computeroutput"><span class="identifier">RhSequence</span></code>. + The order of the elements in the 2 sequences is preserved. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.join.h3"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.join.complexity"></a></span><a class="link" href="join.html#fusion.algorithm.transformation.metafunctions.join.complexity">Complexity</a> + </h6> +<p> + Constant. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.join.h4"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.join.header"></a></span><a class="link" href="join.html#fusion.algorithm.transformation.metafunctions.join.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">join</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">join</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="insert_range.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="zip.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/pop_back.html b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/pop_back.html new file mode 100755 index 0000000000..5f214c55cc --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/pop_back.html @@ -0,0 +1,150 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>pop_back</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="zip.html" title="zip"> +<link rel="next" href="pop_front.html" title="pop_front"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="zip.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="pop_front.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.metafunctions.pop_back"></a><a class="link" href="pop_back.html" title="pop_back">pop_back</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.pop_back.h0"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.pop_back.description"></a></span><a class="link" href="pop_back.html#fusion.algorithm.transformation.metafunctions.pop_back.description">Description</a> + </h6> +<p> + Returns the result type of <a class="link" href="../functions/pop_back.html" title="pop_back"><code class="computeroutput"><span class="identifier">pop_back</span></code></a>, given the input sequence + type. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.pop_back.h1"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.pop_back.synopsis"></a></span><a class="link" href="pop_back.html#fusion.algorithm.transformation.metafunctions.pop_back.synopsis">Synopsis</a> + </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">struct</span> <span class="identifier">pop_back</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.metafunctions.pop_back.t0"></a><p class="title"><b>Table 1.98. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr></tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.metafunctions.pop_back.h2"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.pop_back.expression_semantics"></a></span><a class="link" href="pop_back.html#fusion.algorithm.transformation.metafunctions.pop_back.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="pop_back.html" title="pop_back"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">pop_back</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </li> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> if <code class="computeroutput"><span class="identifier">Sequence</span></code> + implements the <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> model. + </li> +</ul></div> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a sequence with all + the elements of <code class="computeroutput"><span class="identifier">Sequence</span></code> + except the last element. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.pop_back.h3"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.pop_back.complexity"></a></span><a class="link" href="pop_back.html#fusion.algorithm.transformation.metafunctions.pop_back.complexity">Complexity</a> + </h6> +<p> + Constant. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.pop_back.h4"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.pop_back.header"></a></span><a class="link" href="pop_back.html#fusion.algorithm.transformation.metafunctions.pop_back.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">pop_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">pop_back</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="zip.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="pop_front.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/pop_front.html b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/pop_front.html new file mode 100755 index 0000000000..06332de923 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/pop_front.html @@ -0,0 +1,150 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>pop_front</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="pop_back.html" title="pop_back"> +<link rel="next" href="push_back.html" title="push_back"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="pop_back.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="push_back.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.metafunctions.pop_front"></a><a class="link" href="pop_front.html" title="pop_front">pop_front</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.pop_front.h0"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.pop_front.description"></a></span><a class="link" href="pop_front.html#fusion.algorithm.transformation.metafunctions.pop_front.description">Description</a> + </h6> +<p> + Returns the result type of <a class="link" href="../functions/pop_front.html" title="pop_front"><code class="computeroutput"><span class="identifier">pop_front</span></code></a>, given the input sequence + type. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.pop_front.h1"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.pop_front.synopsis"></a></span><a class="link" href="pop_front.html#fusion.algorithm.transformation.metafunctions.pop_front.synopsis">Synopsis</a> + </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">struct</span> <span class="identifier">pop_front</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.metafunctions.pop_front.t0"></a><p class="title"><b>Table 1.99. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr></tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.metafunctions.pop_front.h2"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.pop_front.expression_semantics"></a></span><a class="link" href="pop_front.html#fusion.algorithm.transformation.metafunctions.pop_front.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="pop_front.html" title="pop_front"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">pop_front</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </li> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> if <code class="computeroutput"><span class="identifier">Sequence</span></code> + implements the <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> model. + </li> +</ul></div> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a sequence with all + the elements of <code class="computeroutput"><span class="identifier">Sequence</span></code> + except the first element. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.pop_front.h3"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.pop_front.complexity"></a></span><a class="link" href="pop_front.html#fusion.algorithm.transformation.metafunctions.pop_front.complexity">Complexity</a> + </h6> +<p> + Constant. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.pop_front.h4"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.pop_front.header"></a></span><a class="link" href="pop_front.html#fusion.algorithm.transformation.metafunctions.pop_front.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">pop_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">pop_front</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="pop_back.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="push_back.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/push_back.html b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/push_back.html new file mode 100755 index 0000000000..07d797b6ea --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/push_back.html @@ -0,0 +1,163 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>push_back</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="pop_front.html" title="pop_front"> +<link rel="next" href="push_front.html" title="push_front"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="pop_front.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="push_front.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.metafunctions.push_back"></a><a class="link" href="push_back.html" title="push_back">push_back</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.push_back.h0"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.push_back.description"></a></span><a class="link" href="push_back.html#fusion.algorithm.transformation.metafunctions.push_back.description">Description</a> + </h6> +<p> + Returns the result type of <a class="link" href="../functions/push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">push_back</span></code></a>, given the types of + the input sequence and element to push. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.push_back.h1"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.push_back.synopsis"></a></span><a class="link" href="push_back.html#fusion.algorithm.transformation.metafunctions.push_back.synopsis">Synopsis</a> + </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> <span class="identifier">T</span> + <span class="special">></span> +<span class="keyword">struct</span> <span class="identifier">push_back</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.metafunctions.push_back.t0"></a><p class="title"><b>Table 1.100. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">T</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.metafunctions.push_back.h2"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.push_back.expression_semantics"></a></span><a class="link" href="push_back.html#fusion.algorithm.transformation.metafunctions.push_back.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">push_back</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </li></ul></div> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a sequence with the + elements of <code class="computeroutput"><span class="identifier">Sequence</span></code> + and an element of type <code class="computeroutput"><span class="identifier">T</span></code> + added to the end. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.push_back.h3"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.push_back.complexity"></a></span><a class="link" href="push_back.html#fusion.algorithm.transformation.metafunctions.push_back.complexity">Complexity</a> + </h6> +<p> + Constant. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.push_back.h4"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.push_back.header"></a></span><a class="link" href="push_back.html#fusion.algorithm.transformation.metafunctions.push_back.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">push_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">push_back</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="pop_front.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="push_front.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/push_front.html b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/push_front.html new file mode 100755 index 0000000000..81380d3258 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/push_front.html @@ -0,0 +1,163 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>push_front</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="push_back.html" title="push_back"> +<link rel="next" href="../../../tuple.html" title="Tuple"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="push_back.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../../../tuple.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.metafunctions.push_front"></a><a class="link" href="push_front.html" title="push_front">push_front</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.push_front.h0"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.push_front.description"></a></span><a class="link" href="push_front.html#fusion.algorithm.transformation.metafunctions.push_front.description">Description</a> + </h6> +<p> + Returns the result type of <a class="link" href="../functions/push_front.html" title="push_front"><code class="computeroutput"><span class="identifier">push_front</span></code></a>, given the types + of the input sequence and element to push. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.push_front.h1"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.push_front.synopsis"></a></span><a class="link" href="push_front.html#fusion.algorithm.transformation.metafunctions.push_front.synopsis">Synopsis</a> + </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> <span class="identifier">T</span> + <span class="special">></span> +<span class="keyword">struct</span> <span class="identifier">push_front</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.metafunctions.push_front.t0"></a><p class="title"><b>Table 1.101. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">T</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.metafunctions.push_front.h2"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.push_front.expression_semantics"></a></span><a class="link" href="push_front.html#fusion.algorithm.transformation.metafunctions.push_front.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="push_front.html" title="push_front"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">push_front</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </li></ul></div> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a sequence with the + elements of <code class="computeroutput"><span class="identifier">Sequence</span></code> + and an element of type <code class="computeroutput"><span class="identifier">T</span></code> + added to the beginning. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.push_front.h3"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.push_front.complexity"></a></span><a class="link" href="push_front.html#fusion.algorithm.transformation.metafunctions.push_front.complexity">Complexity</a> + </h6> +<p> + Constant. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.push_front.h4"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.push_front.header"></a></span><a class="link" href="push_front.html#fusion.algorithm.transformation.metafunctions.push_front.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">push_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">push_front</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="push_back.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../../../tuple.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/remove.html b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/remove.html new file mode 100755 index 0000000000..48db2c006e --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/remove.html @@ -0,0 +1,172 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>remove</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="replace_if.html" title="replace_if"> +<link rel="next" href="remove_if.html" title="remove_if"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="replace_if.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="remove_if.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.metafunctions.remove"></a><a class="link" href="remove.html" title="remove">remove</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.remove.h0"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.remove.description"></a></span><a class="link" href="remove.html#fusion.algorithm.transformation.metafunctions.remove.description">Description</a> + </h6> +<p> + Returns the result type of <a class="link" href="../functions/remove.html" title="remove"><code class="computeroutput"><span class="identifier">remove</span></code></a>, given the sequence and + removal types. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.remove.h1"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.remove.synopsis"></a></span><a class="link" href="remove.html#fusion.algorithm.transformation.metafunctions.remove.synopsis">Synopsis</a> + </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> <span class="identifier">T</span> + <span class="special">></span> +<span class="keyword">struct</span> <span class="identifier">remove</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.metafunctions.remove.t0"></a><p class="title"><b>Table 1.90. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">T</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + Remove elements of this type + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.metafunctions.remove.h2"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.remove.expression_semantics"></a></span><a class="link" href="remove.html#fusion.algorithm.transformation.metafunctions.remove.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="remove.html" title="remove"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">remove</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </li> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> if <code class="computeroutput"><span class="identifier">Sequence</span></code> + implements the <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> model. + </li> +</ul></div> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a sequence containing + the elements of <code class="computeroutput"><span class="identifier">Sequence</span></code> + not of type <code class="computeroutput"><span class="identifier">T</span></code>. Equivalent + to <code class="computeroutput"><a class="link" href="replace_if.html" title="replace_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">replace_if</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> + <span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special"><</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">,</span> <span class="identifier">T</span><span class="special">></span> <span class="special">>::</span><span class="identifier">type</span></code>. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.remove.h3"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.remove.complexity"></a></span><a class="link" href="remove.html#fusion.algorithm.transformation.metafunctions.remove.complexity">Complexity</a> + </h6> +<p> + Constant. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.remove.h4"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.remove.header"></a></span><a class="link" href="remove.html#fusion.algorithm.transformation.metafunctions.remove.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">remove</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">remove</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="replace_if.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="remove_if.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/remove_if.html b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/remove_if.html new file mode 100755 index 0000000000..4d94d65f81 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/remove_if.html @@ -0,0 +1,173 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>remove_if</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="remove.html" title="remove"> +<link rel="next" href="reverse.html" title="reverse"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="remove.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="reverse.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.metafunctions.remove_if"></a><a class="link" href="remove_if.html" title="remove_if">remove_if</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.remove_if.h0"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.remove_if.description"></a></span><a class="link" href="remove_if.html#fusion.algorithm.transformation.metafunctions.remove_if.description">Description</a> + </h6> +<p> + Returns the result type of <a class="link" href="../functions/remove_if.html" title="remove_if"><code class="computeroutput"><span class="identifier">remove_if</span></code></a>, given the input sequence + and unary <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL + Lambda Expression</a> predicate types. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.remove_if.h1"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.remove_if.synopsis"></a></span><a class="link" href="remove_if.html#fusion.algorithm.transformation.metafunctions.remove_if.synopsis">Synopsis</a> + </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> <span class="identifier">Pred</span> + <span class="special">></span> +<span class="keyword">struct</span> <span class="identifier">remove_if</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.metafunctions.remove_if.t0"></a><p class="title"><b>Table 1.91. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">Pred</span></code> + </p> + </td> +<td> + <p> + A model of unary <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL + Lambda Expression</a> + </p> + </td> +<td> + <p> + Remove elements which evaluate to <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code> + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.metafunctions.remove_if.h2"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.remove_if.expression_semantics"></a></span><a class="link" href="remove_if.html#fusion.algorithm.transformation.metafunctions.remove_if.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="remove_if.html" title="remove_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">remove_if</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </li> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> if <code class="computeroutput"><span class="identifier">Sequence</span></code> + implements the <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> model. + </li> +</ul></div> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a sequence containing + the elements of <code class="computeroutput"><span class="identifier">Sequence</span></code> + for which <code class="computeroutput"><span class="identifier">Pred</span></code> evaluates + to <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></code>. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.remove_if.h3"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.remove_if.complexity"></a></span><a class="link" href="remove_if.html#fusion.algorithm.transformation.metafunctions.remove_if.complexity">Complexity</a> + </h6> +<p> + Constant. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.remove_if.h4"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.remove_if.header"></a></span><a class="link" href="remove_if.html#fusion.algorithm.transformation.metafunctions.remove_if.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">remove_if</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">remove_if</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="remove.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="reverse.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/replace.html b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/replace.html new file mode 100755 index 0000000000..95ce34ccd5 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/replace.html @@ -0,0 +1,158 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>replace</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="transform.html" title="transform"> +<link rel="next" href="replace_if.html" title="replace_if"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="transform.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="replace_if.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.metafunctions.replace"></a><a class="link" href="replace.html" title="replace">replace</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.replace.h0"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.replace.description"></a></span><a class="link" href="replace.html#fusion.algorithm.transformation.metafunctions.replace.description">Description</a> + </h6> +<p> + Returns the result type of <a class="link" href="../functions/replace.html" title="replace"><code class="computeroutput"><span class="identifier">replace</span></code></a>, given the types of + the input sequence and element to replace. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.replace.h1"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.replace.synopsis"></a></span><a class="link" href="replace.html#fusion.algorithm.transformation.metafunctions.replace.synopsis">Synopsis</a> + </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> <span class="identifier">T</span> + <span class="special">></span> +<span class="keyword">struct</span> <span class="identifier">replace</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.metafunctions.replace.t0"></a><p class="title"><b>Table 1.88. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">T</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + The type of the search and replacement objects + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.metafunctions.replace.h2"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.replace.expression_semantics"></a></span><a class="link" href="replace.html#fusion.algorithm.transformation.metafunctions.replace.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="replace.html" title="replace"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">replace</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span><span class="identifier">T</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns the return type of + <a class="link" href="../functions/replace.html" title="replace"><code class="computeroutput"><span class="identifier">replace</span></code></a>. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.replace.h3"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.replace.complexity"></a></span><a class="link" href="replace.html#fusion.algorithm.transformation.metafunctions.replace.complexity">Complexity</a> + </h6> +<p> + Constant. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.replace.h4"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.replace.header"></a></span><a class="link" href="replace.html#fusion.algorithm.transformation.metafunctions.replace.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">replace</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">replace</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="transform.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="replace_if.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/replace_if.html b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/replace_if.html new file mode 100755 index 0000000000..904ca0e2bd --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/replace_if.html @@ -0,0 +1,177 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>replace_if</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="replace.html" title="replace"> +<link rel="next" href="remove.html" title="remove"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="replace.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="remove.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.metafunctions.replace_if"></a><a class="link" href="replace_if.html" title="replace_if">replace_if</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.replace_if.h0"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.replace_if.description"></a></span><a class="link" href="replace_if.html#fusion.algorithm.transformation.metafunctions.replace_if.description">Description</a> + </h6> +<p> + Returns the result type of <a class="link" href="../functions/replace_if.html" title="replace_if"><code class="computeroutput"><span class="identifier">replace_if</span></code></a>, given the types + of the sequence, <a class="link" href="../../../functional/concepts/poly.html" title="Polymorphic Function Object">Polymorphic + Function Object</a> predicate and replacement object. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.replace_if.h1"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.replace_if.synopsis"></a></span><a class="link" href="replace_if.html#fusion.algorithm.transformation.metafunctions.replace_if.synopsis">Synopsis</a> + </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> <span class="identifier">F</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">T</span><span class="special">></span> +<span class="keyword">struct</span> <span class="identifier">replace_if</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.metafunctions.replace_if.t0"></a><p class="title"><b>Table 1.89. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">F</span></code> + </p> + </td> +<td> + <p> + A model of unary <a class="link" href="../../../functional/concepts/poly.html" title="Polymorphic Function Object">Polymorphic + Function Object</a> + </p> + </td> +<td> + <p> + Replacement predicate + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">T</span></code> + </p> + </td> +<td> + <p> + Any type + </p> + </td> +<td> + <p> + The type of the replacement object + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.metafunctions.replace_if.h2"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.replace_if.expression_semantics"></a></span><a class="link" href="replace_if.html#fusion.algorithm.transformation.metafunctions.replace_if.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="replace_if.html" title="replace_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">replace_if</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span><span class="identifier">F</span><span class="special">,</span><span class="identifier">T</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns the return type of + <a class="link" href="../functions/replace_if.html" title="replace_if"><code class="computeroutput"><span class="identifier">replace_if</span></code></a>. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.replace_if.h3"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.replace_if.complexity"></a></span><a class="link" href="replace_if.html#fusion.algorithm.transformation.metafunctions.replace_if.complexity">Complexity</a> + </h6> +<p> + Constant. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.replace_if.h4"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.replace_if.header"></a></span><a class="link" href="replace_if.html#fusion.algorithm.transformation.metafunctions.replace_if.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">replace_if</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">replace_if</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="replace.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="remove.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/reverse.html b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/reverse.html new file mode 100755 index 0000000000..1ac950f4d3 --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/reverse.html @@ -0,0 +1,154 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>reverse</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="remove_if.html" title="remove_if"> +<link rel="next" href="clear.html" title="clear"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="remove_if.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="clear.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.metafunctions.reverse"></a><a class="link" href="reverse.html" title="reverse">reverse</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.reverse.h0"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.reverse.description"></a></span><a class="link" href="reverse.html#fusion.algorithm.transformation.metafunctions.reverse.description">Description</a> + </h6> +<p> + Returns the result type of <a class="link" href="../functions/reverse.html" title="reverse"><code class="computeroutput"><span class="identifier">reverse</span></code></a>, given the input sequence + type. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.reverse.h1"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.reverse.synopsis"></a></span><a class="link" href="reverse.html#fusion.algorithm.transformation.metafunctions.reverse.synopsis">Synopsis</a> + </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">struct</span> <span class="identifier">reverse</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.metafunctions.reverse.t0"></a><p class="title"><b>Table 1.92. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">Sequence</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/bidirectional_sequence.html" title="Bidirectional Sequence">Bidirectional + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr></tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.metafunctions.reverse.h2"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.reverse.expression_semantics"></a></span><a class="link" href="reverse.html#fusion.algorithm.transformation.metafunctions.reverse.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="reverse.html" title="reverse"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">reverse</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/bidirectional_sequence.html" title="Bidirectional Sequence">Bidirectional + Sequence</a> if <code class="computeroutput"><span class="identifier">Sequence</span></code> + is a <a class="link" href="../../../sequence/concepts/bidirectional_sequence.html" title="Bidirectional Sequence">Bidirectional + Sequence</a> else, <a class="link" href="../../../sequence/concepts/random_access_sequence.html" title="Random Access Sequence">Random + Access Sequence</a> if <code class="computeroutput"><span class="identifier">Sequence</span></code> + is a <a class="link" href="../../../sequence/concepts/random_access_sequence.html" title="Random Access Sequence">Random + Access Sequence</a>. + </li> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> if <code class="computeroutput"><span class="identifier">Sequence</span></code> + implements the <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> model. + </li> +</ul></div> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a sequence with the + elements in the reverse order to <code class="computeroutput"><span class="identifier">Sequence</span></code>. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.reverse.h3"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.reverse.complexity"></a></span><a class="link" href="reverse.html#fusion.algorithm.transformation.metafunctions.reverse.complexity">Complexity</a> + </h6> +<p> + Constant. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.reverse.h4"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.reverse.header"></a></span><a class="link" href="reverse.html#fusion.algorithm.transformation.metafunctions.reverse.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">reverse</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">reverse</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="remove_if.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="clear.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/transform.html b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/transform.html new file mode 100755 index 0000000000..91f158d2dc --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/transform.html @@ -0,0 +1,302 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>transform</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="filter_if.html" title="filter_if"> +<link rel="next" href="replace.html" title="replace"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="filter_if.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="replace.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.metafunctions.transform"></a><a class="link" href="transform.html" title="transform">transform</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.transform.h0"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.transform.description"></a></span><a class="link" href="transform.html#fusion.algorithm.transformation.metafunctions.transform.description">Description</a> + </h6> +<p> + For a sequence <code class="computeroutput"><span class="identifier">seq</span></code> and + function object or function pointer <code class="computeroutput"><span class="identifier">f</span></code>, + <code class="computeroutput"><span class="identifier">transform</span></code> returns a new + sequence with elements created by applying <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> to each element of <code class="computeroutput"><span class="identifier">e</span></code> + of <code class="computeroutput"><span class="identifier">seq</span></code>. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.transform.h1"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.transform.unary_version_synopsis"></a></span><a class="link" href="transform.html#fusion.algorithm.transformation.metafunctions.transform.unary_version_synopsis">Unary + version synopsis</a> + </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> <span class="identifier">F</span> + <span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="transform.html" title="transform"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">transform</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">transform</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> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.metafunctions.transform.t0"></a><p class="title"><b>Table 1.86. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">f</span></code> + </p> + </td> +<td> + <p> + <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> + is a valid expression for each element <code class="computeroutput"><span class="identifier">e</span></code> + of <code class="computeroutput"><span class="identifier">seq</span></code>. <code class="computeroutput"><a href="http://www.boost.org/libs/utility/utility.htm#result_of" target="_top"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">result_of</span></code></a><span class="special"><</span><span class="identifier">F</span><span class="special">(</span><span class="identifier">E</span><span class="special">)>::</span><span class="identifier">type</span></code> + is the return type of <code class="computeroutput"><span class="identifier">f</span></code> + when called with a value of each element type <code class="computeroutput"><span class="identifier">E</span></code>. + </p> + </td> +<td> + <p> + Transformation function + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><h6> +<a name="fusion.algorithm.transformation.metafunctions.transform.h2"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.transform.expression_semantics"></a></span><a class="link" href="transform.html#fusion.algorithm.transformation.metafunctions.transform.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="../functions/transform.html" title="transform"><code class="computeroutput"><span class="identifier">transform</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </li> +<li class="listitem"> + A model of <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> if <code class="computeroutput"><span class="identifier">Sequence</span></code> + implements the <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative + Sequence</a> model. + </li> +</ul></div> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing + the return values of <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> for each element <code class="computeroutput"><span class="identifier">e</span></code> + within <code class="computeroutput"><span class="identifier">seq</span></code>. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.transform.h3"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.transform.binary_version_synopsis"></a></span><a class="link" href="transform.html#fusion.algorithm.transformation.metafunctions.transform.binary_version_synopsis">Binary + version synopsis</a> + </h6> +<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span> + <span class="keyword">typename</span> <span class="identifier">Sequence1</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">Sequence2</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">F</span> + <span class="special">></span> +<span class="keyword">typename</span> <a class="link" href="transform.html" title="transform"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">transform</span></code></a><span class="special"><</span><span class="identifier">Sequence1</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Sequence2</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">transform</span><span class="special">(</span> + <span class="identifier">Sequence1</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq1</span><span class="special">,</span> <span class="identifier">Sequence2</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq2</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> +</pre> +<div class="table"> +<a name="fusion.algorithm.transformation.metafunctions.transform.t1"></a><p class="title"><b>Table 1.87. Parameters</b></p> +<div class="table-contents"><table class="table" summary="Parameters"> +<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> + <code class="computeroutput"><span class="identifier">seq1</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">seq2</span></code> + </p> + </td> +<td> + <p> + A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a> + </p> + </td> +<td> + <p> + Operation's argument + </p> + </td> +</tr> +<tr> +<td> + <p> + <code class="computeroutput"><span class="identifier">f</span></code> + </p> + </td> +<td> + <p> + <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e1</span><span class="special">,</span><span class="identifier">e2</span><span class="special">)</span></code> + is a valid expression for each pair of elements <code class="computeroutput"><span class="identifier">e1</span></code> of <code class="computeroutput"><span class="identifier">seq1</span></code> + and <code class="computeroutput"><span class="identifier">e2</span></code> of + <code class="computeroutput"><span class="identifier">seq2</span></code>. <code class="computeroutput"><a href="http://www.boost.org/libs/utility/utility.htm#result_of" target="_top"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">result_of</span></code></a><span class="special"><</span><span class="identifier">F</span><span class="special">(</span><span class="identifier">E1</span><span class="special">,</span><span class="identifier">E2</span><span class="special">)>::</span><span class="identifier">type</span></code> + is the return type of <code class="computeroutput"><span class="identifier">f</span></code> + when called with elements of type <code class="computeroutput"><span class="identifier">E1</span></code> + and <code class="computeroutput"><span class="identifier">E2</span></code> + </p> + </td> +<td> + <p> + Transformation function + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><p> + <span class="bold"><strong>Return type</strong></span>: A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward + Sequence</a>. + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing + the return values of <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e1</span><span class="special">,</span> <span class="identifier">e2</span><span class="special">)</span></code> for each pair of elements <code class="computeroutput"><span class="identifier">e1</span></code> and <code class="computeroutput"><span class="identifier">e2</span></code> + within <code class="computeroutput"><span class="identifier">seq1</span></code> and <code class="computeroutput"><span class="identifier">seq2</span></code> respectively. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.transform.h4"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.transform.complexity"></a></span><a class="link" href="transform.html#fusion.algorithm.transformation.metafunctions.transform.complexity">Complexity</a> + </h6> +<p> + Constant. Returns a view which is lazily evaluated. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.transform.h5"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.transform.header"></a></span><a class="link" href="transform.html#fusion.algorithm.transformation.metafunctions.transform.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">transform</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">transform</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.transform.h6"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.transform.example"></a></span><a class="link" href="transform.html#fusion.algorithm.transformation.metafunctions.transform.example">Example</a> + </h6> +<pre class="programlisting"><span class="keyword">struct</span> <span class="identifier">triple</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="keyword">int</span> <span class="identifier">result_type</span><span class="special">;</span> + + <span class="keyword">int</span> <span class="keyword">operator</span><span class="special">()(</span><span class="keyword">int</span> <span class="identifier">t</span><span class="special">)</span> <span class="keyword">const</span> + <span class="special">{</span> + <span class="keyword">return</span> <span class="identifier">t</span> <span class="special">*</span> <span class="number">3</span><span class="special">;</span> + <span class="special">};</span> +<span class="special">};</span> +<span class="special">...</span> +<span class="identifier">assert</span><span class="special">(</span><a class="link" href="../functions/transform.html" title="transform"><code class="computeroutput"><span class="identifier">transform</span></code></a><span class="special">(</span><a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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">triple</span><span class="special">())</span> <span class="special">==</span> <a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">3</span><span class="special">,</span><span class="number">6</span><span class="special">,</span><span class="number">9</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 © 2001-2006, 2011 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="filter_if.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="replace.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/zip.html b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/zip.html new file mode 100755 index 0000000000..fb4f989f1e --- /dev/null +++ b/libs/fusion/doc/html/fusion/algorithm/transformation/metafunctions/zip.html @@ -0,0 +1,103 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>zip</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.1"> +<link rel="up" href="../metafunctions.html" title="Metafunctions"> +<link rel="prev" href="join.html" title="join"> +<link rel="next" href="pop_back.html" title="pop_back"> +</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> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<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="join.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="pop_back.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="fusion.algorithm.transformation.metafunctions.zip"></a><a class="link" href="zip.html" title="zip">zip</a> +</h5></div></div></div> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.zip.h0"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.zip.description"></a></span><a class="link" href="zip.html#fusion.algorithm.transformation.metafunctions.zip.description">Description</a> + </h6> +<p> + Zips sequences together to form a single sequence, whos members are tuples + of the members of the component sequences. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.zip.h1"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.zip.synopsis"></a></span><a class="link" href="zip.html#fusion.algorithm.transformation.metafunctions.zip.synopsis">Synopsis</a> + </h6> +<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span> + <span class="keyword">typename</span> <span class="identifier">Sequence1</span><span class="special">,</span> + <span class="keyword">typename</span> <span class="identifier">Sequence2</span><span class="special">,</span> + <span class="special">...</span> + <span class="keyword">typename</span> <span class="identifier">SequenceN</span> + <span class="special">></span> +<span class="keyword">struct</span> <span class="identifier">zip</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> +</pre> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.zip.h2"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.zip.expression_semantics"></a></span><a class="link" href="zip.html#fusion.algorithm.transformation.metafunctions.zip.expression_semantics">Expression + Semantics</a> + </h6> +<pre class="programlisting"><a class="link" href="zip.html" title="zip"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">zip</span></code></a><span class="special"><</span><span class="identifier">Sequence1</span><span class="special">,</span> <span class="identifier">Sequence2</span><span class="special">,</span> <span class="special">...</span> <span class="identifier">SequenceN</span><span class="special">>::</span><span class="identifier">type</span> +</pre> +<p> + <span class="bold"><strong>Return type</strong></span>: A model of the most restrictive + traversal category of sequences <code class="computeroutput"><span class="identifier">Sequence1</span></code> + to <code class="computeroutput"><span class="identifier">SequenceN</span></code>. + </p> +<p> + <span class="bold"><strong>Semantics</strong></span>: Return a sequence containing + tuples of elements from each sequence. For example, applying zip to tuples + <code class="computeroutput"><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></code> + and <code class="computeroutput"><span class="special">(</span><span class="char">'a'</span><span class="special">,</span> <span class="char">'b'</span><span class="special">,</span> + <span class="char">'c'</span><span class="special">)</span></code> + would return <code class="computeroutput"><span class="special">((</span><span class="number">1</span><span class="special">,</span> <span class="char">'a'</span><span class="special">),(</span><span class="number">2</span><span class="special">,</span> <span class="char">'b'</span><span class="special">),(</span><span class="number">3</span><span class="special">,</span> + <span class="char">'c'</span><span class="special">))</span></code> + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.zip.h3"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.zip.complexity"></a></span><a class="link" href="zip.html#fusion.algorithm.transformation.metafunctions.zip.complexity">Complexity</a> + </h6> +<p> + Constant. + </p> +<h6> +<a name="fusion.algorithm.transformation.metafunctions.zip.h4"></a> + <span><a name="fusion.algorithm.transformation.metafunctions.zip.header"></a></span><a class="link" href="zip.html#fusion.algorithm.transformation.metafunctions.zip.header">Header</a> + </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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">zip</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">zip</span><span class="special">.</span><span class="identifier">hpp</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 © 2001-2006, 2011 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="join.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="pop_back.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> |