forked from boostorg/fusion
merge from trunk
[SVN r47205]
This commit is contained in:
1 parent
099deb4385
commit
57725cb393
260 files changed
+9039
-8720
No files matched your search
@@ -3,19 +3,20 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Concepts</title>
|
||||
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../sequence.html" title="Sequence">
|
||||
<link rel="prev" href="../sequence.html" title="Sequence">
|
||||
<link rel="next" href="concepts/forward_sequence.html" title="Forward Sequence">
|
||||
<link rel="next" href="concepts/forward_sequence.html" title="Forward
|
||||
Sequence">
|
||||
</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="../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,8 +25,7 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="fusion.sequence.concepts"></a><a class="link" href="concepts.html" title="Concepts">Concepts</a>
|
||||
</h3></div></div></div>
|
||||
<a name="fusion.sequence.concepts"></a><a href="concepts.html" title="Concepts">Concepts</a></h3></div></div></div>
|
||||
<div class="toc"><dl>
|
||||
<dt><span class="section"><a href="concepts/forward_sequence.html">Forward
|
||||
Sequence</a></span></dt>
|
||||
@@ -39,25 +39,31 @@
|
||||
<p>
|
||||
Fusion Sequences are organized into a hierarchy of concepts.
|
||||
</p>
|
||||
<a name="fusion.sequence.concepts.traversal"></a><h5>
|
||||
<a name="id2665833"></a>
|
||||
<a class="link" href="concepts.html#fusion.sequence.concepts.traversal">Traversal</a>
|
||||
</h5>
|
||||
<a name="fusion.sequence.concepts.traversal"></a><h4>
|
||||
<a name="id490670"></a>
|
||||
<a href="concepts.html#fusion.sequence.concepts.traversal">Traversal</a>
|
||||
</h4>
|
||||
<p>
|
||||
Fusion's sequence traversal related concepts parallel Fusion's <a class="link" href="../iterator/concepts.html" title="Concepts">Iterator
|
||||
Concepts</a>. <a class="link" href="concepts/forward_sequence.html" title="Forward Sequence">Forward
|
||||
Sequence</a> is the most basic concept. <a class="link" href="concepts/bidirectional_sequence.html" title="Bidirectional Sequence">Bidirectional
|
||||
Sequence</a> is a refinement of <a class="link" href="concepts/forward_sequence.html" title="Forward Sequence">Forward
|
||||
Sequence</a>. <a class="link" href="concepts/random_access_sequence.html" title="Random Access Sequence">Random
|
||||
Access Sequence</a> is a refinement of <a class="link" href="concepts/bidirectional_sequence.html" title="Bidirectional Sequence">Bidirectional
|
||||
Fusion's sequence traversal related concepts parallel Fusion's <a href="../iterator/concepts.html" title="Concepts">Iterator
|
||||
Concepts</a>. <a href="concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a> is the most basic concept. <a href="concepts/bidirectional_sequence.html" title="Bidirectional
|
||||
Sequence">Bidirectional
|
||||
Sequence</a> is a refinement of <a href="concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>. <a href="concepts/random_access_sequence.html" title="Random
|
||||
Access Sequence">Random
|
||||
Access Sequence</a> is a refinement of <a href="concepts/bidirectional_sequence.html" title="Bidirectional
|
||||
Sequence">Bidirectional
|
||||
Sequence</a>. These concepts pertain to sequence traversal.
|
||||
</p>
|
||||
<a name="fusion.sequence.concepts.associativity"></a><h5>
|
||||
<a name="id2665909"></a>
|
||||
<a class="link" href="concepts.html#fusion.sequence.concepts.associativity">Associativity</a>
|
||||
</h5>
|
||||
<a name="fusion.sequence.concepts.associativity"></a><h4>
|
||||
<a name="id490756"></a>
|
||||
<a href="concepts.html#fusion.sequence.concepts.associativity">Associativity</a>
|
||||
</h4>
|
||||
<p>
|
||||
The <a class="link" href="concepts/associative_sequence.html" title="Associative Sequence">Associative
|
||||
The <a href="concepts/associative_sequence.html" title="Associative
|
||||
Sequence">Associative
|
||||
Sequence</a> concept is orthogonal to traversal. An Associative Sequence
|
||||
allows efficient retrieval of elements based on keys.
|
||||
</p>
|
||||
|
||||
@@ -1,21 +1,23 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Associative Sequence</title>
|
||||
<title>Associative
|
||||
Sequence</title>
|
||||
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../concepts.html" title="Concepts">
|
||||
<link rel="prev" href="random_access_sequence.html" title="Random Access Sequence">
|
||||
<link rel="prev" href="random_access_sequence.html" title="Random
|
||||
Access Sequence">
|
||||
<link rel="next" href="../intrinsic.html" title="Intrinsic">
|
||||
</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="../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,13 +26,13 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.sequence.concepts.associative_sequence"></a><a class="link" href="associative_sequence.html" title="Associative Sequence">Associative
|
||||
Sequence</a>
|
||||
</h4></div></div></div>
|
||||
<a name="fusion.sequence.concepts.associative_sequence.description"></a><h6>
|
||||
<a name="id2670661"></a>
|
||||
<a class="link" href="associative_sequence.html#fusion.sequence.concepts.associative_sequence.description">Description</a>
|
||||
</h6>
|
||||
<a name="fusion.sequence.concepts.associative_sequence"></a><a href="associative_sequence.html" title="Associative
|
||||
Sequence">Associative
|
||||
Sequence</a></h4></div></div></div>
|
||||
<a name="fusion.sequence.concepts.associative_sequence.description"></a><h5>
|
||||
<a name="id496069"></a>
|
||||
<a href="associative_sequence.html#fusion.sequence.concepts.associative_sequence.description">Description</a>
|
||||
</h5>
|
||||
<p>
|
||||
An Associative Sequence allows efficient retrieval of elements based on
|
||||
keys. Like associative sequences in <a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a>,
|
||||
@@ -46,33 +48,33 @@
|
||||
<div class="variablelist">
|
||||
<p class="title"><b>Notation</b></p>
|
||||
<dl>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">s</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">s</span></tt></span></dt>
|
||||
<dd><p>
|
||||
An Associative Sequence
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">S</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">S</span></tt></span></dt>
|
||||
<dd><p>
|
||||
An Associative Sequence type
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">K</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">K</span></tt></span></dt>
|
||||
<dd><p>
|
||||
An arbitrary <span class="emphasis"><em>key</em></span> type
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">o</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">o</span></tt></span></dt>
|
||||
<dd><p>
|
||||
An arbitrary object
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">e</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">e</span></tt></span></dt>
|
||||
<dd><p>
|
||||
A Sequence element
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<a name="fusion.sequence.concepts.associative_sequence.valid_expressions"></a><h6>
|
||||
<a name="id2670833"></a>
|
||||
<a class="link" href="associative_sequence.html#fusion.sequence.concepts.associative_sequence.valid_expressions">Valid
|
||||
<a name="fusion.sequence.concepts.associative_sequence.valid_expressions"></a><h5>
|
||||
<a name="id496259"></a>
|
||||
<a href="associative_sequence.html#fusion.sequence.concepts.associative_sequence.valid_expressions">Valid
|
||||
Expressions</a>
|
||||
</h6>
|
||||
</h5>
|
||||
<p>
|
||||
For any Associative Sequence the following expressions must be valid:
|
||||
</p>
|
||||
@@ -109,7 +111,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/has_key.html" title="has_key"><code class="computeroutput"><span class="identifier">has_key</span></code></a><span class="special"><</span><span class="identifier">K</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/has_key.html" title="has_key"><tt class="computeroutput"><span class="identifier">has_key</span></tt></a><span class="special"><</span><span class="identifier">K</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -131,7 +133,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">at_key</span></code></a><span class="special"><</span><span class="identifier">K</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">at_key</span></tt></a><span class="special"><</span><span class="identifier">K</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -152,8 +154,8 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">at_key</span></code></a><span class="special"><</span><span class="identifier">K</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span>
|
||||
<span class="special">=</span> <span class="identifier">o</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">at_key</span></tt></a><span class="special"><</span><span class="identifier">K</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span>
|
||||
<span class="special">=</span> <span class="identifier">o</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -163,9 +165,9 @@
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">s</span></code> is mutable and
|
||||
<code class="computeroutput"><span class="identifier">e</span> <span class="special">=</span>
|
||||
<span class="identifier">o</span></code>, where <code class="computeroutput"><span class="identifier">e</span></code> is the first element in the
|
||||
<tt class="computeroutput"><span class="identifier">s</span></tt> is mutable and
|
||||
<tt class="computeroutput"><span class="identifier">e</span> <span class="special">=</span>
|
||||
<span class="identifier">o</span></tt>, where <tt class="computeroutput"><span class="identifier">e</span></tt> is the first element in the
|
||||
sequence, is a valid expression.
|
||||
</p>
|
||||
</td>
|
||||
@@ -177,11 +179,11 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.concepts.associative_sequence.result_type_expressions"></a><h6>
|
||||
<a name="id2671178"></a>
|
||||
<a class="link" href="associative_sequence.html#fusion.sequence.concepts.associative_sequence.result_type_expressions">Result
|
||||
<a name="fusion.sequence.concepts.associative_sequence.result_type_expressions"></a><h5>
|
||||
<a name="id496643"></a>
|
||||
<a href="associative_sequence.html#fusion.sequence.concepts.associative_sequence.result_type_expressions">Result
|
||||
Type Expressions</a>
|
||||
</h6>
|
||||
</h5>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -203,8 +205,8 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/metafunctions/has_key.html" title="has_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">has_key</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span>
|
||||
<span class="identifier">K</span><span class="special">>::</span><span class="identifier">type</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/metafunctions/has_key.html" title="has_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">has_key</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span>
|
||||
<span class="identifier">K</span><span class="special">>::</span><span class="identifier">type</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -216,8 +218,8 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/metafunctions/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span>
|
||||
<span class="identifier">K</span><span class="special">>::</span><span class="identifier">type</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/metafunctions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span>
|
||||
<span class="identifier">K</span><span class="special">>::</span><span class="identifier">type</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -229,8 +231,8 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/metafunctions/value_at_key.html" title="value_at_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at_key</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span>
|
||||
<span class="identifier">K</span><span class="special">>::</span><span class="identifier">type</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/metafunctions/value_at_key.html" title="value_at_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at_key</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span>
|
||||
<span class="identifier">K</span><span class="special">>::</span><span class="identifier">type</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -241,22 +243,19 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<div class="sidebar">
|
||||
<p class="title"><b></b></p>
|
||||
<p>
|
||||
<span class="inlinemediaobject"><img src="../../../images/note.png" alt="note"></span> <code class="computeroutput"><a class="link" href="../intrinsic/metafunctions/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">K</span><span class="special">></span></code> returns the actual type returned by
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">at_key</span></code></a><span class="special"><</span><span class="identifier">K</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></code>. In
|
||||
<div class="sidebar"><p>
|
||||
<span class="inlinemediaobject"><img src="../../../images/note.png" alt="note"></span> <tt class="computeroutput"><a href="../intrinsic/metafunctions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">K</span><span class="special">></span></tt> returns the actual type returned by
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">at_key</span></tt></a><span class="special"><</span><span class="identifier">K</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></tt>. In
|
||||
most cases, this is a reference. Hence, there is no way to know the exact
|
||||
element type using <code class="computeroutput"><a class="link" href="../intrinsic/metafunctions/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">K</span><span class="special">></span></code>.The element at <code class="computeroutput"><span class="identifier">K</span></code>
|
||||
element type using <tt class="computeroutput"><a href="../intrinsic/metafunctions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">K</span><span class="special">></span></tt>.The element at <tt class="computeroutput"><span class="identifier">K</span></tt>
|
||||
may actually be a reference to begin with. For this purpose, you can use
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/metafunctions/value_at_key.html" title="value_at_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at_key</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">N</span><span class="special">></span></code>.
|
||||
</p>
|
||||
</div>
|
||||
<a name="fusion.sequence.concepts.associative_sequence.expression_semantics"></a><h6>
|
||||
<a name="id2671695"></a>
|
||||
<a class="link" href="associative_sequence.html#fusion.sequence.concepts.associative_sequence.expression_semantics">Expression
|
||||
<tt class="computeroutput"><a href="../intrinsic/metafunctions/value_at_key.html" title="value_at_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at_key</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">N</span><span class="special">></span></tt>.
|
||||
</p></div>
|
||||
<a name="fusion.sequence.concepts.associative_sequence.expression_semantics"></a><h5>
|
||||
<a name="id497218"></a>
|
||||
<a href="associative_sequence.html#fusion.sequence.concepts.associative_sequence.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
</h5>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -278,42 +277,42 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/has_key.html" title="has_key"><code class="computeroutput"><span class="identifier">has_key</span></code></a><span class="special"><</span><span class="identifier">K</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/has_key.html" title="has_key"><tt class="computeroutput"><span class="identifier">has_key</span></tt></a><span class="special"><</span><span class="identifier">K</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
A boolean Integral Constant <code class="computeroutput"><span class="identifier">c</span></code>
|
||||
such that <code class="computeroutput"><span class="identifier">c</span><span class="special">::</span><span class="identifier">value</span> <span class="special">==</span>
|
||||
<span class="keyword">true</span></code> if and only if there
|
||||
is one or more elements with the key <code class="computeroutput"><span class="identifier">k</span></code>
|
||||
in <code class="computeroutput"><span class="identifier">s</span></code>; see <a class="link" href="../intrinsic/functions/has_key.html" title="has_key"><code class="computeroutput"><span class="identifier">has_key</span></code></a>.
|
||||
A boolean Integral Constant <tt class="computeroutput"><span class="identifier">c</span></tt>
|
||||
such that <tt class="computeroutput"><span class="identifier">c</span><span class="special">::</span><span class="identifier">value</span> <span class="special">==</span>
|
||||
<span class="keyword">true</span></tt> if and only if there
|
||||
is one or more elements with the key <tt class="computeroutput"><span class="identifier">k</span></tt>
|
||||
in <tt class="computeroutput"><span class="identifier">s</span></tt>; see <a href="../intrinsic/functions/has_key.html" title="has_key"><tt class="computeroutput"><span class="identifier">has_key</span></tt></a>.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">at_key</span></code></a><span class="special"><</span><span class="identifier">K</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">at_key</span></tt></a><span class="special"><</span><span class="identifier">K</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The element associated with the key <code class="computeroutput"><span class="identifier">K</span></code>
|
||||
in the sequence <code class="computeroutput"><span class="identifier">s</span></code>;
|
||||
see <a class="link" href="../intrinsic/functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a>.
|
||||
The element associated with the key <tt class="computeroutput"><span class="identifier">K</span></tt>
|
||||
in the sequence <tt class="computeroutput"><span class="identifier">s</span></tt>;
|
||||
see <a href="../intrinsic/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a>.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.concepts.associative_sequence.models"></a><h6>
|
||||
<a name="id2671984"></a>
|
||||
<a class="link" href="associative_sequence.html#fusion.sequence.concepts.associative_sequence.models">Models</a>
|
||||
</h6>
|
||||
<a name="fusion.sequence.concepts.associative_sequence.models"></a><h5>
|
||||
<a name="id497540"></a>
|
||||
<a href="associative_sequence.html#fusion.sequence.concepts.associative_sequence.models">Models</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc">
|
||||
<li><a class="link" href="../../container/set.html" title="set"><code class="computeroutput"><span class="identifier">set</span></code></a></li>
|
||||
<li><a class="link" href="../../container/map.html" title="map"><code class="computeroutput"><span class="identifier">map</span></code></a></li>
|
||||
<li><a href="../../container/set.html" title="set"><tt class="computeroutput"><span class="identifier">set</span></tt></a></li>
|
||||
<li><a href="../../container/map.html" title="map"><tt class="computeroutput"><span class="identifier">map</span></tt></a></li>
|
||||
</ul></div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -1,21 +1,24 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Bidirectional Sequence</title>
|
||||
<title>Bidirectional
|
||||
Sequence</title>
|
||||
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../concepts.html" title="Concepts">
|
||||
<link rel="prev" href="forward_sequence.html" title="Forward Sequence">
|
||||
<link rel="next" href="random_access_sequence.html" title="Random Access Sequence">
|
||||
<link rel="prev" href="forward_sequence.html" title="Forward
|
||||
Sequence">
|
||||
<link rel="next" href="random_access_sequence.html" title="Random
|
||||
Access Sequence">
|
||||
</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="../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,54 +27,58 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.sequence.concepts.bidirectional_sequence"></a><a class="link" href="bidirectional_sequence.html" title="Bidirectional Sequence">Bidirectional
|
||||
Sequence</a>
|
||||
</h4></div></div></div>
|
||||
<a name="fusion.sequence.concepts.bidirectional_sequence.description"></a><h6>
|
||||
<a name="id2668006"></a>
|
||||
<a class="link" href="bidirectional_sequence.html#fusion.sequence.concepts.bidirectional_sequence.description">Description</a>
|
||||
</h6>
|
||||
<a name="fusion.sequence.concepts.bidirectional_sequence"></a><a href="bidirectional_sequence.html" title="Bidirectional
|
||||
Sequence">Bidirectional
|
||||
Sequence</a></h4></div></div></div>
|
||||
<a name="fusion.sequence.concepts.bidirectional_sequence.description"></a><h5>
|
||||
<a name="id493098"></a>
|
||||
<a href="bidirectional_sequence.html#fusion.sequence.concepts.bidirectional_sequence.description">Description</a>
|
||||
</h5>
|
||||
<p>
|
||||
A Bidirectional Sequence is a <a class="link" href="forward_sequence.html" title="Forward Sequence">Forward
|
||||
Sequence</a> whose iterators model <a class="link" href="../../iterator/concepts/bidirectional_iterator.html" title="Bidirectional Iterator">Bidirectional
|
||||
A Bidirectional Sequence is a <a href="forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a> whose iterators model <a href="../../iterator/concepts/bidirectional_iterator.html" title="Bidirectional
|
||||
Iterator">Bidirectional
|
||||
Iterator</a>.
|
||||
</p>
|
||||
<a name="fusion.sequence.concepts.bidirectional_sequence.refinement_of"></a><h6>
|
||||
<a name="id2668050"></a>
|
||||
<a class="link" href="bidirectional_sequence.html#fusion.sequence.concepts.bidirectional_sequence.refinement_of">Refinement
|
||||
<a name="fusion.sequence.concepts.bidirectional_sequence.refinement_of"></a><h5>
|
||||
<a name="id493148"></a>
|
||||
<a href="bidirectional_sequence.html#fusion.sequence.concepts.bidirectional_sequence.refinement_of">Refinement
|
||||
of</a>
|
||||
</h6>
|
||||
</h5>
|
||||
<p>
|
||||
<a class="link" href="forward_sequence.html" title="Forward Sequence">Forward Sequence</a>
|
||||
<a href="forward_sequence.html" title="Forward
|
||||
Sequence">Forward Sequence</a>
|
||||
</p>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b>Notation</b></p>
|
||||
<dl>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">s</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">s</span></tt></span></dt>
|
||||
<dd><p>
|
||||
A Forward Sequence
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">S</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">S</span></tt></span></dt>
|
||||
<dd><p>
|
||||
A Forward Sequence type
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">o</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">o</span></tt></span></dt>
|
||||
<dd><p>
|
||||
An arbitrary object
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">e</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">e</span></tt></span></dt>
|
||||
<dd><p>
|
||||
A Sequence element
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<a name="fusion.sequence.concepts.bidirectional_sequence.valid_expressions"></a><h6>
|
||||
<a name="id2668174"></a>
|
||||
<a class="link" href="bidirectional_sequence.html#fusion.sequence.concepts.bidirectional_sequence.valid_expressions">Valid
|
||||
<a name="fusion.sequence.concepts.bidirectional_sequence.valid_expressions"></a><h5>
|
||||
<a name="id493289"></a>
|
||||
<a href="bidirectional_sequence.html#fusion.sequence.concepts.bidirectional_sequence.valid_expressions">Valid
|
||||
Expressions</a>
|
||||
</h6>
|
||||
</h5>
|
||||
<p>
|
||||
In addition to the requirements defined in <a class="link" href="forward_sequence.html" title="Forward Sequence">Forward
|
||||
In addition to the requirements defined in <a href="forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>, for any Bidirectional Sequence the following must be met:
|
||||
</p>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -107,12 +114,13 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../../iterator/concepts/bidirectional_iterator.html" title="Bidirectional Iterator">Bidirectional
|
||||
<a href="../../iterator/concepts/bidirectional_iterator.html" title="Bidirectional
|
||||
Iterator">Bidirectional
|
||||
Iterator</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -129,12 +137,13 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../../iterator/concepts/bidirectional_iterator.html" title="Bidirectional Iterator">Bidirectional
|
||||
<a href="../../iterator/concepts/bidirectional_iterator.html" title="Bidirectional
|
||||
Iterator">Bidirectional
|
||||
Iterator</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -151,7 +160,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/back.html" title="back"><code class="computeroutput"><span class="identifier">back</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/back.html" title="back"><tt class="computeroutput"><span class="identifier">back</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -172,8 +181,8 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/back.html" title="back"><code class="computeroutput"><span class="identifier">back</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span>
|
||||
<span class="special">=</span> <span class="identifier">o</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/back.html" title="back"><tt class="computeroutput"><span class="identifier">back</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span>
|
||||
<span class="special">=</span> <span class="identifier">o</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -183,9 +192,9 @@
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">s</span></code> is mutable and
|
||||
<code class="computeroutput"><span class="identifier">e</span> <span class="special">=</span>
|
||||
<span class="identifier">o</span></code>, where <code class="computeroutput"><span class="identifier">e</span></code> is the first element in the
|
||||
<tt class="computeroutput"><span class="identifier">s</span></tt> is mutable and
|
||||
<tt class="computeroutput"><span class="identifier">e</span> <span class="special">=</span>
|
||||
<span class="identifier">o</span></tt>, where <tt class="computeroutput"><span class="identifier">e</span></tt> is the first element in the
|
||||
sequence, is a valid expression.
|
||||
</p>
|
||||
</td>
|
||||
@@ -197,11 +206,11 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.concepts.bidirectional_sequence.result_type_expressions"></a><h6>
|
||||
<a name="id2668568"></a>
|
||||
<a class="link" href="bidirectional_sequence.html#fusion.sequence.concepts.bidirectional_sequence.result_type_expressions">Result
|
||||
<a name="fusion.sequence.concepts.bidirectional_sequence.result_type_expressions"></a><h5>
|
||||
<a name="id493728"></a>
|
||||
<a href="bidirectional_sequence.html#fusion.sequence.concepts.bidirectional_sequence.result_type_expressions">Result
|
||||
Type Expressions</a>
|
||||
</h6>
|
||||
</h5>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -223,7 +232,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/metafunctions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/metafunctions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -235,7 +244,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../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">S</span><span class="special">>::</span><span class="identifier">type</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/metafunctions/end.html" title="end"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">end</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -247,7 +256,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/metafunctions/back.html" title="back"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">back</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/metafunctions/back.html" title="back"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">back</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -258,14 +267,15 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.concepts.bidirectional_sequence.expression_semantics"></a><h6>
|
||||
<a name="id2668816"></a>
|
||||
<a class="link" href="bidirectional_sequence.html#fusion.sequence.concepts.bidirectional_sequence.expression_semantics">Expression
|
||||
<a name="fusion.sequence.concepts.bidirectional_sequence.expression_semantics"></a><h5>
|
||||
<a name="id494005"></a>
|
||||
<a href="bidirectional_sequence.html#fusion.sequence.concepts.bidirectional_sequence.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
</h5>
|
||||
<p>
|
||||
The semantics of an expression are defined only where they differ from,
|
||||
or are not defined in <a class="link" href="forward_sequence.html" title="Forward Sequence">Forward
|
||||
or are not defined in <a href="forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>.
|
||||
</p>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -288,35 +298,35 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/back.html" title="back"><code class="computeroutput"><span class="identifier">back</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/back.html" title="back"><tt class="computeroutput"><span class="identifier">back</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The last element in the sequence; see <a class="link" href="../intrinsic/functions/back.html" title="back"><code class="computeroutput"><span class="identifier">back</span></code></a>.
|
||||
The last element in the sequence; see <a href="../intrinsic/functions/back.html" title="back"><tt class="computeroutput"><span class="identifier">back</span></tt></a>.
|
||||
</p>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.concepts.bidirectional_sequence.models"></a><h6>
|
||||
<a name="id2668951"></a>
|
||||
<a class="link" href="bidirectional_sequence.html#fusion.sequence.concepts.bidirectional_sequence.models">Models</a>
|
||||
</h6>
|
||||
<a name="fusion.sequence.concepts.bidirectional_sequence.models"></a><h5>
|
||||
<a name="id494158"></a>
|
||||
<a href="bidirectional_sequence.html#fusion.sequence.concepts.bidirectional_sequence.models">Models</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc">
|
||||
<li><a class="link" href="../../adapted/std__pair.html" title="std::pair"><code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></code></a></li>
|
||||
<li><a class="link" href="../../adapted/boost__array.html" title="boost::array"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></code></a></li>
|
||||
<li><a class="link" href="../../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a></li>
|
||||
<li><a class="link" href="../../view/reverse_view.html" title="reverse_view"><code class="computeroutput"><span class="identifier">reverse_view</span></code></a></li>
|
||||
<li><a href="../../adapted/std__pair.html" title="std::pair"><tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></tt></a></li>
|
||||
<li><a href="../../adapted/boost__array.html" title="boost::array"><tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></tt></a></li>
|
||||
<li><a href="../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a></li>
|
||||
<li><a href="../../view/reverse_view.html" title="reverse_view"><tt class="computeroutput"><span class="identifier">reverse_view</span></tt></a></li>
|
||||
<li>
|
||||
<a class="link" href="../../view/iterator_range.html" title="iterator_range"><code class="computeroutput"><span class="identifier">iterator_range</span></code></a>
|
||||
<a href="../../view/iterator_range.html" title="iterator_range"><tt class="computeroutput"><span class="identifier">iterator_range</span></tt></a>
|
||||
(where adapted sequence is a Bidirectional Sequence)
|
||||
</li>
|
||||
<li>
|
||||
<a class="link" href="../../view/transform_view.html" title="transform_view"><code class="computeroutput"><span class="identifier">transform_view</span></code></a>
|
||||
<a href="../../view/transform_view.html" title="transform_view"><tt class="computeroutput"><span class="identifier">transform_view</span></tt></a>
|
||||
(where adapted sequence is a Bidirectional Sequence)
|
||||
</li>
|
||||
<li>
|
||||
<a class="link" href="../../view/zip_view.html" title="zip_view"><code class="computeroutput"><span class="identifier">zip_view</span></code></a>
|
||||
<a href="../../view/zip_view.html" title="zip_view"><tt class="computeroutput"><span class="identifier">zip_view</span></tt></a>
|
||||
(where adapted sequences are models Bidirectional Sequence)
|
||||
</li>
|
||||
</ul></div>
|
||||
|
||||
@@ -1,21 +1,23 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Forward Sequence</title>
|
||||
<title>Forward
|
||||
Sequence</title>
|
||||
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../concepts.html" title="Concepts">
|
||||
<link rel="prev" href="../concepts.html" title="Concepts">
|
||||
<link rel="next" href="bidirectional_sequence.html" title="Bidirectional Sequence">
|
||||
<link rel="next" href="bidirectional_sequence.html" title="Bidirectional
|
||||
Sequence">
|
||||
</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="../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,13 +26,13 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.sequence.concepts.forward_sequence"></a><a class="link" href="forward_sequence.html" title="Forward Sequence">Forward
|
||||
Sequence</a>
|
||||
</h4></div></div></div>
|
||||
<a name="fusion.sequence.concepts.forward_sequence.description"></a><h6>
|
||||
<a name="id2665963"></a>
|
||||
<a class="link" href="forward_sequence.html#fusion.sequence.concepts.forward_sequence.description">Description</a>
|
||||
</h6>
|
||||
<a name="fusion.sequence.concepts.forward_sequence"></a><a href="forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a></h4></div></div></div>
|
||||
<a name="fusion.sequence.concepts.forward_sequence.description"></a><h5>
|
||||
<a name="id490819"></a>
|
||||
<a href="forward_sequence.html#fusion.sequence.concepts.forward_sequence.description">Description</a>
|
||||
</h5>
|
||||
<p>
|
||||
A Forward Sequence is a Sequence whose elements are arranged in a definite
|
||||
order. The ordering is guaranteed not to change from iteration to iteration.
|
||||
@@ -41,29 +43,29 @@
|
||||
<div class="variablelist">
|
||||
<p class="title"><b>Notation</b></p>
|
||||
<dl>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">s</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">s</span></tt></span></dt>
|
||||
<dd><p>
|
||||
A Forward Sequence
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">S</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">S</span></tt></span></dt>
|
||||
<dd><p>
|
||||
A Forward Sequence type
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">o</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">o</span></tt></span></dt>
|
||||
<dd><p>
|
||||
An arbitrary object
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">e</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">e</span></tt></span></dt>
|
||||
<dd><p>
|
||||
A Sequence element
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<a name="fusion.sequence.concepts.forward_sequence.valid_expressions"></a><h6>
|
||||
<a name="id2666085"></a>
|
||||
<a class="link" href="forward_sequence.html#fusion.sequence.concepts.forward_sequence.valid_expressions">Valid
|
||||
<a name="fusion.sequence.concepts.forward_sequence.valid_expressions"></a><h5>
|
||||
<a name="id490955"></a>
|
||||
<a href="forward_sequence.html#fusion.sequence.concepts.forward_sequence.valid_expressions">Valid
|
||||
Expressions</a>
|
||||
</h6>
|
||||
</h5>
|
||||
<p>
|
||||
For any Forward Sequence the following expressions must be valid:
|
||||
</p>
|
||||
@@ -100,12 +102,13 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../../iterator/concepts/forward_iterator.html" title="Forward Iterator">Forward
|
||||
<a href="../../iterator/concepts/forward_iterator.html" title="Forward
|
||||
Iterator">Forward
|
||||
Iterator</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -122,12 +125,13 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../../iterator/concepts/forward_iterator.html" title="Forward Iterator">Forward
|
||||
<a href="../../iterator/concepts/forward_iterator.html" title="Forward
|
||||
Iterator">Forward
|
||||
Iterator</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -144,7 +148,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/size.html" title="size"><code class="computeroutput"><span class="identifier">size</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/size.html" title="size"><tt class="computeroutput"><span class="identifier">size</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -166,7 +170,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/empty.html" title="empty"><code class="computeroutput"><span class="identifier">empty</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/empty.html" title="empty"><tt class="computeroutput"><span class="identifier">empty</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -188,7 +192,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/front.html" title="front"><code class="computeroutput"><span class="identifier">front</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/front.html" title="front"><tt class="computeroutput"><span class="identifier">front</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -209,8 +213,8 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/front.html" title="front"><code class="computeroutput"><span class="identifier">front</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span>
|
||||
<span class="special">=</span> <span class="identifier">o</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/front.html" title="front"><tt class="computeroutput"><span class="identifier">front</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span>
|
||||
<span class="special">=</span> <span class="identifier">o</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -220,9 +224,9 @@
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">s</span></code> is mutable and
|
||||
<code class="computeroutput"><span class="identifier">e</span> <span class="special">=</span>
|
||||
<span class="identifier">o</span></code>, where <code class="computeroutput"><span class="identifier">e</span></code> is the first element in the
|
||||
<tt class="computeroutput"><span class="identifier">s</span></tt> is mutable and
|
||||
<tt class="computeroutput"><span class="identifier">e</span> <span class="special">=</span>
|
||||
<span class="identifier">o</span></tt>, where <tt class="computeroutput"><span class="identifier">e</span></tt> is the first element in the
|
||||
sequence, is a valid expression.
|
||||
</p>
|
||||
</td>
|
||||
@@ -234,11 +238,11 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.concepts.forward_sequence.result_type_expressions"></a><h6>
|
||||
<a name="id2666607"></a>
|
||||
<a class="link" href="forward_sequence.html#fusion.sequence.concepts.forward_sequence.result_type_expressions">Result
|
||||
<a name="fusion.sequence.concepts.forward_sequence.result_type_expressions"></a><h5>
|
||||
<a name="id491539"></a>
|
||||
<a href="forward_sequence.html#fusion.sequence.concepts.forward_sequence.result_type_expressions">Result
|
||||
Type Expressions</a>
|
||||
</h6>
|
||||
</h5>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -260,7 +264,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/metafunctions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/metafunctions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -272,7 +276,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../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">S</span><span class="special">>::</span><span class="identifier">type</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/metafunctions/end.html" title="end"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">end</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -284,7 +288,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../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">S</span><span class="special">>::</span><span class="identifier">type</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -296,7 +300,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/metafunctions/empty.html" title="empty"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">empty</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/metafunctions/empty.html" title="empty"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">empty</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -308,7 +312,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/metafunctions/front.html" title="front"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">front</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/metafunctions/front.html" title="front"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">front</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -319,11 +323,11 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.concepts.forward_sequence.expression_semantics"></a><h6>
|
||||
<a name="id2666982"></a>
|
||||
<a class="link" href="forward_sequence.html#fusion.sequence.concepts.forward_sequence.expression_semantics">Expression
|
||||
<a name="fusion.sequence.concepts.forward_sequence.expression_semantics"></a><h5>
|
||||
<a name="id491958"></a>
|
||||
<a href="forward_sequence.html#fusion.sequence.concepts.forward_sequence.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
</h5>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -345,113 +349,113 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
An iterator to the first element of the sequence; see <a class="link" href="../intrinsic/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a>.
|
||||
An iterator to the first element of the sequence; see <a href="../intrinsic/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a>.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
A past-the-end iterator to the sequence; see <a class="link" href="../intrinsic/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a>.
|
||||
A past-the-end iterator to the sequence; see <a href="../intrinsic/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a>.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/size.html" title="size"><code class="computeroutput"><span class="identifier">size</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/size.html" title="size"><tt class="computeroutput"><span class="identifier">size</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The size of the sequence; see <a class="link" href="../intrinsic/functions/size.html" title="size"><code class="computeroutput"><span class="identifier">size</span></code></a>.
|
||||
The size of the sequence; see <a href="../intrinsic/functions/size.html" title="size"><tt class="computeroutput"><span class="identifier">size</span></tt></a>.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/empty.html" title="empty"><code class="computeroutput"><span class="identifier">empty</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/empty.html" title="empty"><tt class="computeroutput"><span class="identifier">empty</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
A boolean Integral Constant <code class="computeroutput"><span class="identifier">c</span></code>
|
||||
such that <code class="computeroutput"><span class="identifier">c</span><span class="special">::</span><span class="identifier">value</span> <span class="special">==</span>
|
||||
<span class="keyword">true</span></code> if and only if the
|
||||
sequence is empty; see <a class="link" href="../intrinsic/functions/empty.html" title="empty"><code class="computeroutput"><span class="identifier">empty</span></code></a>.
|
||||
A boolean Integral Constant <tt class="computeroutput"><span class="identifier">c</span></tt>
|
||||
such that <tt class="computeroutput"><span class="identifier">c</span><span class="special">::</span><span class="identifier">value</span> <span class="special">==</span>
|
||||
<span class="keyword">true</span></tt> if and only if the
|
||||
sequence is empty; see <a href="../intrinsic/functions/empty.html" title="empty"><tt class="computeroutput"><span class="identifier">empty</span></tt></a>.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/front.html" title="front"><code class="computeroutput"><span class="identifier">front</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/front.html" title="front"><tt class="computeroutput"><span class="identifier">front</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The first element in the sequence; see <a class="link" href="../intrinsic/functions/front.html" title="front"><code class="computeroutput"><span class="identifier">front</span></code></a>.
|
||||
The first element in the sequence; see <a href="../intrinsic/functions/front.html" title="front"><tt class="computeroutput"><span class="identifier">front</span></tt></a>.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.concepts.forward_sequence.invariants"></a><h6>
|
||||
<a name="id2667402"></a>
|
||||
<a class="link" href="forward_sequence.html#fusion.sequence.concepts.forward_sequence.invariants">Invariants</a>
|
||||
</h6>
|
||||
<a name="fusion.sequence.concepts.forward_sequence.invariants"></a><h5>
|
||||
<a name="id492427"></a>
|
||||
<a href="forward_sequence.html#fusion.sequence.concepts.forward_sequence.invariants">Invariants</a>
|
||||
</h5>
|
||||
<p>
|
||||
For any Forward Sequence s the following invariants always hold:
|
||||
</p>
|
||||
<div class="itemizedlist"><ul type="disc">
|
||||
<li>
|
||||
<code class="computeroutput"><span class="special">[</span><a class="link" href="../intrinsic/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">),</span> <a class="link" href="../intrinsic/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">))</span></code> is always a valid range.
|
||||
<tt class="computeroutput"><span class="special">[</span><a href="../intrinsic/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">),</span> <a href="../intrinsic/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">))</span></tt> is always a valid range.
|
||||
</li>
|
||||
<li>
|
||||
An <a class="link" href="../../algorithm.html" title="Algorithm">Algorithm</a> that iterates through
|
||||
the range <code class="computeroutput"><span class="special">[</span><a class="link" href="../intrinsic/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">),</span> <a class="link" href="../intrinsic/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">))</span></code> will pass through every element of
|
||||
<code class="computeroutput"><span class="identifier">s</span></code> exactly once.
|
||||
An <a href="../../algorithm.html" title="Algorithm">Algorithm</a> that iterates through
|
||||
the range <tt class="computeroutput"><span class="special">[</span><a href="../intrinsic/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">),</span> <a href="../intrinsic/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">))</span></tt> will pass through every element of
|
||||
<tt class="computeroutput"><span class="identifier">s</span></tt> exactly once.
|
||||
</li>
|
||||
<li>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
is identical to <code class="computeroutput"><a class="link" href="../intrinsic/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">))</span></code>
|
||||
if and only if <code class="computeroutput"><span class="identifier">s</span></code> is empty.
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
is identical to <tt class="computeroutput"><a href="../intrinsic/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">))</span></tt>
|
||||
if and only if <tt class="computeroutput"><span class="identifier">s</span></tt> is empty.
|
||||
</li>
|
||||
<li>
|
||||
Two different iterations through <code class="computeroutput"><span class="identifier">s</span></code>
|
||||
Two different iterations through <tt class="computeroutput"><span class="identifier">s</span></tt>
|
||||
will access its elements in the same order.
|
||||
</li>
|
||||
</ul></div>
|
||||
<a name="fusion.sequence.concepts.forward_sequence.models"></a><h6>
|
||||
<a name="id2667685"></a>
|
||||
<a class="link" href="forward_sequence.html#fusion.sequence.concepts.forward_sequence.models">Models</a>
|
||||
</h6>
|
||||
<a name="fusion.sequence.concepts.forward_sequence.models"></a><h5>
|
||||
<a name="id492740"></a>
|
||||
<a href="forward_sequence.html#fusion.sequence.concepts.forward_sequence.models">Models</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc">
|
||||
<li><a class="link" href="../../adapted/std__pair.html" title="std::pair"><code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></code></a></li>
|
||||
<li><a class="link" href="../../adapted/boost__array.html" title="boost::array"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></code></a></li>
|
||||
<li><a class="link" href="../../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a></li>
|
||||
<li><a class="link" href="../../container/cons.html" title="cons"><code class="computeroutput"><span class="identifier">cons</span></code></a></li>
|
||||
<li><a class="link" href="../../container/list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a></li>
|
||||
<li><a class="link" href="../../container/set.html" title="set"><code class="computeroutput"><span class="identifier">set</span></code></a></li>
|
||||
<li><a class="link" href="../../container/map.html" title="map"><code class="computeroutput"><span class="identifier">map</span></code></a></li>
|
||||
<li><a class="link" href="../../view/single_view.html" title="single_view"><code class="computeroutput"><span class="identifier">single_view</span></code></a></li>
|
||||
<li><a class="link" href="../../view/filter_view.html" title="filter_view"><code class="computeroutput"><span class="identifier">filter_view</span></code></a></li>
|
||||
<li><a class="link" href="../../view/iterator_range.html" title="iterator_range"><code class="computeroutput"><span class="identifier">iterator_range</span></code></a></li>
|
||||
<li><a class="link" href="../../view/joint_view.html" title="joint_view"><code class="computeroutput"><span class="identifier">joint_view</span></code></a></li>
|
||||
<li><a class="link" href="../../view/transform_view.html" title="transform_view"><code class="computeroutput"><span class="identifier">transform_view</span></code></a></li>
|
||||
<li><a class="link" href="../../view/reverse_view.html" title="reverse_view"><code class="computeroutput"><span class="identifier">reverse_view</span></code></a></li>
|
||||
<li><a class="link" href="../../view/zip_view.html" title="zip_view"><code class="computeroutput"><span class="identifier">zip_view</span></code></a></li>
|
||||
<li><a href="../../adapted/std__pair.html" title="std::pair"><tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></tt></a></li>
|
||||
<li><a href="../../adapted/boost__array.html" title="boost::array"><tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></tt></a></li>
|
||||
<li><a href="../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a></li>
|
||||
<li><a href="../../container/cons.html" title="cons"><tt class="computeroutput"><span class="identifier">cons</span></tt></a></li>
|
||||
<li><a href="../../container/list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a></li>
|
||||
<li><a href="../../container/set.html" title="set"><tt class="computeroutput"><span class="identifier">set</span></tt></a></li>
|
||||
<li><a href="../../container/map.html" title="map"><tt class="computeroutput"><span class="identifier">map</span></tt></a></li>
|
||||
<li><a href="../../view/single_view.html" title="single_view"><tt class="computeroutput"><span class="identifier">single_view</span></tt></a></li>
|
||||
<li><a href="../../view/filter_view.html" title="filter_view"><tt class="computeroutput"><span class="identifier">filter_view</span></tt></a></li>
|
||||
<li><a href="../../view/iterator_range.html" title="iterator_range"><tt class="computeroutput"><span class="identifier">iterator_range</span></tt></a></li>
|
||||
<li><a href="../../view/joint_view.html" title="joint_view"><tt class="computeroutput"><span class="identifier">joint_view</span></tt></a></li>
|
||||
<li><a href="../../view/transform_view.html" title="transform_view"><tt class="computeroutput"><span class="identifier">transform_view</span></tt></a></li>
|
||||
<li><a href="../../view/reverse_view.html" title="reverse_view"><tt class="computeroutput"><span class="identifier">reverse_view</span></tt></a></li>
|
||||
<li><a href="../../view/zip_view.html" title="zip_view"><tt class="computeroutput"><span class="identifier">zip_view</span></tt></a></li>
|
||||
</ul></div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -1,21 +1,24 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Random Access Sequence</title>
|
||||
<title>Random
|
||||
Access Sequence</title>
|
||||
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../concepts.html" title="Concepts">
|
||||
<link rel="prev" href="bidirectional_sequence.html" title="Bidirectional Sequence">
|
||||
<link rel="next" href="associative_sequence.html" title="Associative Sequence">
|
||||
<link rel="prev" href="bidirectional_sequence.html" title="Bidirectional
|
||||
Sequence">
|
||||
<link rel="next" href="associative_sequence.html" title="Associative
|
||||
Sequence">
|
||||
</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="../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,61 +27,65 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.sequence.concepts.random_access_sequence"></a><a class="link" href="random_access_sequence.html" title="Random Access Sequence">Random
|
||||
Access Sequence</a>
|
||||
</h4></div></div></div>
|
||||
<a name="fusion.sequence.concepts.random_access_sequence.description"></a><h6>
|
||||
<a name="id2669146"></a>
|
||||
<a class="link" href="random_access_sequence.html#fusion.sequence.concepts.random_access_sequence.description">Description</a>
|
||||
</h6>
|
||||
<a name="fusion.sequence.concepts.random_access_sequence"></a><a href="random_access_sequence.html" title="Random
|
||||
Access Sequence">Random
|
||||
Access Sequence</a></h4></div></div></div>
|
||||
<a name="fusion.sequence.concepts.random_access_sequence.description"></a><h5>
|
||||
<a name="id494377"></a>
|
||||
<a href="random_access_sequence.html#fusion.sequence.concepts.random_access_sequence.description">Description</a>
|
||||
</h5>
|
||||
<p>
|
||||
A Random Access Sequence is a <a class="link" href="bidirectional_sequence.html" title="Bidirectional Sequence">Bidirectional
|
||||
Sequence</a> whose iterators model <a class="link" href="../../iterator/concepts/random_access_iterator.html" title="Random Access Iterator">Random
|
||||
A Random Access Sequence is a <a href="bidirectional_sequence.html" title="Bidirectional
|
||||
Sequence">Bidirectional
|
||||
Sequence</a> whose iterators model <a href="../../iterator/concepts/random_access_iterator.html" title="Random
|
||||
Access Iterator">Random
|
||||
Access Iterator</a>. It guarantees constant time access to arbitrary
|
||||
sequence elements.
|
||||
</p>
|
||||
<a name="fusion.sequence.concepts.random_access_sequence.refinement_of"></a><h6>
|
||||
<a name="id2669191"></a>
|
||||
<a class="link" href="random_access_sequence.html#fusion.sequence.concepts.random_access_sequence.refinement_of">Refinement
|
||||
<a name="fusion.sequence.concepts.random_access_sequence.refinement_of"></a><h5>
|
||||
<a name="id494429"></a>
|
||||
<a href="random_access_sequence.html#fusion.sequence.concepts.random_access_sequence.refinement_of">Refinement
|
||||
of</a>
|
||||
</h6>
|
||||
</h5>
|
||||
<p>
|
||||
<a class="link" href="bidirectional_sequence.html" title="Bidirectional Sequence">Bidirectional
|
||||
<a href="bidirectional_sequence.html" title="Bidirectional
|
||||
Sequence">Bidirectional
|
||||
Sequence</a>
|
||||
</p>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b>Notation</b></p>
|
||||
<dl>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">s</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">s</span></tt></span></dt>
|
||||
<dd><p>
|
||||
A Random Access Sequence
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">S</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">S</span></tt></span></dt>
|
||||
<dd><p>
|
||||
A Random Access Sequence type
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">N</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">N</span></tt></span></dt>
|
||||
<dd><p>
|
||||
An <a href="http://www.boost.org/libs/mpl/doc/refmanual/integral-constant.html" target="_top">MPL
|
||||
Integral Constant</a>
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">o</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">o</span></tt></span></dt>
|
||||
<dd><p>
|
||||
An arbitrary object
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">e</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">e</span></tt></span></dt>
|
||||
<dd><p>
|
||||
A Sequence element
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<a name="fusion.sequence.concepts.random_access_sequence.valid_expressions"></a><h6>
|
||||
<a name="id2669344"></a>
|
||||
<a class="link" href="random_access_sequence.html#fusion.sequence.concepts.random_access_sequence.valid_expressions">Valid
|
||||
<a name="fusion.sequence.concepts.random_access_sequence.valid_expressions"></a><h5>
|
||||
<a name="id494600"></a>
|
||||
<a href="random_access_sequence.html#fusion.sequence.concepts.random_access_sequence.valid_expressions">Valid
|
||||
Expressions</a>
|
||||
</h6>
|
||||
</h5>
|
||||
<p>
|
||||
In addition to the requirements defined in <a class="link" href="bidirectional_sequence.html" title="Bidirectional Sequence">Bidirectional
|
||||
In addition to the requirements defined in <a href="bidirectional_sequence.html" title="Bidirectional
|
||||
Sequence">Bidirectional
|
||||
Sequence</a>, for any Random Access Sequence the following must be met:
|
||||
</p>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -114,12 +121,13 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../../iterator/concepts/random_access_iterator.html" title="Random Access Iterator">Random
|
||||
<a href="../../iterator/concepts/random_access_iterator.html" title="Random
|
||||
Access Iterator">Random
|
||||
Access Iterator</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -136,12 +144,13 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../../iterator/concepts/random_access_iterator.html" title="Random Access Iterator">Random
|
||||
<a href="../../iterator/concepts/random_access_iterator.html" title="Random
|
||||
Access Iterator">Random
|
||||
Access Iterator</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -158,7 +167,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -179,8 +188,8 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span>
|
||||
<span class="special">=</span> <span class="identifier">o</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span>
|
||||
<span class="special">=</span> <span class="identifier">o</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -190,9 +199,9 @@
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">s</span></code> is mutable and
|
||||
<code class="computeroutput"><span class="identifier">e</span> <span class="special">=</span>
|
||||
<span class="identifier">o</span></code>, where <code class="computeroutput"><span class="identifier">e</span></code> is the first element in the
|
||||
<tt class="computeroutput"><span class="identifier">s</span></tt> is mutable and
|
||||
<tt class="computeroutput"><span class="identifier">e</span> <span class="special">=</span>
|
||||
<span class="identifier">o</span></tt>, where <tt class="computeroutput"><span class="identifier">e</span></tt> is the first element in the
|
||||
sequence, is a valid expression.
|
||||
</p>
|
||||
</td>
|
||||
@@ -204,11 +213,11 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.concepts.random_access_sequence.result_type_expressions"></a><h6>
|
||||
<a name="id2669758"></a>
|
||||
<a class="link" href="random_access_sequence.html#fusion.sequence.concepts.random_access_sequence.result_type_expressions">Result
|
||||
<a name="fusion.sequence.concepts.random_access_sequence.result_type_expressions"></a><h5>
|
||||
<a name="id495059"></a>
|
||||
<a href="random_access_sequence.html#fusion.sequence.concepts.random_access_sequence.result_type_expressions">Result
|
||||
Type Expressions</a>
|
||||
</h6>
|
||||
</h5>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -230,7 +239,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/metafunctions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/metafunctions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -242,7 +251,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../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">S</span><span class="special">>::</span><span class="identifier">type</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/metafunctions/end.html" title="end"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">end</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -254,8 +263,8 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/metafunctions/at.html" title="at"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span>
|
||||
<span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/metafunctions/at.html" title="at"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span>
|
||||
<span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -267,8 +276,8 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/metafunctions/value_at.html" title="value_at"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span>
|
||||
<span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/metafunctions/value_at.html" title="value_at"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span>
|
||||
<span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -279,25 +288,23 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<div class="sidebar">
|
||||
<p class="title"><b></b></p>
|
||||
<p>
|
||||
<span class="inlinemediaobject"><img src="../../../images/note.png" alt="note"></span> <code class="computeroutput"><a class="link" href="../intrinsic/metafunctions/at.html" title="at"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">N</span><span class="special">></span></code> returns the actual type returned by
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></code>. In
|
||||
<div class="sidebar"><p>
|
||||
<span class="inlinemediaobject"><img src="../../../images/note.png" alt="note"></span> <tt class="computeroutput"><a href="../intrinsic/metafunctions/at.html" title="at"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">N</span><span class="special">></span></tt> returns the actual type returned by
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></tt>. In
|
||||
most cases, this is a reference. Hence, there is no way to know the exact
|
||||
element type using <code class="computeroutput"><a class="link" href="../intrinsic/metafunctions/at.html" title="at"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">N</span><span class="special">></span></code>.The element at <code class="computeroutput"><span class="identifier">N</span></code>
|
||||
element type using <tt class="computeroutput"><a href="../intrinsic/metafunctions/at.html" title="at"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">N</span><span class="special">></span></tt>.The element at <tt class="computeroutput"><span class="identifier">N</span></tt>
|
||||
may actually be a reference to begin with. For this purpose, you can use
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/metafunctions/value_at.html" title="value_at"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">N</span><span class="special">></span></code>.
|
||||
</p>
|
||||
</div>
|
||||
<a name="fusion.sequence.concepts.random_access_sequence.expression_semantics"></a><h6>
|
||||
<a name="id2670323"></a>
|
||||
<a class="link" href="random_access_sequence.html#fusion.sequence.concepts.random_access_sequence.expression_semantics">Expression
|
||||
<tt class="computeroutput"><a href="../intrinsic/metafunctions/value_at.html" title="value_at"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">N</span><span class="special">></span></tt>.
|
||||
</p></div>
|
||||
<a name="fusion.sequence.concepts.random_access_sequence.expression_semantics"></a><h5>
|
||||
<a name="id495690"></a>
|
||||
<a href="random_access_sequence.html#fusion.sequence.concepts.random_access_sequence.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
</h5>
|
||||
<p>
|
||||
The semantics of an expression are defined only where they differ from,
|
||||
or are not defined in <a class="link" href="bidirectional_sequence.html" title="Bidirectional Sequence">Bidirectional
|
||||
or are not defined in <a href="bidirectional_sequence.html" title="Bidirectional
|
||||
Sequence">Bidirectional
|
||||
Sequence</a>.
|
||||
</p>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -320,35 +327,35 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><a class="link" href="../intrinsic/functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
<tt class="computeroutput"><a href="../intrinsic/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The Nth element from the beginning of the sequence; see <a class="link" href="../intrinsic/functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a>.
|
||||
The Nth element from the beginning of the sequence; see <a href="../intrinsic/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a>.
|
||||
</p>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.concepts.random_access_sequence.models"></a><h6>
|
||||
<a name="id2670466"></a>
|
||||
<a class="link" href="random_access_sequence.html#fusion.sequence.concepts.random_access_sequence.models">Models</a>
|
||||
</h6>
|
||||
<a name="fusion.sequence.concepts.random_access_sequence.models"></a><h5>
|
||||
<a name="id495851"></a>
|
||||
<a href="random_access_sequence.html#fusion.sequence.concepts.random_access_sequence.models">Models</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc">
|
||||
<li><a class="link" href="../../adapted/std__pair.html" title="std::pair"><code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></code></a></li>
|
||||
<li><a class="link" href="../../adapted/boost__array.html" title="boost::array"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></code></a></li>
|
||||
<li><a class="link" href="../../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a></li>
|
||||
<li><a class="link" href="../../view/reverse_view.html" title="reverse_view"><code class="computeroutput"><span class="identifier">reverse_view</span></code></a></li>
|
||||
<li><a href="../../adapted/std__pair.html" title="std::pair"><tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></tt></a></li>
|
||||
<li><a href="../../adapted/boost__array.html" title="boost::array"><tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></tt></a></li>
|
||||
<li><a href="../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a></li>
|
||||
<li><a href="../../view/reverse_view.html" title="reverse_view"><tt class="computeroutput"><span class="identifier">reverse_view</span></tt></a></li>
|
||||
<li>
|
||||
<a class="link" href="../../view/iterator_range.html" title="iterator_range"><code class="computeroutput"><span class="identifier">iterator_range</span></code></a>
|
||||
<a href="../../view/iterator_range.html" title="iterator_range"><tt class="computeroutput"><span class="identifier">iterator_range</span></tt></a>
|
||||
(where adapted sequence is a Random Access Sequence)
|
||||
</li>
|
||||
<li>
|
||||
<a class="link" href="../../view/transform_view.html" title="transform_view"><code class="computeroutput"><span class="identifier">transform_view</span></code></a>
|
||||
<a href="../../view/transform_view.html" title="transform_view"><tt class="computeroutput"><span class="identifier">transform_view</span></tt></a>
|
||||
(where adapted sequence is a Random Access Sequence)
|
||||
</li>
|
||||
<li>
|
||||
<a class="link" href="../../view/zip_view.html" title="zip_view"><code class="computeroutput"><span class="identifier">zip_view</span></code></a>
|
||||
<a href="../../view/zip_view.html" title="zip_view"><tt class="computeroutput"><span class="identifier">zip_view</span></tt></a>
|
||||
(where adapted sequences are models Random Access Sequence)
|
||||
</li>
|
||||
</ul></div>
|
||||
|
||||
@@ -3,19 +3,20 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Intrinsic</title>
|
||||
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../sequence.html" title="Sequence">
|
||||
<link rel="prev" href="concepts/associative_sequence.html" title="Associative Sequence">
|
||||
<link rel="prev" href="concepts/associative_sequence.html" title="Associative
|
||||
Sequence">
|
||||
<link rel="next" href="intrinsic/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="../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,33 +25,32 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="fusion.sequence.intrinsic"></a><a class="link" href="intrinsic.html" title="Intrinsic">Intrinsic</a>
|
||||
</h3></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic"></a><a href="intrinsic.html" title="Intrinsic">Intrinsic</a></h3></div></div></div>
|
||||
<div class="toc"><dl>
|
||||
<dt><span class="section"><a href="intrinsic/functions.html">Functions</a></span></dt>
|
||||
<dt><span class="section"><a href="intrinsic/metafunctions.html">Metafunctions</a></span></dt>
|
||||
</dl></div>
|
||||
<p>
|
||||
Intrinsic form the essential interface of every Fusion <a class="link" href="../sequence.html" title="Sequence">Sequence</a>.
|
||||
Intrinsic form the essential interface of every Fusion <a href="../sequence.html" title="Sequence">Sequence</a>.
|
||||
<a href="http://en.wikipedia.org/wiki/Standard_Template_Library" target="_top">STL</a>
|
||||
counterparts of these functions are usually implemented as member functions.
|
||||
Intrinsic functions, unlike <a class="link" href="../algorithm.html" title="Algorithm">Algorithms</a>,
|
||||
are not generic across the full <a class="link" href="../sequence.html" title="Sequence">Sequence</a>
|
||||
repertoire. They need to be implemented for each Fusion <a class="link" href="../sequence.html" title="Sequence">Sequence</a>
|
||||
<sup>[<a name="id2672096" href="#ftn.id2672096" class="footnote">4</a>]</sup>
|
||||
Intrinsic functions, unlike <a href="../algorithm.html" title="Algorithm">Algorithms</a>,
|
||||
are not generic across the full <a href="../sequence.html" title="Sequence">Sequence</a>
|
||||
repertoire. They need to be implemented for each Fusion <a href="../sequence.html" title="Sequence">Sequence</a>
|
||||
<sup>[<a name="id497665" href="#ftn.id497665">4</a>]</sup>
|
||||
.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.header"></a><h5>
|
||||
<a name="id2672113"></a>
|
||||
<a class="link" href="intrinsic.html#fusion.sequence.intrinsic.header">Header</a>
|
||||
</h5>
|
||||
<a name="fusion.sequence.intrinsic.header"></a><h4>
|
||||
<a name="id497685"></a>
|
||||
<a href="intrinsic.html#fusion.sequence.intrinsic.header">Header</a>
|
||||
</h4>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">sequence</span><span class="special">/</span><span class="identifier">intrinsic</span><span class="special">.</span><span class="identifier">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">intrinsic</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<div class="footnotes">
|
||||
<br><hr width="100" align="left">
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id2672096" href="#id2672096" class="para">4</a>] </sup>
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id497665" href="#id497665">4</a>] </sup>
|
||||
In practice, many of intrinsic functions have default implementations
|
||||
that will work in majority of cases
|
||||
</p></div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Functions</title>
|
||||
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../intrinsic.html" title="Intrinsic">
|
||||
<link rel="prev" href="../intrinsic.html" title="Intrinsic">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,8 +24,7 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.sequence.intrinsic.functions"></a><a class="link" href="functions.html" title="Functions">Functions</a>
|
||||
</h4></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.functions"></a><a href="functions.html" title="Functions">Functions</a></h4></div></div></div>
|
||||
<div class="toc"><dl>
|
||||
<dt><span class="section"><a href="functions/begin.html">begin</a></span></dt>
|
||||
<dt><span class="section"><a href="functions/end.html">end</a></span></dt>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>at</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="size.html" title="size">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,31 +24,30 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.intrinsic.functions.at"></a><a class="link" href="at.html" title="at">at</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.at"></a><a href="at.html" title="at">at</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.at.description"></a><h6>
|
||||
<a name="id2677228"></a>
|
||||
<a class="link" href="at.html#fusion.sequence.intrinsic.functions.at.description">Description</a>
|
||||
<a name="id503408"></a>
|
||||
<a href="at.html#fusion.sequence.intrinsic.functions.at.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the N-th element from the beginning of the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.at.synopsis"></a><h6>
|
||||
<a name="id2677254"></a>
|
||||
<a class="link" href="at.html#fusion.sequence.intrinsic.functions.at.synopsis">Synopsis</a>
|
||||
<a name="id503439"></a>
|
||||
<a href="at.html#fusion.sequence.intrinsic.functions.at.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">N</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a class="link" href="../metafunctions/at.html" title="at"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/at.html" title="at"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">at</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="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">N</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a class="link" href="../metafunctions/at.html" title="at"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/at.html" title="at"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">at</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.at.parameters"></a><h6>
|
||||
<a name="id2677551"></a>
|
||||
<a class="link" href="at.html#fusion.sequence.intrinsic.functions.at.parameters">Parameters</a>
|
||||
<a name="id503770"></a>
|
||||
<a href="at.html#fusion.sequence.intrinsic.functions.at.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -77,12 +76,13 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Model of <a class="link" href="../../concepts/random_access_sequence.html" title="Random Access Sequence">Random
|
||||
Model of <a href="../../concepts/random_access_sequence.html" title="Random
|
||||
Access Sequence">Random
|
||||
Access Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -95,7 +95,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">N</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">N</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -113,47 +113,47 @@
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.at.expression_semantics"></a><h6>
|
||||
<a name="id2677691"></a>
|
||||
<a class="link" href="at.html#fusion.sequence.intrinsic.functions.at.expression_semantics">Expression
|
||||
<a name="id503930"></a>
|
||||
<a href="at.html#fusion.sequence.intrinsic.functions.at.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">at</span><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: Returns a reference to
|
||||
the N-th element from the beginning of the sequence <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
if <code class="computeroutput"><span class="identifier">seq</span></code> is mutable and
|
||||
<code class="computeroutput"><span class="identifier">e</span> <span class="special">=</span>
|
||||
<span class="identifier">o</span></code>, where <code class="computeroutput"><span class="identifier">e</span></code>
|
||||
<span class="bold"><b>Return type</b></span>: Returns a reference to
|
||||
the N-th element from the beginning of the sequence <tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
if <tt class="computeroutput"><span class="identifier">seq</span></tt> is mutable and
|
||||
<tt class="computeroutput"><span class="identifier">e</span> <span class="special">=</span>
|
||||
<span class="identifier">o</span></tt>, where <tt class="computeroutput"><span class="identifier">e</span></tt>
|
||||
is the N-th element from the beginning of the sequence, is a valid expression.
|
||||
Else, returns a type convertable to the N-th element from the beginning
|
||||
of the sequence.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Precondition</strong></span>: <code class="computeroutput"><span class="number">0</span>
|
||||
<span class="special"><=</span> <span class="identifier">N</span><span class="special">::</span><span class="identifier">value</span> <span class="special"><</span> <a class="link" href="size.html" title="size"><code class="computeroutput"><span class="identifier">size</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
<span class="bold"><b>Precondition</b></span>: <tt class="computeroutput"><span class="number">0</span>
|
||||
<span class="special"><=</span> <span class="identifier">N</span><span class="special">::</span><span class="identifier">value</span> <span class="special"><</span> <a href="size.html" title="size"><tt class="computeroutput"><span class="identifier">size</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Equivalent to
|
||||
<span class="bold"><b>Semantics</b></span>: Equivalent to
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<a class="link" href="../../../iterator/functions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a><span class="special">(</span><a class="link" href="../../../iterator/functions/advance.html" title="advance"><code class="computeroutput"><span class="identifier">advance</span></code></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><a class="link" href="begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)))</span>
|
||||
<a href="../../../iterator/functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><a href="../../../iterator/functions/advance.html" title="advance"><tt class="computeroutput"><span class="identifier">advance</span></tt></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><a href="begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)))</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.at.header"></a><h6>
|
||||
<a name="id2677980"></a>
|
||||
<a class="link" href="at.html#fusion.sequence.intrinsic.functions.at.header">Header</a>
|
||||
<a name="id504249"></a>
|
||||
<a href="at.html#fusion.sequence.intrinsic.functions.at.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">sequence</span><span class="special">/</span><span class="identifier">intrinsic</span><span class="special">/</span><span class="identifier">at</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">at</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.at.example"></a><h6>
|
||||
<a name="id2678129"></a>
|
||||
<a class="link" href="at.html#fusion.sequence.intrinsic.functions.at.example">Example</a>
|
||||
<a name="id504416"></a>
|
||||
<a href="at.html#fusion.sequence.intrinsic.functions.at.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="keyword">int</span><span class="special">></span> <span class="identifier">v</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">);</span>
|
||||
<a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span> <span class="identifier">v</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">at</span><span class="special"><</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">int_</span><span class="special"><</span><span class="number">1</span><span class="special">></span> <span class="special">>(</span><span class="identifier">v</span><span class="special">)</span> <span class="special">==</span> <span class="number">2</span><span class="special">);</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>at_c</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="at.html" title="at">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,31 +24,30 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.intrinsic.functions.at_c"></a><a class="link" href="at_c.html" title="at_c">at_c</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.at_c"></a><a href="at_c.html" title="at_c">at_c</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.at_c.description"></a><h6>
|
||||
<a name="id2678335"></a>
|
||||
<a class="link" href="at_c.html#fusion.sequence.intrinsic.functions.at_c.description">Description</a>
|
||||
<a name="id504646"></a>
|
||||
<a href="at_c.html#fusion.sequence.intrinsic.functions.at_c.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the N-th element from the beginning of the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.at_c.synopsis"></a><h6>
|
||||
<a name="id2678363"></a>
|
||||
<a class="link" href="at_c.html#fusion.sequence.intrinsic.functions.at_c.synopsis">Synopsis</a>
|
||||
<a name="id504677"></a>
|
||||
<a href="at_c.html#fusion.sequence.intrinsic.functions.at_c.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">int</span> <span class="identifier">N</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a class="link" href="../metafunctions/at_c.html" title="at_c"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_c</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_c</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">at_c</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="keyword">template</span> <span class="special"><</span><span class="keyword">int</span> <span class="identifier">N</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a class="link" href="../metafunctions/at_c.html" title="at_c"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_c</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_c</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">at_c</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.at_c.parameters"></a><h6>
|
||||
<a name="id2678663"></a>
|
||||
<a class="link" href="at_c.html#fusion.sequence.intrinsic.functions.at_c.parameters">Parameters</a>
|
||||
<a name="id505012"></a>
|
||||
<a href="at_c.html#fusion.sequence.intrinsic.functions.at_c.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -77,12 +76,13 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Model of <a class="link" href="../../concepts/random_access_sequence.html" title="Random Access Sequence">Random
|
||||
Model of <a href="../../concepts/random_access_sequence.html" title="Random
|
||||
Access Sequence">Random
|
||||
Access Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -95,7 +95,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">N</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">N</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -112,48 +112,48 @@
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.at_c.expression_semantics"></a><h6>
|
||||
<a name="id2678800"></a>
|
||||
<a class="link" href="at_c.html#fusion.sequence.intrinsic.functions.at_c.expression_semantics">Expression
|
||||
<a name="id505165"></a>
|
||||
<a href="at_c.html#fusion.sequence.intrinsic.functions.at_c.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">at_c</span><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: Returns a reference to
|
||||
the N-th element from the beginning of the sequence <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
if <code class="computeroutput"><span class="identifier">seq</span></code> is mutable and
|
||||
<code class="computeroutput"><span class="identifier">e</span> <span class="special">=</span>
|
||||
<span class="identifier">o</span></code>, where <code class="computeroutput"><span class="identifier">e</span></code>
|
||||
<span class="bold"><b>Return type</b></span>: Returns a reference to
|
||||
the N-th element from the beginning of the sequence <tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
if <tt class="computeroutput"><span class="identifier">seq</span></tt> is mutable and
|
||||
<tt class="computeroutput"><span class="identifier">e</span> <span class="special">=</span>
|
||||
<span class="identifier">o</span></tt>, where <tt class="computeroutput"><span class="identifier">e</span></tt>
|
||||
is the N-th element from the beginning of the sequence, is a valid expression.
|
||||
Else, returns a type convertable to the N-th element from the beginning
|
||||
of the sequence.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Precondition</strong></span>: <code class="computeroutput"><span class="number">0</span>
|
||||
<span class="bold"><b>Precondition</b></span>: <tt class="computeroutput"><span class="number">0</span>
|
||||
<span class="special"><=</span> <span class="identifier">N</span>
|
||||
<span class="special"><</span> <a class="link" href="size.html" title="size"><code class="computeroutput"><span class="identifier">size</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
<span class="special"><</span> <a href="size.html" title="size"><tt class="computeroutput"><span class="identifier">size</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Equivalent to
|
||||
<span class="bold"><b>Semantics</b></span>: Equivalent to
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<a class="link" href="../../../iterator/functions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a><span class="special">(</span><a class="link" href="../../../iterator/functions/advance.html" title="advance"><code class="computeroutput"><span class="identifier">advance</span></code></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><a class="link" href="begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)))</span>
|
||||
<a href="../../../iterator/functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><a href="../../../iterator/functions/advance.html" title="advance"><tt class="computeroutput"><span class="identifier">advance</span></tt></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><a href="begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)))</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.at_c.header"></a><h6>
|
||||
<a name="id2679079"></a>
|
||||
<a class="link" href="at_c.html#fusion.sequence.intrinsic.functions.at_c.header">Header</a>
|
||||
<a name="id505474"></a>
|
||||
<a href="at_c.html#fusion.sequence.intrinsic.functions.at_c.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">sequence</span><span class="special">/</span><span class="identifier">intrinsic</span><span class="special">/</span><span class="identifier">at_c</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">at_c</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.at_c.example"></a><h6>
|
||||
<a name="id2679230"></a>
|
||||
<a class="link" href="at_c.html#fusion.sequence.intrinsic.functions.at_c.example">Example</a>
|
||||
<a name="id505643"></a>
|
||||
<a href="at_c.html#fusion.sequence.intrinsic.functions.at_c.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="keyword">int</span><span class="special">></span> <span class="identifier">v</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">);</span>
|
||||
<a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span> <span class="identifier">v</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">at_c</span><span class="special"><</span><span class="number">1</span><span class="special">>(</span><span class="identifier">v</span><span class="special">)</span> <span class="special">==</span> <span class="number">2</span><span class="special">);</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>at_key</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="has_key.html" title="has_key">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,31 +24,30 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.intrinsic.functions.at_key"></a><a class="link" href="at_key.html" title="at_key">at_key</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.at_key"></a><a href="at_key.html" title="at_key">at_key</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.at_key.description"></a><h6>
|
||||
<a name="id2680225"></a>
|
||||
<a class="link" href="at_key.html#fusion.sequence.intrinsic.functions.at_key.description">Description</a>
|
||||
<a name="id506755"></a>
|
||||
<a href="at_key.html#fusion.sequence.intrinsic.functions.at_key.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the element associated with a Key from the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.at_key.synopsis"></a><h6>
|
||||
<a name="id2680253"></a>
|
||||
<a class="link" href="at_key.html#fusion.sequence.intrinsic.functions.at_key.synopsis">Synopsis</a>
|
||||
<a name="id506786"></a>
|
||||
<a href="at_key.html#fusion.sequence.intrinsic.functions.at_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">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/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_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>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Key</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">at_key</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="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/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_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="keyword">typename</span> <a href="../metafunctions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Key</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">at_key</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.at_key.parameters"></a><h6>
|
||||
<a name="id2680551"></a>
|
||||
<a class="link" href="at_key.html#fusion.sequence.intrinsic.functions.at_key.parameters">Parameters</a>
|
||||
<a name="id507120"></a>
|
||||
<a href="at_key.html#fusion.sequence.intrinsic.functions.at_key.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -77,12 +76,13 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Model of <a class="link" href="../../concepts/associative_sequence.html" title="Associative Sequence">Associative
|
||||
Model of <a href="../../concepts/associative_sequence.html" title="Associative
|
||||
Sequence">Associative
|
||||
Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -95,7 +95,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">Key</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">Key</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -112,43 +112,43 @@
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.at_key.expression_semantics"></a><h6>
|
||||
<a name="id2680687"></a>
|
||||
<a class="link" href="at_key.html#fusion.sequence.intrinsic.functions.at_key.expression_semantics">Expression
|
||||
<a name="id507272"></a>
|
||||
<a href="at_key.html#fusion.sequence.intrinsic.functions.at_key.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">at_key</span><span class="special"><</span><span class="identifier">Key</span><span class="special">>(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: Returns a reference to
|
||||
the element associated with Key from the sequence <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
if <code class="computeroutput"><span class="identifier">seq</span></code> is mutable and
|
||||
<code class="computeroutput"><span class="identifier">e</span> <span class="special">=</span>
|
||||
<span class="identifier">o</span></code>, where <code class="computeroutput"><span class="identifier">e</span></code>
|
||||
<span class="bold"><b>Return type</b></span>: Returns a reference to
|
||||
the element associated with Key from the sequence <tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
if <tt class="computeroutput"><span class="identifier">seq</span></tt> is mutable and
|
||||
<tt class="computeroutput"><span class="identifier">e</span> <span class="special">=</span>
|
||||
<span class="identifier">o</span></tt>, where <tt class="computeroutput"><span class="identifier">e</span></tt>
|
||||
is the element associated with Key, is a valid expression. Else, returns
|
||||
a type convertable to the element associated with Key.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Precondition</strong></span>: <code class="computeroutput"><span class="identifier">has_key</span><span class="special"><</span><span class="identifier">Key</span><span class="special">>(</span><span class="identifier">seq</span><span class="special">)</span> <span class="special">==</span> <span class="keyword">true</span></code>
|
||||
<span class="bold"><b>Precondition</b></span>: <tt class="computeroutput"><span class="identifier">has_key</span><span class="special"><</span><span class="identifier">Key</span><span class="special">>(</span><span class="identifier">seq</span><span class="special">)</span> <span class="special">==</span> <span class="keyword">true</span></tt>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the element associated
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the element associated
|
||||
with Key.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.at_key.header"></a><h6>
|
||||
<a name="id2680875"></a>
|
||||
<a class="link" href="at_key.html#fusion.sequence.intrinsic.functions.at_key.header">Header</a>
|
||||
<a name="id507480"></a>
|
||||
<a href="at_key.html#fusion.sequence.intrinsic.functions.at_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">sequence</span><span class="special">/</span><span class="identifier">intrinsic</span><span class="special">/</span><span class="identifier">at_key</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">at_key</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.at_key.example"></a><h6>
|
||||
<a name="id2681026"></a>
|
||||
<a class="link" href="at_key.html#fusion.sequence.intrinsic.functions.at_key.example">Example</a>
|
||||
<a name="id507649"></a>
|
||||
<a href="at_key.html#fusion.sequence.intrinsic.functions.at_key.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<a class="link" href="../../../container/set.html" title="set"><code class="computeroutput"><span class="identifier">set</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="keyword">bool</span><span class="special">></span> <span class="identifier">s</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="char">'x'</span><span class="special">,</span> <span class="keyword">true</span><span class="special">);</span>
|
||||
<a href="../../../container/set.html" title="set"><tt class="computeroutput"><span class="identifier">set</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">,</span> <span class="keyword">bool</span><span class="special">></span> <span class="identifier">s</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="char">'x'</span><span class="special">,</span> <span class="keyword">true</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">at_key</span><span class="special"><</span><span class="keyword">char</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span> <span class="special">==</span> <span class="char">'x'</span><span class="special">);</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>back</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="front.html" title="front">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,31 +24,30 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.intrinsic.functions.back"></a><a class="link" href="back.html" title="back">back</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.back"></a><a href="back.html" title="back">back</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.back.description"></a><h6>
|
||||
<a name="id2675660"></a>
|
||||
<a class="link" href="back.html#fusion.sequence.intrinsic.functions.back.description">Description</a>
|
||||
<a name="id501656"></a>
|
||||
<a href="back.html#fusion.sequence.intrinsic.functions.back.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the last element in the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.back.synopsis"></a><h6>
|
||||
<a name="id2675687"></a>
|
||||
<a class="link" href="back.html#fusion.sequence.intrinsic.functions.back.synopsis">Synopsis</a>
|
||||
<a name="id501687"></a>
|
||||
<a href="back.html#fusion.sequence.intrinsic.functions.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/back.html" title="back"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">back</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/back.html" title="back"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">back</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">back</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="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/back.html" title="back"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">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="keyword">typename</span> <a href="../metafunctions/back.html" title="back"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">back</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">back</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.back.parameters"></a><h6>
|
||||
<a name="id2675936"></a>
|
||||
<a class="link" href="back.html#fusion.sequence.intrinsic.functions.back.parameters">Parameters</a>
|
||||
<a name="id501964"></a>
|
||||
<a href="back.html#fusion.sequence.intrinsic.functions.back.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -76,12 +75,13 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Model of <a class="link" href="../../concepts/bidirectional_sequence.html" title="Bidirectional Sequence">Bidirectional
|
||||
Model of <a href="../../concepts/bidirectional_sequence.html" title="Bidirectional
|
||||
Sequence">Bidirectional
|
||||
Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -93,43 +93,43 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.back.expression_semantics"></a><h6>
|
||||
<a name="id2676038"></a>
|
||||
<a class="link" href="back.html#fusion.sequence.intrinsic.functions.back.expression_semantics">Expression
|
||||
<a name="id502079"></a>
|
||||
<a href="back.html#fusion.sequence.intrinsic.functions.back.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">back</span><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: Returns a reference to
|
||||
the last element in the sequence <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
if <code class="computeroutput"><span class="identifier">seq</span></code> is mutable and
|
||||
<code class="computeroutput"><span class="identifier">e</span> <span class="special">=</span>
|
||||
<span class="identifier">o</span></code>, where <code class="computeroutput"><span class="identifier">e</span></code>
|
||||
<span class="bold"><b>Return type</b></span>: Returns a reference to
|
||||
the last element in the sequence <tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
if <tt class="computeroutput"><span class="identifier">seq</span></tt> is mutable and
|
||||
<tt class="computeroutput"><span class="identifier">e</span> <span class="special">=</span>
|
||||
<span class="identifier">o</span></tt>, where <tt class="computeroutput"><span class="identifier">e</span></tt>
|
||||
is the last element in the sequence, is a valid expression. Else, returns
|
||||
a type convertable to the last element in the sequence.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Precondition</strong></span>: <code class="computeroutput"><a class="link" href="empty.html" title="empty"><code class="computeroutput"><span class="identifier">empty</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">)</span> <span class="special">==</span> <span class="keyword">false</span></code>
|
||||
<span class="bold"><b>Precondition</b></span>: <tt class="computeroutput"><a href="empty.html" title="empty"><tt class="computeroutput"><span class="identifier">empty</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">)</span> <span class="special">==</span> <span class="keyword">false</span></tt>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the last element
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the last element
|
||||
in the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.back.header"></a><h6>
|
||||
<a name="id2676216"></a>
|
||||
<a class="link" href="back.html#fusion.sequence.intrinsic.functions.back.header">Header</a>
|
||||
<a name="id502277"></a>
|
||||
<a href="back.html#fusion.sequence.intrinsic.functions.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">sequence</span><span class="special">/</span><span class="identifier">intrinsic</span><span class="special">/</span><span class="identifier">back</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">back</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.back.example"></a><h6>
|
||||
<a name="id2676368"></a>
|
||||
<a class="link" href="back.html#fusion.sequence.intrinsic.functions.back.example">Example</a>
|
||||
<a name="id502447"></a>
|
||||
<a href="back.html#fusion.sequence.intrinsic.functions.back.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="keyword">int</span><span class="special">></span> <span class="identifier">v</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">);</span>
|
||||
<a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span> <span class="identifier">v</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">back</span><span class="special">(</span><span class="identifier">v</span><span class="special">)</span> <span class="special">==</span> <span class="number">3</span><span class="special">);</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>begin</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="../functions.html" title="Functions">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,31 +24,30 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.intrinsic.functions.begin"></a><a class="link" href="begin.html" title="begin">begin</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.begin"></a><a href="begin.html" title="begin">begin</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.begin.description"></a><h6>
|
||||
<a name="id2672288"></a>
|
||||
<a class="link" href="begin.html#fusion.sequence.intrinsic.functions.begin.description">Description</a>
|
||||
<a name="id497883"></a>
|
||||
<a href="begin.html#fusion.sequence.intrinsic.functions.begin.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns an iterator pointing to the first element in the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.begin.synopsis"></a><h6>
|
||||
<a name="id2672316"></a>
|
||||
<a class="link" href="begin.html#fusion.sequence.intrinsic.functions.begin.synopsis">Synopsis</a>
|
||||
<a name="id497914"></a>
|
||||
<a href="begin.html#fusion.sequence.intrinsic.functions.begin.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/begin.html" title="begin"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">begin</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="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/begin.html" title="begin"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</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="keyword">typename</span> <a href="../metafunctions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">begin</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.begin.parameters"></a><h6>
|
||||
<a name="id2672562"></a>
|
||||
<a class="link" href="begin.html#fusion.sequence.intrinsic.functions.begin.parameters">Parameters</a>
|
||||
<a name="id498191"></a>
|
||||
<a href="begin.html#fusion.sequence.intrinsic.functions.begin.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -76,12 +75,13 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Model of <a class="link" href="../../concepts/forward_sequence.html" title="Forward Sequence">Forward
|
||||
Model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -93,44 +93,50 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.begin.expression_semantics"></a><h6>
|
||||
<a name="id2672666"></a>
|
||||
<a class="link" href="begin.html#fusion.sequence.intrinsic.functions.begin.expression_semantics">Expression
|
||||
<a name="id498306"></a>
|
||||
<a href="begin.html#fusion.sequence.intrinsic.functions.begin.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">begin</span><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: <a class="link" href="../../../iterator/concepts/forward_iterator.html" title="Forward Iterator">Forward
|
||||
Iterator</a> if <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
is a <a class="link" href="../../concepts/forward_sequence.html" title="Forward Sequence">Forward
|
||||
Sequence</a> else, <a class="link" href="../../../iterator/concepts/bidirectional_iterator.html" title="Bidirectional Iterator">Bidirectional
|
||||
Iterator</a> if <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
is a <a class="link" href="../../concepts/bidirectional_sequence.html" title="Bidirectional Sequence">Bidirectional
|
||||
Sequence</a> else, <a class="link" href="../../../iterator/concepts/random_access_iterator.html" title="Random Access Iterator">Random
|
||||
Access Iterator</a> if <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
is a <a class="link" href="../../concepts/random_access_sequence.html" title="Random Access Sequence">Random
|
||||
<span class="bold"><b>Return type</b></span>: <a href="../../../iterator/concepts/forward_iterator.html" title="Forward
|
||||
Iterator">Forward
|
||||
Iterator</a> if <tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
is a <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a> else, <a href="../../../iterator/concepts/bidirectional_iterator.html" title="Bidirectional
|
||||
Iterator">Bidirectional
|
||||
Iterator</a> if <tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
is a <a href="../../concepts/bidirectional_sequence.html" title="Bidirectional
|
||||
Sequence">Bidirectional
|
||||
Sequence</a> else, <a href="../../../iterator/concepts/random_access_iterator.html" title="Random
|
||||
Access Iterator">Random
|
||||
Access Iterator</a> if <tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
is a <a href="../../concepts/random_access_sequence.html" title="Random
|
||||
Access Sequence">Random
|
||||
Access Sequence</a>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns an iterator pointing
|
||||
<span class="bold"><b>Semantics</b></span>: Returns an iterator pointing
|
||||
to the first element in the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.begin.header"></a><h6>
|
||||
<a name="id2672820"></a>
|
||||
<a class="link" href="begin.html#fusion.sequence.intrinsic.functions.begin.header">Header</a>
|
||||
<a name="id498476"></a>
|
||||
<a href="begin.html#fusion.sequence.intrinsic.functions.begin.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">sequence</span><span class="special">/</span><span class="identifier">intrinsic</span><span class="special">/</span><span class="identifier">begin</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">begin</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.begin.example"></a><h6>
|
||||
<a name="id2672971"></a>
|
||||
<a class="link" href="begin.html#fusion.sequence.intrinsic.functions.begin.example">Example</a>
|
||||
<a name="id498647"></a>
|
||||
<a href="begin.html#fusion.sequence.intrinsic.functions.begin.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="keyword">int</span><span class="special">></span> <span class="identifier">v</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><a class="link" href="../../../iterator/functions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a><span class="special">(</span><span class="identifier">begin</span><span class="special">(</span><span class="identifier">v</span><span class="special">))</span> <span class="special">==</span> <span class="number">1</span><span class="special">);</span>
|
||||
<a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span> <span class="identifier">v</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><a href="../../../iterator/functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><span class="identifier">begin</span><span class="special">(</span><span class="identifier">v</span><span class="special">))</span> <span class="special">==</span> <span class="number">1</span><span class="special">);</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>empty</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="end.html" title="end">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,29 +24,28 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.intrinsic.functions.empty"></a><a class="link" href="empty.html" title="empty">empty</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.empty"></a><a href="empty.html" title="empty">empty</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.empty.description"></a><h6>
|
||||
<a name="id2674050"></a>
|
||||
<a class="link" href="empty.html#fusion.sequence.intrinsic.functions.empty.description">Description</a>
|
||||
<a name="id499854"></a>
|
||||
<a href="empty.html#fusion.sequence.intrinsic.functions.empty.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns a type convertible to <code class="computeroutput"><span class="keyword">bool</span></code>
|
||||
that evaluates to <code class="computeroutput"><span class="keyword">true</span></code> if
|
||||
the sequence is empty, else, evaluates to <code class="computeroutput"><span class="keyword">false</span></code>.
|
||||
Returns a type convertible to <tt class="computeroutput"><span class="keyword">bool</span></tt>
|
||||
that evaluates to <tt class="computeroutput"><span class="keyword">true</span></tt> if
|
||||
the sequence is empty, else, evaluates to <tt class="computeroutput"><span class="keyword">false</span></tt>.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.empty.synopsis"></a><h6>
|
||||
<a name="id2674110"></a>
|
||||
<a class="link" href="empty.html#fusion.sequence.intrinsic.functions.empty.synopsis">Synopsis</a>
|
||||
<a name="id499920"></a>
|
||||
<a href="empty.html#fusion.sequence.intrinsic.functions.empty.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/empty.html" title="empty"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">empty</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/empty.html" title="empty"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">empty</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">empty</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.empty.parameters"></a><h6>
|
||||
<a name="id2674248"></a>
|
||||
<a class="link" href="empty.html#fusion.sequence.intrinsic.functions.empty.parameters">Parameters</a>
|
||||
<a name="id500076"></a>
|
||||
<a href="empty.html#fusion.sequence.intrinsic.functions.empty.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -74,12 +73,13 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Model of <a class="link" href="../../concepts/forward_sequence.html" title="Forward Sequence">Forward
|
||||
Model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -91,34 +91,34 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.empty.expression_semantics"></a><h6>
|
||||
<a name="id2674351"></a>
|
||||
<a class="link" href="empty.html#fusion.sequence.intrinsic.functions.empty.expression_semantics">Expression
|
||||
<a name="id500191"></a>
|
||||
<a href="empty.html#fusion.sequence.intrinsic.functions.empty.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">empty</span><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: Convertible to <code class="computeroutput"><span class="keyword">bool</span></code>.
|
||||
<span class="bold"><b>Return type</b></span>: Convertible to <tt class="computeroutput"><span class="keyword">bool</span></tt>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Evaluates to <code class="computeroutput"><span class="keyword">true</span></code> if the sequence is empty, else, evaluates
|
||||
to <code class="computeroutput"><span class="keyword">false</span></code>.
|
||||
<span class="bold"><b>Semantics</b></span>: Evaluates to <tt class="computeroutput"><span class="keyword">true</span></tt> if the sequence is empty, else, evaluates
|
||||
to <tt class="computeroutput"><span class="keyword">false</span></tt>.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.empty.header"></a><h6>
|
||||
<a name="id2674454"></a>
|
||||
<a class="link" href="empty.html#fusion.sequence.intrinsic.functions.empty.header">Header</a>
|
||||
<a name="id500306"></a>
|
||||
<a href="empty.html#fusion.sequence.intrinsic.functions.empty.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">sequence</span><span class="special">/</span><span class="identifier">intrinsic</span><span class="special">/</span><span class="identifier">empty</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">empty</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.empty.example"></a><h6>
|
||||
<a name="id2674604"></a>
|
||||
<a class="link" href="empty.html#fusion.sequence.intrinsic.functions.empty.example">Example</a>
|
||||
<a name="id500475"></a>
|
||||
<a href="empty.html#fusion.sequence.intrinsic.functions.empty.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="keyword">int</span><span class="special">></span> <span class="identifier">v</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">);</span>
|
||||
<a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span> <span class="identifier">v</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">empty</span><span class="special">(</span><span class="identifier">v</span><span class="special">)</span> <span class="special">==</span> <span class="keyword">false</span><span class="special">);</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>end</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="begin.html" title="begin">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,31 +24,30 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.intrinsic.functions.end"></a><a class="link" href="end.html" title="end">end</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.end"></a><a href="end.html" title="end">end</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.end.description"></a><h6>
|
||||
<a name="id2673163"></a>
|
||||
<a class="link" href="end.html#fusion.sequence.intrinsic.functions.end.description">Description</a>
|
||||
<a name="id498860"></a>
|
||||
<a href="end.html#fusion.sequence.intrinsic.functions.end.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns an iterator pointing to one element past the end of the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.end.synopsis"></a><h6>
|
||||
<a name="id2673190"></a>
|
||||
<a class="link" href="end.html#fusion.sequence.intrinsic.functions.end.synopsis">Synopsis</a>
|
||||
<a name="id498892"></a>
|
||||
<a href="end.html#fusion.sequence.intrinsic.functions.end.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/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>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/end.html" title="end"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">end</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">end</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="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/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="keyword">const</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/end.html" title="end"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">end</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">end</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.end.parameters"></a><h6>
|
||||
<a name="id2673435"></a>
|
||||
<a class="link" href="end.html#fusion.sequence.intrinsic.functions.end.parameters">Parameters</a>
|
||||
<a name="id499166"></a>
|
||||
<a href="end.html#fusion.sequence.intrinsic.functions.end.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -76,12 +75,13 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Model of <a class="link" href="../../concepts/forward_sequence.html" title="Forward Sequence">Forward
|
||||
Model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -93,44 +93,50 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.end.expression_semantics"></a><h6>
|
||||
<a name="id2673536"></a>
|
||||
<a class="link" href="end.html#fusion.sequence.intrinsic.functions.end.expression_semantics">Expression
|
||||
<a name="id499281"></a>
|
||||
<a href="end.html#fusion.sequence.intrinsic.functions.end.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">end</span><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: <a class="link" href="../../../iterator/concepts/forward_iterator.html" title="Forward Iterator">Forward
|
||||
Iterator</a> if <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
is a <a class="link" href="../../concepts/forward_sequence.html" title="Forward Sequence">Forward
|
||||
Sequence</a> else, <a class="link" href="../../../iterator/concepts/bidirectional_iterator.html" title="Bidirectional Iterator">Bidirectional
|
||||
Iterator</a> if <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
is a <a class="link" href="../../concepts/bidirectional_sequence.html" title="Bidirectional Sequence">Bidirectional
|
||||
Sequence</a> else, <a class="link" href="../../../iterator/concepts/random_access_iterator.html" title="Random Access Iterator">Random
|
||||
Access Iterator</a> if <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
is a <a class="link" href="../../concepts/random_access_sequence.html" title="Random Access Sequence">Random
|
||||
<span class="bold"><b>Return type</b></span>: <a href="../../../iterator/concepts/forward_iterator.html" title="Forward
|
||||
Iterator">Forward
|
||||
Iterator</a> if <tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
is a <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a> else, <a href="../../../iterator/concepts/bidirectional_iterator.html" title="Bidirectional
|
||||
Iterator">Bidirectional
|
||||
Iterator</a> if <tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
is a <a href="../../concepts/bidirectional_sequence.html" title="Bidirectional
|
||||
Sequence">Bidirectional
|
||||
Sequence</a> else, <a href="../../../iterator/concepts/random_access_iterator.html" title="Random
|
||||
Access Iterator">Random
|
||||
Access Iterator</a> if <tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
is a <a href="../../concepts/random_access_sequence.html" title="Random
|
||||
Access Sequence">Random
|
||||
Access Sequence</a>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns an iterator pointing
|
||||
<span class="bold"><b>Semantics</b></span>: Returns an iterator pointing
|
||||
to one element past the end of the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.end.header"></a><h6>
|
||||
<a name="id2673690"></a>
|
||||
<a class="link" href="end.html#fusion.sequence.intrinsic.functions.end.header">Header</a>
|
||||
<a name="id499451"></a>
|
||||
<a href="end.html#fusion.sequence.intrinsic.functions.end.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">sequence</span><span class="special">/</span><span class="identifier">intrinsic</span><span class="special">/</span><span class="identifier">end</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">end</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.end.example"></a><h6>
|
||||
<a name="id2673841"></a>
|
||||
<a class="link" href="end.html#fusion.sequence.intrinsic.functions.end.example">Example</a>
|
||||
<a name="id499620"></a>
|
||||
<a href="end.html#fusion.sequence.intrinsic.functions.end.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="keyword">int</span><span class="special">></span> <span class="identifier">v</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><a class="link" href="../../../iterator/functions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a><span class="special">(</span><a class="link" href="../../../iterator/functions/prior.html" title="prior"><code class="computeroutput"><span class="identifier">prior</span></code></a><span class="special">(</span><span class="identifier">end</span><span class="special">(</span><span class="identifier">v</span><span class="special">)))</span> <span class="special">==</span> <span class="number">3</span><span class="special">);</span>
|
||||
<a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span> <span class="identifier">v</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><a href="../../../iterator/functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><a href="../../../iterator/functions/prior.html" title="prior"><tt class="computeroutput"><span class="identifier">prior</span></tt></a><span class="special">(</span><span class="identifier">end</span><span class="special">(</span><span class="identifier">v</span><span class="special">)))</span> <span class="special">==</span> <span class="number">3</span><span class="special">);</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>front</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="empty.html" title="empty">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,31 +24,30 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.intrinsic.functions.front"></a><a class="link" href="front.html" title="front">front</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.front"></a><a href="front.html" title="front">front</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.front.description"></a><h6>
|
||||
<a name="id2674779"></a>
|
||||
<a class="link" href="front.html#fusion.sequence.intrinsic.functions.front.description">Description</a>
|
||||
<a name="id500670"></a>
|
||||
<a href="front.html#fusion.sequence.intrinsic.functions.front.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the first element in the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.front.synopsis"></a><h6>
|
||||
<a name="id2674806"></a>
|
||||
<a class="link" href="front.html#fusion.sequence.intrinsic.functions.front.synopsis">Synopsis</a>
|
||||
<a name="id500701"></a>
|
||||
<a href="front.html#fusion.sequence.intrinsic.functions.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/front.html" title="front"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">front</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/front.html" title="front"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">front</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">front</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="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/front.html" title="front"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">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="keyword">typename</span> <a href="../metafunctions/front.html" title="front"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">front</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">front</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.front.parameters"></a><h6>
|
||||
<a name="id2675053"></a>
|
||||
<a class="link" href="front.html#fusion.sequence.intrinsic.functions.front.parameters">Parameters</a>
|
||||
<a name="id500978"></a>
|
||||
<a href="front.html#fusion.sequence.intrinsic.functions.front.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -76,12 +75,13 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Model of <a class="link" href="../../concepts/forward_sequence.html" title="Forward Sequence">Forward
|
||||
Model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -93,43 +93,43 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.front.expression_semantics"></a><h6>
|
||||
<a name="id2675157"></a>
|
||||
<a class="link" href="front.html#fusion.sequence.intrinsic.functions.front.expression_semantics">Expression
|
||||
<a name="id501092"></a>
|
||||
<a href="front.html#fusion.sequence.intrinsic.functions.front.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">front</span><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: Returns a reference to
|
||||
the first element in the sequence <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
if <code class="computeroutput"><span class="identifier">seq</span></code> is mutable and
|
||||
<code class="computeroutput"><span class="identifier">e</span> <span class="special">=</span>
|
||||
<span class="identifier">o</span></code>, where <code class="computeroutput"><span class="identifier">e</span></code>
|
||||
<span class="bold"><b>Return type</b></span>: Returns a reference to
|
||||
the first element in the sequence <tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
if <tt class="computeroutput"><span class="identifier">seq</span></tt> is mutable and
|
||||
<tt class="computeroutput"><span class="identifier">e</span> <span class="special">=</span>
|
||||
<span class="identifier">o</span></tt>, where <tt class="computeroutput"><span class="identifier">e</span></tt>
|
||||
is the first element in the sequence, is a valid expression. Else, returns
|
||||
a type convertable to the first element in the sequence.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Precondition</strong></span>: <code class="computeroutput"><a class="link" href="empty.html" title="empty"><code class="computeroutput"><span class="identifier">empty</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">)</span> <span class="special">==</span> <span class="keyword">false</span></code>
|
||||
<span class="bold"><b>Precondition</b></span>: <tt class="computeroutput"><a href="empty.html" title="empty"><tt class="computeroutput"><span class="identifier">empty</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">)</span> <span class="special">==</span> <span class="keyword">false</span></tt>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the first element
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the first element
|
||||
in the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.front.header"></a><h6>
|
||||
<a name="id2675335"></a>
|
||||
<a class="link" href="front.html#fusion.sequence.intrinsic.functions.front.header">Header</a>
|
||||
<a name="id501292"></a>
|
||||
<a href="front.html#fusion.sequence.intrinsic.functions.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">sequence</span><span class="special">/</span><span class="identifier">intrinsic</span><span class="special">/</span><span class="identifier">front</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">front</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.front.example"></a><h6>
|
||||
<a name="id2675486"></a>
|
||||
<a class="link" href="front.html#fusion.sequence.intrinsic.functions.front.example">Example</a>
|
||||
<a name="id501461"></a>
|
||||
<a href="front.html#fusion.sequence.intrinsic.functions.front.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="keyword">int</span><span class="special">></span> <span class="identifier">v</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">);</span>
|
||||
<a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span> <span class="identifier">v</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">front</span><span class="special">(</span><span class="identifier">v</span><span class="special">)</span> <span class="special">==</span> <span class="number">1</span><span class="special">);</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>has_key</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="at_c.html" title="at_c">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,30 +24,29 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.intrinsic.functions.has_key"></a><a class="link" href="has_key.html" title="has_key">has_key</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.has_key"></a><a href="has_key.html" title="has_key">has_key</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.has_key.description"></a><h6>
|
||||
<a name="id2679413"></a>
|
||||
<a class="link" href="has_key.html#fusion.sequence.intrinsic.functions.has_key.description">Description</a>
|
||||
<a name="id505848"></a>
|
||||
<a href="has_key.html#fusion.sequence.intrinsic.functions.has_key.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns a type convertible to <code class="computeroutput"><span class="keyword">bool</span></code>
|
||||
that evaluates to <code class="computeroutput"><span class="keyword">true</span></code> if
|
||||
Returns a type convertible to <tt class="computeroutput"><span class="keyword">bool</span></tt>
|
||||
that evaluates to <tt class="computeroutput"><span class="keyword">true</span></tt> if
|
||||
the sequence contains an element associated with a Key, else, evaluates
|
||||
to <code class="computeroutput"><span class="keyword">false</span></code>.
|
||||
to <tt class="computeroutput"><span class="keyword">false</span></tt>.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.has_key.synopsis"></a><h6>
|
||||
<a name="id2679474"></a>
|
||||
<a class="link" href="has_key.html#fusion.sequence.intrinsic.functions.has_key.synopsis">Synopsis</a>
|
||||
<a name="id505916"></a>
|
||||
<a href="has_key.html#fusion.sequence.intrinsic.functions.has_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">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/has_key.html" title="has_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">has_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>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/has_key.html" title="has_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">has_key</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Key</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">has_key</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.has_key.parameters"></a><h6>
|
||||
<a name="id2679639"></a>
|
||||
<a class="link" href="has_key.html#fusion.sequence.intrinsic.functions.has_key.parameters">Parameters</a>
|
||||
<a name="id506100"></a>
|
||||
<a href="has_key.html#fusion.sequence.intrinsic.functions.has_key.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -76,12 +75,13 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Model of <a class="link" href="../../concepts/associative_sequence.html" title="Associative Sequence">Associative
|
||||
Model of <a href="../../concepts/associative_sequence.html" title="Associative
|
||||
Sequence">Associative
|
||||
Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -94,7 +94,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">Key</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">Key</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -111,34 +111,34 @@
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.has_key.expression_semantics"></a><h6>
|
||||
<a name="id2679777"></a>
|
||||
<a class="link" href="has_key.html#fusion.sequence.intrinsic.functions.has_key.expression_semantics">Expression
|
||||
<a name="id506254"></a>
|
||||
<a href="has_key.html#fusion.sequence.intrinsic.functions.has_key.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">has_key</span><span class="special"><</span><span class="identifier">Key</span><span class="special">>(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: Convertible to <code class="computeroutput"><span class="keyword">bool</span></code>.
|
||||
<span class="bold"><b>Return type</b></span>: Convertible to <tt class="computeroutput"><span class="keyword">bool</span></tt>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Evaluates to <code class="computeroutput"><span class="keyword">true</span></code> if the sequence contains an element
|
||||
associated with Key, else, evaluates to <code class="computeroutput"><span class="keyword">false</span></code>.
|
||||
<span class="bold"><b>Semantics</b></span>: Evaluates to <tt class="computeroutput"><span class="keyword">true</span></tt> if the sequence contains an element
|
||||
associated with Key, else, evaluates to <tt class="computeroutput"><span class="keyword">false</span></tt>.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.has_key.header"></a><h6>
|
||||
<a name="id2679889"></a>
|
||||
<a class="link" href="has_key.html#fusion.sequence.intrinsic.functions.has_key.header">Header</a>
|
||||
<a name="id506379"></a>
|
||||
<a href="has_key.html#fusion.sequence.intrinsic.functions.has_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">sequence</span><span class="special">/</span><span class="identifier">intrinsic</span><span class="special">/</span><span class="identifier">has_key</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">has_key</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.has_key.example"></a><h6>
|
||||
<a name="id2680041"></a>
|
||||
<a class="link" href="has_key.html#fusion.sequence.intrinsic.functions.has_key.example">Example</a>
|
||||
<a name="id506549"></a>
|
||||
<a href="has_key.html#fusion.sequence.intrinsic.functions.has_key.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<a class="link" href="../../../container/set.html" title="set"><code class="computeroutput"><span class="identifier">set</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="keyword">bool</span><span class="special">></span> <span class="identifier">s</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="char">'x'</span><span class="special">,</span> <span class="keyword">true</span><span class="special">);</span>
|
||||
<a href="../../../container/set.html" title="set"><tt class="computeroutput"><span class="identifier">set</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">,</span> <span class="keyword">bool</span><span class="special">></span> <span class="identifier">s</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="char">'x'</span><span class="special">,</span> <span class="keyword">true</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">has_key</span><span class="special"><</span><span class="keyword">char</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span> <span class="special">==</span> <span class="keyword">true</span><span class="special">);</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>size</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="back.html" title="back">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,28 +24,27 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.intrinsic.functions.size"></a><a class="link" href="size.html" title="size">size</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.size"></a><a href="size.html" title="size">size</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.size.description"></a><h6>
|
||||
<a name="id2676542"></a>
|
||||
<a class="link" href="size.html#fusion.sequence.intrinsic.functions.size.description">Description</a>
|
||||
<a name="id502642"></a>
|
||||
<a href="size.html#fusion.sequence.intrinsic.functions.size.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns a type convertible to <code class="computeroutput"><span class="keyword">int</span></code>
|
||||
Returns a type convertible to <tt class="computeroutput"><span class="keyword">int</span></tt>
|
||||
that evaluates the number of elements in the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.size.synopsis"></a><h6>
|
||||
<a name="id2676581"></a>
|
||||
<a class="link" href="size.html#fusion.sequence.intrinsic.functions.size.synopsis">Synopsis</a>
|
||||
<a name="id502686"></a>
|
||||
<a href="size.html#fusion.sequence.intrinsic.functions.size.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/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">type</span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">size</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.size.parameters"></a><h6>
|
||||
<a name="id2676720"></a>
|
||||
<a class="link" href="size.html#fusion.sequence.intrinsic.functions.size.parameters">Parameters</a>
|
||||
<a name="id502841"></a>
|
||||
<a href="size.html#fusion.sequence.intrinsic.functions.size.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -73,12 +72,13 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Model of <a class="link" href="../../concepts/forward_sequence.html" title="Forward Sequence">Forward
|
||||
Model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -90,34 +90,34 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.size.expression_semantics"></a><h6>
|
||||
<a name="id2676823"></a>
|
||||
<a class="link" href="size.html#fusion.sequence.intrinsic.functions.size.expression_semantics">Expression
|
||||
<a name="id502956"></a>
|
||||
<a href="size.html#fusion.sequence.intrinsic.functions.size.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">size</span><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: Convertible to <code class="computeroutput"><span class="keyword">int</span></code>.
|
||||
<span class="bold"><b>Return type</b></span>: Convertible to <tt class="computeroutput"><span class="keyword">int</span></tt>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the number of elements
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the number of elements
|
||||
in the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.size.header"></a><h6>
|
||||
<a name="id2676903"></a>
|
||||
<a class="link" href="size.html#fusion.sequence.intrinsic.functions.size.header">Header</a>
|
||||
<a name="id503046"></a>
|
||||
<a href="size.html#fusion.sequence.intrinsic.functions.size.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">sequence</span><span class="special">/</span><span class="identifier">intrinsic</span><span class="special">/</span><span class="identifier">size</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">size</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.size.example"></a><h6>
|
||||
<a name="id2677054"></a>
|
||||
<a class="link" href="size.html#fusion.sequence.intrinsic.functions.size.example">Example</a>
|
||||
<a name="id503215"></a>
|
||||
<a href="size.html#fusion.sequence.intrinsic.functions.size.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="keyword">int</span><span class="special">></span> <span class="identifier">v</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">);</span>
|
||||
<a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span> <span class="identifier">v</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">size</span><span class="special">(</span><span class="identifier">v</span><span class="special">)</span> <span class="special">==</span> <span class="number">3</span><span class="special">);</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>swap</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="at_key.html" title="at_key">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,26 +24,25 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.intrinsic.functions.swap"></a><a class="link" href="swap.html" title="swap">swap</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.swap"></a><a href="swap.html" title="swap">swap</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.swap.description"></a><h6>
|
||||
<a name="id2681211"></a>
|
||||
<a class="link" href="swap.html#fusion.sequence.intrinsic.functions.swap.description">Description</a>
|
||||
<a name="id507857"></a>
|
||||
<a href="swap.html#fusion.sequence.intrinsic.functions.swap.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Performs an element by element swap of the elements in 2 sequences.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.swap.synopsis"></a><h6>
|
||||
<a name="id2681239"></a>
|
||||
<a class="link" href="swap.html#fusion.sequence.intrinsic.functions.swap.synopsis">Synopsis</a>
|
||||
<a name="id507888"></a>
|
||||
<a href="swap.html#fusion.sequence.intrinsic.functions.swap.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">swap</span><span class="special">(</span><span class="identifier">Seq1</span><span class="special">&</span> <span class="identifier">seq1</span><span class="special">,</span> <span class="identifier">Seq2</span><span class="special">&</span> <span class="identifier">seq2</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.intrinsic.functions.swap.parameters"></a><h6>
|
||||
<a name="id2681366"></a>
|
||||
<a class="link" href="swap.html#fusion.sequence.intrinsic.functions.swap.parameters">Parameters</a>
|
||||
<a name="id508030"></a>
|
||||
<a href="swap.html#fusion.sequence.intrinsic.functions.swap.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -71,12 +70,13 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">seq1</span></code>, <code class="computeroutput"><span class="identifier">seq2</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">seq1</span></tt>, <tt class="computeroutput"><span class="identifier">seq2</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Models of <a class="link" href="../../concepts/forward_sequence.html" title="Forward Sequence">Forward
|
||||
Models of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -88,34 +88,34 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.intrinsic.functions.swap.expression_semantics"></a><h6>
|
||||
<a name="id2681479"></a>
|
||||
<a class="link" href="swap.html#fusion.sequence.intrinsic.functions.swap.expression_semantics">Expression
|
||||
<a name="id508157"></a>
|
||||
<a href="swap.html#fusion.sequence.intrinsic.functions.swap.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">swap</span><span class="special">(</span><span class="identifier">seq1</span><span class="special">,</span> <span class="identifier">seq2</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">void</span></code>
|
||||
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">void</span></tt>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Precondition</strong></span>: <code class="computeroutput"><a class="link" href="size.html" title="size"><code class="computeroutput"><span class="identifier">size</span></code></a><span class="special">(</span><span class="identifier">seq1</span><span class="special">)</span> <span class="special">==</span> <a class="link" href="size.html" title="size"><code class="computeroutput"><span class="identifier">size</span></code></a><span class="special">(</span><span class="identifier">seq2</span><span class="special">)</span></code>
|
||||
<span class="bold"><b>Precondition</b></span>: <tt class="computeroutput"><a href="size.html" title="size"><tt class="computeroutput"><span class="identifier">size</span></tt></a><span class="special">(</span><span class="identifier">seq1</span><span class="special">)</span> <span class="special">==</span> <a href="size.html" title="size"><tt class="computeroutput"><span class="identifier">size</span></tt></a><span class="special">(</span><span class="identifier">seq2</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Calls <code class="computeroutput"><span class="identifier">swap</span><span class="special">(</span><span class="identifier">a1</span><span class="special">,</span> <span class="identifier">b1</span><span class="special">)</span></code> for corresponding elements in <code class="computeroutput"><span class="identifier">seq1</span></code> and <code class="computeroutput"><span class="identifier">seq2</span></code>.
|
||||
<span class="bold"><b>Semantics</b></span>: Calls <tt class="computeroutput"><span class="identifier">swap</span><span class="special">(</span><span class="identifier">a1</span><span class="special">,</span> <span class="identifier">b1</span><span class="special">)</span></tt> for corresponding elements in <tt class="computeroutput"><span class="identifier">seq1</span></tt> and <tt class="computeroutput"><span class="identifier">seq2</span></tt>.
|
||||
</p>
|
||||
<p>
|
||||
/sequence/intrinsic/swap.hpp>
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.functions.swap.example"></a><h6>
|
||||
<a name="id2681705"></a>
|
||||
<a class="link" href="swap.html#fusion.sequence.intrinsic.functions.swap.example">Example</a>
|
||||
<a name="id508407"></a>
|
||||
<a href="swap.html#fusion.sequence.intrinsic.functions.swap.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="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">></span> <span class="identifier">v1</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="string">"hello"</span><span class="special">),</span> <span class="identifier">v2</span><span class="special">(</span><span class="number">2</span><span class="special">,</span> <span class="string">"world"</span><span class="special">);</span>
|
||||
<a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">></span> <span class="identifier">v1</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="string">"hello"</span><span class="special">),</span> <span class="identifier">v2</span><span class="special">(</span><span class="number">2</span><span class="special">,</span> <span class="string">"world"</span><span class="special">);</span>
|
||||
<span class="identifier">swap</span><span class="special">(</span><span class="identifier">v1</span><span class="special">,</span> <span class="identifier">v2</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">v1</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="string">"world"</span><span class="special">));</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">v2</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="string">"hello"</span><span class="special">));</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">v1</span> <span class="special">==</span> <a href="../../../container/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">2</span><span class="special">,</span> <span class="string">"world"</span><span class="special">));</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">v2</span> <span class="special">==</span> <a href="../../../container/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="string">"hello"</span><span class="special">));</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Metafunctions</title>
|
||||
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../intrinsic.html" title="Intrinsic">
|
||||
<link rel="prev" href="functions/swap.html" title="swap">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,8 +24,7 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.sequence.intrinsic.metafunctions"></a><a class="link" href="metafunctions.html" title="Metafunctions">Metafunctions</a>
|
||||
</h4></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions"></a><a href="metafunctions.html" title="Metafunctions">Metafunctions</a></h4></div></div></div>
|
||||
<div class="toc"><dl>
|
||||
<dt><span class="section"><a href="metafunctions/begin.html">begin</a></span></dt>
|
||||
<dt><span class="section"><a href="metafunctions/end.html">end</a></span></dt>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>at</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="size.html" title="size">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,20 +24,19 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.at"></a><a class="link" href="at.html" title="at">at</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.at"></a><a href="at.html" title="at">at</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.at.description"></a><h6>
|
||||
<a name="id2685529"></a>
|
||||
<a class="link" href="at.html#fusion.sequence.intrinsic.metafunctions.at.description">Description</a>
|
||||
<a name="id512690"></a>
|
||||
<a href="at.html#fusion.sequence.intrinsic.metafunctions.at.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a class="link" href="../functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a>
|
||||
<sup>[<a name="id2685562" href="#ftn.id2685562" class="footnote">5</a>]</sup>
|
||||
Returns the result type of <a href="../functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a>
|
||||
<sup>[<a name="id512728" href="#ftn.id512728">5</a>]</sup>
|
||||
.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.at.synopsis"></a><h6>
|
||||
<a name="id2685669"></a>
|
||||
<a class="link" href="at.html#fusion.sequence.intrinsic.metafunctions.at.synopsis">Synopsis</a>
|
||||
<a name="id512847"></a>
|
||||
<a href="at.html#fusion.sequence.intrinsic.metafunctions.at.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span><span class="special"><</span>
|
||||
@@ -49,8 +48,8 @@
|
||||
<span class="special">};</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id2685772"></a><p class="title"><b>Table 1.25. Parameters</b></p>
|
||||
<div class="table-contents"><table class="table" summary="Parameters">
|
||||
<a name="id512964"></a><p class="title"><b>Table 1.25. Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
@@ -77,12 +76,13 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">Seq</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">Seq</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
A model of <a class="link" href="../../concepts/forward_sequence.html" title="Forward Sequence">Forward
|
||||
A model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -95,7 +95,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">N</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">N</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -111,41 +111,41 @@
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</table>
|
||||
</div>
|
||||
<br class="table-break"><a name="fusion.sequence.intrinsic.metafunctions.at.expression_semantics"></a><h6>
|
||||
<a name="id2685904"></a>
|
||||
<a class="link" href="at.html#fusion.sequence.intrinsic.metafunctions.at.expression_semantics">Expression
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.at.expression_semantics"></a><h6>
|
||||
<a name="id513109"></a>
|
||||
<a href="at.html#fusion.sequence.intrinsic.metafunctions.at.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span><span class="special"><</span><span class="identifier">Seq</span><span class="special">,</span> <span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: Any type.
|
||||
<span class="bold"><b>Return type</b></span>: Any type.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the result type of
|
||||
using <a class="link" href="../functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a> to access the <code class="computeroutput"><span class="identifier">N</span></code>th element of <code class="computeroutput"><span class="identifier">Seq</span></code>.
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the result type of
|
||||
using <a href="../functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a> to access the <tt class="computeroutput"><span class="identifier">N</span></tt>th element of <tt class="computeroutput"><span class="identifier">Seq</span></tt>.
|
||||
</p>
|
||||
<p>
|
||||
/sequence/intrinsic/at.hpp>
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.at.example"></a><h6>
|
||||
<a name="id2686039"></a>
|
||||
<a class="link" href="at.html#fusion.sequence.intrinsic.metafunctions.at.example">Example</a>
|
||||
<a name="id513259"></a>
|
||||
<a href="at.html#fusion.sequence.intrinsic.metafunctions.at.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a class="link" href="../../../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</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="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special"><</span><a class="link" href="at.html" title="at"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></code></a><span class="special"><</span><span class="identifier">vec</span><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">int_</span><span class="special"><</span><span class="number">1</span><span class="special">></span> <span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">float</span><span class="special">&>));</span>
|
||||
<span class="keyword">typedef</span> <a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</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="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special"><</span><a href="at.html" title="at"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></tt></a><span class="special"><</span><span class="identifier">vec</span><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">int_</span><span class="special"><</span><span class="number">1</span><span class="special">></span> <span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">float</span><span class="special">&>));</span>
|
||||
</pre>
|
||||
<div class="footnotes">
|
||||
<br><hr width="100" align="left">
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id2685562" href="#id2685562" class="para">5</a>] </sup>
|
||||
<a class="link" href="at.html" title="at"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></code></a> reflects the actual return
|
||||
type of the function <a class="link" href="../functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a>. <a class="link" href="../../../sequence.html" title="Sequence">Sequence</a>(s)
|
||||
typically return references to its elements via the <a class="link" href="../functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a> function. If you want
|
||||
to get the actual element type, use <a class="link" href="value_at.html" title="value_at"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at</span></code></a>
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id512728" href="#id512728">5</a>] </sup>
|
||||
<a href="at.html" title="at"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></tt></a> reflects the actual return
|
||||
type of the function <a href="../functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a>. <a href="../../../sequence.html" title="Sequence">Sequence</a>(s)
|
||||
typically return references to its elements via the <a href="../functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a> function. If you want
|
||||
to get the actual element type, use <a href="value_at.html" title="value_at"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at</span></tt></a>
|
||||
</p></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>at_c</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="at.html" title="at">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,20 +24,19 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.at_c"></a><a class="link" href="at_c.html" title="at_c">at_c</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.at_c"></a><a href="at_c.html" title="at_c">at_c</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.at_c.description"></a><h6>
|
||||
<a name="id2686273"></a>
|
||||
<a class="link" href="at_c.html#fusion.sequence.intrinsic.metafunctions.at_c.description">Description</a>
|
||||
<a name="id513520"></a>
|
||||
<a href="at_c.html#fusion.sequence.intrinsic.metafunctions.at_c.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a class="link" href="../functions/at_c.html" title="at_c"><code class="computeroutput"><span class="identifier">at_c</span></code></a>
|
||||
<sup>[<a name="id2686307" href="#ftn.id2686307" class="footnote">6</a>]</sup>
|
||||
Returns the result type of <a href="../functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a>
|
||||
<sup>[<a name="id513559" href="#ftn.id513559">6</a>]</sup>
|
||||
.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.at_c.synopsis"></a><h6>
|
||||
<a name="id2686415"></a>
|
||||
<a class="link" href="at_c.html#fusion.sequence.intrinsic.metafunctions.at_c.synopsis">Synopsis</a>
|
||||
<a name="id513682"></a>
|
||||
<a href="at_c.html#fusion.sequence.intrinsic.metafunctions.at_c.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span><span class="special"><</span>
|
||||
@@ -49,8 +48,8 @@
|
||||
<span class="special">};</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id2686520"></a><p class="title"><b>Table 1.26. Parameters</b></p>
|
||||
<div class="table-contents"><table class="table" summary="Parameters">
|
||||
<a name="id513800"></a><p class="title"><b>Table 1.26. Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
@@ -77,12 +76,13 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">Seq</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">Seq</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
A model of <a class="link" href="../../concepts/forward_sequence.html" title="Forward Sequence">Forward
|
||||
A model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -95,7 +95,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">M</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">M</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -110,41 +110,41 @@
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</table>
|
||||
</div>
|
||||
<br class="table-break"><a name="fusion.sequence.intrinsic.metafunctions.at_c.expression_semantics"></a><h6>
|
||||
<a name="id2686646"></a>
|
||||
<a class="link" href="at_c.html#fusion.sequence.intrinsic.metafunctions.at_c.expression_semantics">Expression
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.at_c.expression_semantics"></a><h6>
|
||||
<a name="id513940"></a>
|
||||
<a href="at_c.html#fusion.sequence.intrinsic.metafunctions.at_c.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_c</span><span class="special"><</span><span class="identifier">Seq</span><span class="special">,</span> <span class="identifier">M</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: Any type
|
||||
<span class="bold"><b>Return type</b></span>: Any type
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the result type of
|
||||
using <a class="link" href="../functions/at_c.html" title="at_c"><code class="computeroutput"><span class="identifier">at_c</span></code></a> to access the <code class="computeroutput"><span class="identifier">M</span></code>th element of <code class="computeroutput"><span class="identifier">Seq</span></code>.
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the result type of
|
||||
using <a href="../functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a> to access the <tt class="computeroutput"><span class="identifier">M</span></tt>th element of <tt class="computeroutput"><span class="identifier">Seq</span></tt>.
|
||||
</p>
|
||||
<p>
|
||||
/sequence/intrinsic/at.hpp>
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.at_c.example"></a><h6>
|
||||
<a name="id2686781"></a>
|
||||
<a class="link" href="at_c.html#fusion.sequence.intrinsic.metafunctions.at_c.example">Example</a>
|
||||
<a name="id514091"></a>
|
||||
<a href="at_c.html#fusion.sequence.intrinsic.metafunctions.at_c.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a class="link" href="../../../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</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="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special"><</span><a class="link" href="at_c.html" title="at_c"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_c</span></code></a><span class="special"><</span><span class="identifier">vec</span><span class="special">,</span> <span class="number">1</span><span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">float</span><span class="special">&>));</span>
|
||||
<span class="keyword">typedef</span> <a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</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="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special"><</span><a href="at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_c</span></tt></a><span class="special"><</span><span class="identifier">vec</span><span class="special">,</span> <span class="number">1</span><span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">float</span><span class="special">&>));</span>
|
||||
</pre>
|
||||
<div class="footnotes">
|
||||
<br><hr width="100" align="left">
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id2686307" href="#id2686307" class="para">6</a>] </sup>
|
||||
<a class="link" href="at_c.html" title="at_c"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_c</span></code></a> reflects the actual
|
||||
return type of the function <a class="link" href="../functions/at_c.html" title="at_c"><code class="computeroutput"><span class="identifier">at_c</span></code></a>. <a class="link" href="../../../sequence.html" title="Sequence">Sequence</a>(s)
|
||||
typically return references to its elements via the <a class="link" href="../functions/at_c.html" title="at_c"><code class="computeroutput"><span class="identifier">at_c</span></code></a> function. If you want
|
||||
to get the actual element type, use <a class="link" href="value_at_c.html" title="value_at_c"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at_c</span></code></a>
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id513559" href="#id513559">6</a>] </sup>
|
||||
<a href="at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_c</span></tt></a> reflects the actual
|
||||
return type of the function <a href="../functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a>. <a href="../../../sequence.html" title="Sequence">Sequence</a>(s)
|
||||
typically return references to its elements via the <a href="../functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a> function. If you want
|
||||
to get the actual element type, use <a href="value_at_c.html" title="value_at_c"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at_c</span></tt></a>
|
||||
</p></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>at_key</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="has_key.html" title="has_key">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,20 +24,19 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.at_key"></a><a class="link" href="at_key.html" title="at_key">at_key</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.at_key"></a><a href="at_key.html" title="at_key">at_key</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.at_key.description"></a><h6>
|
||||
<a name="id2688942"></a>
|
||||
<a class="link" href="at_key.html#fusion.sequence.intrinsic.metafunctions.at_key.description">Description</a>
|
||||
<a name="id516509"></a>
|
||||
<a href="at_key.html#fusion.sequence.intrinsic.metafunctions.at_key.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a class="link" href="../functions/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">at_key</span></code></a>
|
||||
<sup>[<a name="id2688976" href="#ftn.id2688976" class="footnote">7</a>]</sup>
|
||||
Returns the result type of <a href="../functions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">at_key</span></tt></a>
|
||||
<sup>[<a name="id516548" href="#ftn.id516548">7</a>]</sup>
|
||||
.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.at_key.synopsis"></a><h6>
|
||||
<a name="id2689083"></a>
|
||||
<a class="link" href="at_key.html#fusion.sequence.intrinsic.metafunctions.at_key.synopsis">Synopsis</a>
|
||||
<a name="id516667"></a>
|
||||
<a href="at_key.html#fusion.sequence.intrinsic.metafunctions.at_key.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span><span class="special"><</span>
|
||||
@@ -49,8 +48,8 @@
|
||||
<span class="special">};</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id2689189"></a><p class="title"><b>Table 1.30. Parameters</b></p>
|
||||
<div class="table-contents"><table class="table" summary="Parameters">
|
||||
<a name="id516785"></a><p class="title"><b>Table 1.30. Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
@@ -77,12 +76,13 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">Seq</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">Seq</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
A model of <a class="link" href="../../concepts/forward_sequence.html" title="Forward Sequence">Forward
|
||||
A model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -95,7 +95,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">Key</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">Key</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -110,43 +110,43 @@
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</table>
|
||||
</div>
|
||||
<br class="table-break"><a name="fusion.sequence.intrinsic.metafunctions.at_key.expression_semantics"></a><h6>
|
||||
<a name="id2689314"></a>
|
||||
<a class="link" href="at_key.html#fusion.sequence.intrinsic.metafunctions.at_key.expression_semantics">Expression
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.at_key.expression_semantics"></a><h6>
|
||||
<a name="id516924"></a>
|
||||
<a href="at_key.html#fusion.sequence.intrinsic.metafunctions.at_key.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span><span class="special"><</span><span class="identifier">Seq</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>: Any type.
|
||||
<span class="bold"><b>Return type</b></span>: Any type.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the result of using
|
||||
<a class="link" href="../functions/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">at_key</span></code></a> to access the element
|
||||
with key type <code class="computeroutput"><span class="identifier">Key</span></code> in
|
||||
<code class="computeroutput"><span class="identifier">Seq</span></code>.
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the result of using
|
||||
<a href="../functions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">at_key</span></tt></a> to access the element
|
||||
with key type <tt class="computeroutput"><span class="identifier">Key</span></tt> in
|
||||
<tt class="computeroutput"><span class="identifier">Seq</span></tt>.
|
||||
</p>
|
||||
<p>
|
||||
/sequence/intrinsic/at_key.hpp>
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.at_key.example"></a><h6>
|
||||
<a name="id2689448"></a>
|
||||
<a class="link" href="at_key.html#fusion.sequence.intrinsic.metafunctions.at_key.example">Example</a>
|
||||
<a name="id517076"></a>
|
||||
<a href="at_key.html#fusion.sequence.intrinsic.metafunctions.at_key.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a class="link" href="../../../container/map.html" title="map"><code class="computeroutput"><span class="identifier">map</span></code></a><span class="special"><</span><a class="link" href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</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> <a class="link" href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><span class="special"><</span><span class="keyword">char</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a class="link" href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><span class="special"><</span><span class="keyword">double</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="special">></span> <span class="identifier">mymap</span><span class="special">;</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special"><</span><a class="link" href="at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></code></a><span class="special"><</span><span class="identifier">mymap</span><span class="special">,</span> <span class="keyword">int</span><span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">char</span><span class="special">&>));</span>
|
||||
<span class="keyword">typedef</span> <a href="../../../container/map.html" title="map"><tt class="computeroutput"><span class="identifier">map</span></tt></a><span class="special"><</span><a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><span class="special"><</span><span class="keyword">char</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><span class="special"><</span><span class="keyword">double</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="special">></span> <span class="identifier">mymap</span><span class="special">;</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special"><</span><a href="at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></tt></a><span class="special"><</span><span class="identifier">mymap</span><span class="special">,</span> <span class="keyword">int</span><span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">char</span><span class="special">&>));</span>
|
||||
</pre>
|
||||
<div class="footnotes">
|
||||
<br><hr width="100" align="left">
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id2688976" href="#id2688976" class="para">7</a>] </sup>
|
||||
<a class="link" href="at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></code></a> reflects the actual
|
||||
return type of the function <a class="link" href="../functions/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">at_key</span></code></a>. <span class="underline">_sequence</span>_s
|
||||
typically return references to its elements via the <a class="link" href="../functions/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">at_key</span></code></a> function. If you
|
||||
want to get the actual element type, use <a class="link" href="value_at_key.html" title="value_at_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at_key</span></code></a>
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id516548" href="#id516548">7</a>] </sup>
|
||||
<a href="at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></tt></a> reflects the actual
|
||||
return type of the function <a href="../functions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">at_key</span></tt></a>. <span class="underline">_sequence</span>_s
|
||||
typically return references to its elements via the <a href="../functions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">at_key</span></tt></a> function. If you
|
||||
want to get the actual element type, use <a href="value_at_key.html" title="value_at_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at_key</span></tt></a>
|
||||
</p></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>back</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="front.html" title="front">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,18 +24,17 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.back"></a><a class="link" href="back.html" title="back">back</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.back"></a><a href="back.html" title="back">back</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.back.description"></a><h6>
|
||||
<a name="id2684380"></a>
|
||||
<a class="link" href="back.html#fusion.sequence.intrinsic.metafunctions.back.description">Description</a>
|
||||
<a name="id511404"></a>
|
||||
<a href="back.html#fusion.sequence.intrinsic.metafunctions.back.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a class="link" href="../functions/back.html" title="back"><code class="computeroutput"><span class="identifier">back</span></code></a>.
|
||||
Returns the result type of <a href="../functions/back.html" title="back"><tt class="computeroutput"><span class="identifier">back</span></tt></a>.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.back.synopsis"></a><h6>
|
||||
<a name="id2684423"></a>
|
||||
<a class="link" href="back.html#fusion.sequence.intrinsic.metafunctions.back.synopsis">Synopsis</a>
|
||||
<a name="id511453"></a>
|
||||
<a href="back.html#fusion.sequence.intrinsic.metafunctions.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">Seq</span><span class="special">></span>
|
||||
@@ -45,8 +44,8 @@
|
||||
<span class="special">};</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id2684511"></a><p class="title"><b>Table 1.23. Parameters</b></p>
|
||||
<div class="table-contents"><table class="table" summary="Parameters">
|
||||
<a name="id511552"></a><p class="title"><b>Table 1.23. Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
@@ -72,12 +71,13 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">Seq</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">Seq</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
A model of <a class="link" href="../../concepts/forward_sequence.html" title="Forward Sequence">Forward
|
||||
A model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -87,33 +87,33 @@
|
||||
</p>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
</table>
|
||||
</div>
|
||||
<br class="table-break"><a name="fusion.sequence.intrinsic.metafunctions.back.expression_semantics"></a><h6>
|
||||
<a name="id2684603"></a>
|
||||
<a class="link" href="back.html#fusion.sequence.intrinsic.metafunctions.back.expression_semantics">Expression
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.back.expression_semantics"></a><h6>
|
||||
<a name="id511653"></a>
|
||||
<a href="back.html#fusion.sequence.intrinsic.metafunctions.back.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">back</span><span class="special"><</span><span class="identifier">Seq</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: Any type
|
||||
<span class="bold"><b>Return type</b></span>: Any type
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: The type returned by dereferencing
|
||||
an iterator to the last element in the sequence. Equivalent to <code class="computeroutput"><a class="link" href="../../../iterator/metafunctions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span></code></a><span class="special"><</span><a class="link" href="../../../iterator/metafunctions/prior.html" title="prior"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">prior</span></code></a><span class="special"><</span><a class="link" href="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">Seq</span><span class="special">>::</span><span class="identifier">type</span><span class="special">>::</span><span class="identifier">type</span><span class="special">>::</span><span class="identifier">type</span></code>.
|
||||
<span class="bold"><b>Semantics</b></span>: The type returned by dereferencing
|
||||
an iterator to the last element in the sequence. Equivalent to <tt class="computeroutput"><a href="../../../iterator/metafunctions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span></tt></a><span class="special"><</span><a href="../../../iterator/metafunctions/prior.html" title="prior"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">prior</span></tt></a><span class="special"><</span><a href="end.html" title="end"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">end</span></tt></a><span class="special"><</span><span class="identifier">Seq</span><span class="special">>::</span><span class="identifier">type</span><span class="special">>::</span><span class="identifier">type</span><span class="special">>::</span><span class="identifier">type</span></tt>.
|
||||
</p>
|
||||
<p>
|
||||
/sequence/intrinsic/back.hpp>
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.back.example"></a><h6>
|
||||
<a name="id2684811"></a>
|
||||
<a class="link" href="back.html#fusion.sequence.intrinsic.metafunctions.back.example">Example</a>
|
||||
<a name="id511886"></a>
|
||||
<a href="back.html#fusion.sequence.intrinsic.metafunctions.back.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a class="link" href="../../../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">char</span><span class="special">></span> <span class="identifier">vec</span><span class="special">;</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special"><</span><a class="link" href="back.html" title="back"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">back</span></code></a><span class="special"><</span><span class="identifier">vec</span><span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">char</span><span class="special">&>));</span>
|
||||
<span class="keyword">typedef</span> <a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">char</span><span class="special">></span> <span class="identifier">vec</span><span class="special">;</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special"><</span><a href="back.html" title="back"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">back</span></tt></a><span class="special"><</span><span class="identifier">vec</span><span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">char</span><span class="special">&>));</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>begin</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="../metafunctions.html" title="Metafunctions">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,18 +24,17 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.begin"></a><a class="link" href="begin.html" title="begin">begin</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.begin"></a><a href="begin.html" title="begin">begin</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.begin.description"></a><h6>
|
||||
<a name="id2682020"></a>
|
||||
<a class="link" href="begin.html#fusion.sequence.intrinsic.metafunctions.begin.description">Description</a>
|
||||
<a name="id508760"></a>
|
||||
<a href="begin.html#fusion.sequence.intrinsic.metafunctions.begin.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a class="link" href="../functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a>.
|
||||
Returns the result type of <a href="../functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a>.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.begin.synopsis"></a><h6>
|
||||
<a name="id2682062"></a>
|
||||
<a class="link" href="begin.html#fusion.sequence.intrinsic.metafunctions.begin.synopsis">Synopsis</a>
|
||||
<a name="id508809"></a>
|
||||
<a href="begin.html#fusion.sequence.intrinsic.metafunctions.begin.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Seq</span><span class="special">></span>
|
||||
@@ -45,8 +44,8 @@
|
||||
<span class="special">};</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id2682150"></a><p class="title"><b>Table 1.19. Parameters</b></p>
|
||||
<div class="table-contents"><table class="table" summary="Parameters">
|
||||
<a name="id508908"></a><p class="title"><b>Table 1.19. Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
@@ -72,12 +71,13 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">Seq</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">Seq</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
A model of <a class="link" href="../../concepts/forward_sequence.html" title="Forward Sequence">Forward
|
||||
A model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -87,35 +87,35 @@
|
||||
</p>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
</table>
|
||||
</div>
|
||||
<br class="table-break"><a name="fusion.sequence.intrinsic.metafunctions.begin.expression_semantics"></a><h6>
|
||||
<a name="id2682242"></a>
|
||||
<a class="link" href="begin.html#fusion.sequence.intrinsic.metafunctions.begin.expression_semantics">Expression
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.begin.expression_semantics"></a><h6>
|
||||
<a name="id509009"></a>
|
||||
<a href="begin.html#fusion.sequence.intrinsic.metafunctions.begin.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span><span class="special"><</span><span class="identifier">Seq</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: An iterator modelling the
|
||||
same traversal concept as <code class="computeroutput"><span class="identifier">Seq</span></code>.
|
||||
<span class="bold"><b>Return type</b></span>: An iterator modelling the
|
||||
same traversal concept as <tt class="computeroutput"><span class="identifier">Seq</span></tt>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the type of an iterator
|
||||
to the first element of <code class="computeroutput"><span class="identifier">Seq</span></code>.
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the type of an iterator
|
||||
to the first element of <tt class="computeroutput"><span class="identifier">Seq</span></tt>.
|
||||
</p>
|
||||
<p>
|
||||
/sequence/intrinsic/begin.hpp>
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.begin.example"></a><h6>
|
||||
<a name="id2682350"></a>
|
||||
<a class="link" href="begin.html#fusion.sequence.intrinsic.metafunctions.begin.example">Example</a>
|
||||
<a name="id509132"></a>
|
||||
<a href="begin.html#fusion.sequence.intrinsic.metafunctions.begin.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a class="link" href="../../../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">></span> <span class="identifier">vec</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a class="link" href="begin.html" title="begin"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></code></a><span class="special"><</span><span class="identifier">vec</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">it</span><span class="special">;</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special"><</span><a class="link" href="../../../iterator/metafunctions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span></code></a><span class="special"><</span><span class="identifier">it</span><span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">int</span><span class="special">&>))</span>
|
||||
<span class="keyword">typedef</span> <a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">></span> <span class="identifier">vec</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="begin.html" title="begin"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></tt></a><span class="special"><</span><span class="identifier">vec</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">it</span><span class="special">;</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special"><</span><a href="../../../iterator/metafunctions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span></tt></a><span class="special"><</span><span class="identifier">it</span><span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">int</span><span class="special">&>))</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>empty</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="end.html" title="end">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,18 +24,17 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.empty"></a><a class="link" href="empty.html" title="empty">empty</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.empty"></a><a href="empty.html" title="empty">empty</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.empty.description"></a><h6>
|
||||
<a name="id2683188"></a>
|
||||
<a class="link" href="empty.html#fusion.sequence.intrinsic.metafunctions.empty.description">Description</a>
|
||||
<a name="id510069"></a>
|
||||
<a href="empty.html#fusion.sequence.intrinsic.metafunctions.empty.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a class="link" href="../functions/empty.html" title="empty"><code class="computeroutput"><span class="identifier">empty</span></code></a>.
|
||||
Returns the result type of <a href="../functions/empty.html" title="empty"><tt class="computeroutput"><span class="identifier">empty</span></tt></a>.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.empty.synopsis"></a><h6>
|
||||
<a name="id2683230"></a>
|
||||
<a class="link" href="empty.html#fusion.sequence.intrinsic.metafunctions.empty.synopsis">Synopsis</a>
|
||||
<a name="id510118"></a>
|
||||
<a href="empty.html#fusion.sequence.intrinsic.metafunctions.empty.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Seq</span><span class="special">></span>
|
||||
@@ -45,8 +44,8 @@
|
||||
<span class="special">};</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id2683318"></a><p class="title"><b>Table 1.21. Parameters</b></p>
|
||||
<div class="table-contents"><table class="table" summary="Parameters">
|
||||
<a name="id510217"></a><p class="title"><b>Table 1.21. Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
@@ -72,12 +71,13 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">Seq</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">Seq</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
A model of <a class="link" href="../../concepts/forward_sequence.html" title="Forward Sequence">Forward
|
||||
A model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -87,38 +87,38 @@
|
||||
</p>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
</table>
|
||||
</div>
|
||||
<br class="table-break"><a name="fusion.sequence.intrinsic.metafunctions.empty.expression_semantics"></a><h6>
|
||||
<a name="id2683411"></a>
|
||||
<a class="link" href="empty.html#fusion.sequence.intrinsic.metafunctions.empty.expression_semantics">Expression
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.empty.expression_semantics"></a><h6>
|
||||
<a name="id510320"></a>
|
||||
<a href="empty.html#fusion.sequence.intrinsic.metafunctions.empty.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">empty</span><span class="special"><</span><span class="identifier">Seq</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: An <a href="http://www.boost.org/libs/mpl/doc/refmanual/integral-constant.html" target="_top">MPL
|
||||
<span class="bold"><b>Return type</b></span>: An <a href="http://www.boost.org/libs/mpl/doc/refmanual/integral-constant.html" target="_top">MPL
|
||||
Integral Constant</a>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns <code class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code>
|
||||
if <code class="computeroutput"><span class="identifier">Seq</span></code> has zero elements,
|
||||
<code class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></code> otherwise.
|
||||
<span class="bold"><b>Semantics</b></span>: Returns <tt class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></tt>
|
||||
if <tt class="computeroutput"><span class="identifier">Seq</span></tt> has zero elements,
|
||||
<tt class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></tt> otherwise.
|
||||
</p>
|
||||
<p>
|
||||
/sequence/intrinsic/empty.hpp>
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.empty.example"></a><h6>
|
||||
<a name="id2683555"></a>
|
||||
<a class="link" href="empty.html#fusion.sequence.intrinsic.metafunctions.empty.example">Example</a>
|
||||
<a name="id510482"></a>
|
||||
<a href="empty.html#fusion.sequence.intrinsic.metafunctions.empty.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a class="link" href="../../../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><></span> <span class="identifier">empty_vec</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a class="link" href="../../../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</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="keyword">typedef</span> <a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><></span> <span class="identifier">empty_vec</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</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="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><a class="link" href="empty.html" title="empty"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">empty</span></code></a><span class="special"><</span><span class="identifier">empty_vec</span><span class="special">>));</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT_NOT</span><span class="special">((</span><a class="link" href="empty.html" title="empty"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">empty</span></code></a><span class="special"><</span><span class="identifier">vec</span><span class="special">>));</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><a href="empty.html" title="empty"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">empty</span></tt></a><span class="special"><</span><span class="identifier">empty_vec</span><span class="special">>));</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT_NOT</span><span class="special">((</span><a href="empty.html" title="empty"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">empty</span></tt></a><span class="special"><</span><span class="identifier">vec</span><span class="special">>));</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>end</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="begin.html" title="begin">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,18 +24,17 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.end"></a><a class="link" href="end.html" title="end">end</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.end"></a><a href="end.html" title="end">end</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.end.description"></a><h6>
|
||||
<a name="id2682581"></a>
|
||||
<a class="link" href="end.html#fusion.sequence.intrinsic.metafunctions.end.description">Description</a>
|
||||
<a name="id509389"></a>
|
||||
<a href="end.html#fusion.sequence.intrinsic.metafunctions.end.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a class="link" href="../functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a>.
|
||||
Returns the result type of <a href="../functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a>.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.end.synopsis"></a><h6>
|
||||
<a name="id2682623"></a>
|
||||
<a class="link" href="end.html#fusion.sequence.intrinsic.metafunctions.end.synopsis">Synopsis</a>
|
||||
<a name="id509438"></a>
|
||||
<a href="end.html#fusion.sequence.intrinsic.metafunctions.end.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Seq</span><span class="special">></span>
|
||||
@@ -45,8 +44,8 @@
|
||||
<span class="special">};</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id2682711"></a><p class="title"><b>Table 1.20. Parameters</b></p>
|
||||
<div class="table-contents"><table class="table" summary="Parameters">
|
||||
<a name="id509536"></a><p class="title"><b>Table 1.20. Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
@@ -72,12 +71,13 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">Seq</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">Seq</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
A model of <a class="link" href="../../concepts/forward_sequence.html" title="Forward Sequence">Forward
|
||||
A model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -87,35 +87,35 @@
|
||||
</p>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
</table>
|
||||
</div>
|
||||
<br class="table-break"><a name="fusion.sequence.intrinsic.metafunctions.end.expression_semantics"></a><h6>
|
||||
<a name="id2682804"></a>
|
||||
<a class="link" href="end.html#fusion.sequence.intrinsic.metafunctions.end.expression_semantics">Expression
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.end.expression_semantics"></a><h6>
|
||||
<a name="id509638"></a>
|
||||
<a href="end.html#fusion.sequence.intrinsic.metafunctions.end.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">end</span><span class="special"><</span><span class="identifier">Seq</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 traversal
|
||||
concept as <code class="computeroutput"><span class="identifier">Seq</span></code>.
|
||||
<span class="bold"><b>Return type</b></span>: A model of the same traversal
|
||||
concept as <tt class="computeroutput"><span class="identifier">Seq</span></tt>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the type of an iterator
|
||||
one past the end of <code class="computeroutput"><span class="identifier">Seq</span></code>.
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the type of an iterator
|
||||
one past the end of <tt class="computeroutput"><span class="identifier">Seq</span></tt>.
|
||||
</p>
|
||||
<p>
|
||||
/sequence/intrinsic/end.hpp>
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.end.example"></a><h6>
|
||||
<a name="id2682911"></a>
|
||||
<a class="link" href="end.html#fusion.sequence.intrinsic.metafunctions.end.example">Example</a>
|
||||
<a name="id509760"></a>
|
||||
<a href="end.html#fusion.sequence.intrinsic.metafunctions.end.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a class="link" href="../../../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">></span> <span class="identifier">vec</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a class="link" href="../../../iterator/metafunctions/prior.html" title="prior"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">prior</span></code></a><span class="special"><</span><a class="link" href="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">vec</span><span class="special">>::</span><span class="identifier">type</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">first</span><span class="special">;</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><a class="link" href="../../../iterator/metafunctions/equal_to.html" title="equal_to"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">equal_to</span></code></a><span class="special"><</span><span class="identifier">first</span><span class="special">,</span> <a class="link" href="begin.html" title="begin"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></code></a><span class="special"><</span><span class="identifier">vec</span><span class="special">>::</span><span class="identifier">type</span><span class="special">>))</span>
|
||||
<span class="keyword">typedef</span> <a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">></span> <span class="identifier">vec</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../../../iterator/metafunctions/prior.html" title="prior"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">prior</span></tt></a><span class="special"><</span><a href="end.html" title="end"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">end</span></tt></a><span class="special"><</span><span class="identifier">vec</span><span class="special">>::</span><span class="identifier">type</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">first</span><span class="special">;</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><a href="../../../iterator/metafunctions/equal_to.html" title="equal_to"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">equal_to</span></tt></a><span class="special"><</span><span class="identifier">first</span><span class="special">,</span> <a href="begin.html" title="begin"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></tt></a><span class="special"><</span><span class="identifier">vec</span><span class="special">>::</span><span class="identifier">type</span><span class="special">>))</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>front</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="empty.html" title="empty">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,18 +24,17 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.front"></a><a class="link" href="front.html" title="front">front</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.front"></a><a href="front.html" title="front">front</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.front.description"></a><h6>
|
||||
<a name="id2683791"></a>
|
||||
<a class="link" href="front.html#fusion.sequence.intrinsic.metafunctions.front.description">Description</a>
|
||||
<a name="id510745"></a>
|
||||
<a href="front.html#fusion.sequence.intrinsic.metafunctions.front.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a class="link" href="../functions/front.html" title="front"><code class="computeroutput"><span class="identifier">front</span></code></a>.
|
||||
Returns the result type of <a href="../functions/front.html" title="front"><tt class="computeroutput"><span class="identifier">front</span></tt></a>.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.front.synopsis"></a><h6>
|
||||
<a name="id2683834"></a>
|
||||
<a class="link" href="front.html#fusion.sequence.intrinsic.metafunctions.front.synopsis">Synopsis</a>
|
||||
<a name="id510794"></a>
|
||||
<a href="front.html#fusion.sequence.intrinsic.metafunctions.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">Seq</span><span class="special">></span>
|
||||
@@ -45,8 +44,8 @@
|
||||
<span class="special">};</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id2683922"></a><p class="title"><b>Table 1.22. Parameters</b></p>
|
||||
<div class="table-contents"><table class="table" summary="Parameters">
|
||||
<a name="id510893"></a><p class="title"><b>Table 1.22. Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
@@ -72,12 +71,13 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">Seq</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">Seq</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
A model of <a class="link" href="../../concepts/forward_sequence.html" title="Forward Sequence">Forward
|
||||
A model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -87,34 +87,34 @@
|
||||
</p>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
</table>
|
||||
</div>
|
||||
<br class="table-break"><a name="fusion.sequence.intrinsic.metafunctions.front.expression_semantics"></a><h6>
|
||||
<a name="id2684015"></a>
|
||||
<a class="link" href="front.html#fusion.sequence.intrinsic.metafunctions.front.expression_semantics">Expression
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.front.expression_semantics"></a><h6>
|
||||
<a name="id510995"></a>
|
||||
<a href="front.html#fusion.sequence.intrinsic.metafunctions.front.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">front</span><span class="special"><</span><span class="identifier">Seq</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: Any type
|
||||
<span class="bold"><b>Return type</b></span>: Any type
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: The type returned by dereferencing
|
||||
an iterator to the first element in <code class="computeroutput"><span class="identifier">Seq</span></code>.
|
||||
Equivalent to <code class="computeroutput"><a class="link" href="../../../iterator/metafunctions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span></code></a><span class="special"><</span><a class="link" href="begin.html" title="begin"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></code></a><span class="special"><</span><span class="identifier">Seq</span><span class="special">>::</span><span class="identifier">type</span><span class="special">>::</span><span class="identifier">type</span></code>.
|
||||
<span class="bold"><b>Semantics</b></span>: The type returned by dereferencing
|
||||
an iterator to the first element in <tt class="computeroutput"><span class="identifier">Seq</span></tt>.
|
||||
Equivalent to <tt class="computeroutput"><a href="../../../iterator/metafunctions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span></tt></a><span class="special"><</span><a href="begin.html" title="begin"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></tt></a><span class="special"><</span><span class="identifier">Seq</span><span class="special">>::</span><span class="identifier">type</span><span class="special">>::</span><span class="identifier">type</span></tt>.
|
||||
</p>
|
||||
<p>
|
||||
/sequence/intrinsic/front.hpp>
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.front.example"></a><h6>
|
||||
<a name="id2684198"></a>
|
||||
<a class="link" href="front.html#fusion.sequence.intrinsic.metafunctions.front.example">Example</a>
|
||||
<a name="id511200"></a>
|
||||
<a href="front.html#fusion.sequence.intrinsic.metafunctions.front.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a class="link" href="../../../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">char</span><span class="special">></span> <span class="identifier">vec</span><span class="special">;</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special"><</span><a class="link" href="front.html" title="front"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">front</span></code></a><span class="special"><</span><span class="identifier">vec</span><span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">int</span><span class="special">&>));</span>
|
||||
<span class="keyword">typedef</span> <a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">char</span><span class="special">></span> <span class="identifier">vec</span><span class="special">;</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special"><</span><a href="front.html" title="front"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">front</span></tt></a><span class="special"><</span><span class="identifier">vec</span><span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">int</span><span class="special">&>));</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>has_key</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="value_at_c.html" title="value_at_c">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,18 +24,17 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.has_key"></a><a class="link" href="has_key.html" title="has_key">has_key</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.has_key"></a><a href="has_key.html" title="has_key">has_key</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.has_key.description"></a><h6>
|
||||
<a name="id2688193"></a>
|
||||
<a class="link" href="has_key.html#fusion.sequence.intrinsic.metafunctions.has_key.description">Description</a>
|
||||
<a name="id515674"></a>
|
||||
<a href="has_key.html#fusion.sequence.intrinsic.metafunctions.has_key.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a class="link" href="../functions/has_key.html" title="has_key"><code class="computeroutput"><span class="identifier">has_key</span></code></a>.
|
||||
Returns the result type of <a href="../functions/has_key.html" title="has_key"><tt class="computeroutput"><span class="identifier">has_key</span></tt></a>.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.has_key.synopsis"></a><h6>
|
||||
<a name="id2688236"></a>
|
||||
<a class="link" href="has_key.html#fusion.sequence.intrinsic.metafunctions.has_key.synopsis">Synopsis</a>
|
||||
<a name="id515724"></a>
|
||||
<a href="has_key.html#fusion.sequence.intrinsic.metafunctions.has_key.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span><span class="special"><</span>
|
||||
@@ -47,8 +46,8 @@
|
||||
<span class="special">};</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id2688341"></a><p class="title"><b>Table 1.29. Parameters</b></p>
|
||||
<div class="table-contents"><table class="table" summary="Parameters">
|
||||
<a name="id515842"></a><p class="title"><b>Table 1.29. Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
@@ -75,12 +74,13 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">Seq</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">Seq</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
A model of <a class="link" href="../../concepts/forward_sequence.html" title="Forward Sequence">Forward
|
||||
A model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -93,7 +93,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">Key</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">Key</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -108,37 +108,37 @@
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</table>
|
||||
</div>
|
||||
<br class="table-break"><a name="fusion.sequence.intrinsic.metafunctions.has_key.expression_semantics"></a><h6>
|
||||
<a name="id2688465"></a>
|
||||
<a class="link" href="has_key.html#fusion.sequence.intrinsic.metafunctions.has_key.expression_semantics">Expression
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.has_key.expression_semantics"></a><h6>
|
||||
<a name="id515979"></a>
|
||||
<a href="has_key.html#fusion.sequence.intrinsic.metafunctions.has_key.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">has_key</span><span class="special"><</span><span class="identifier">Seq</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>: An <a href="http://www.boost.org/libs/mpl/doc/refmanual/integral-constant.html" target="_top">MPL
|
||||
<span class="bold"><b>Return type</b></span>: An <a href="http://www.boost.org/libs/mpl/doc/refmanual/integral-constant.html" target="_top">MPL
|
||||
Integral Constant</a>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns <code class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code>
|
||||
if <code class="computeroutput"><span class="identifier">Seq</span></code> contains an element
|
||||
with key type <code class="computeroutput"><span class="identifier">Key</span></code>, returns
|
||||
<code class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></code> otherwise.
|
||||
<span class="bold"><b>Semantics</b></span>: Returns <tt class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></tt>
|
||||
if <tt class="computeroutput"><span class="identifier">Seq</span></tt> contains an element
|
||||
with key type <tt class="computeroutput"><span class="identifier">Key</span></tt>, returns
|
||||
<tt class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></tt> otherwise.
|
||||
</p>
|
||||
<p>
|
||||
/sequence/intrinsic/has_key.hpp>
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.has_key.example"></a><h6>
|
||||
<a name="id2688630"></a>
|
||||
<a class="link" href="has_key.html#fusion.sequence.intrinsic.metafunctions.has_key.example">Example</a>
|
||||
<a name="id516163"></a>
|
||||
<a href="has_key.html#fusion.sequence.intrinsic.metafunctions.has_key.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a class="link" href="../../../container/map.html" title="map"><code class="computeroutput"><span class="identifier">map</span></code></a><span class="special"><</span><a class="link" href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</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> <a class="link" href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><span class="special"><</span><span class="keyword">char</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a class="link" href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><span class="special"><</span><span class="keyword">double</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="special">></span> <span class="identifier">mymap</span><span class="special">;</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><a class="link" href="has_key.html" title="has_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">has_key</span></code></a><span class="special"><</span><span class="identifier">mymap</span><span class="special">,</span> <span class="keyword">int</span><span class="special">>));</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT_NOT</span><span class="special">((</span><a class="link" href="has_key.html" title="has_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">has_key</span></code></a><span class="special"><</span><span class="identifier">mymap</span><span class="special">,</span> <span class="keyword">void</span><span class="special">*>));</span>
|
||||
<span class="keyword">typedef</span> <a href="../../../container/map.html" title="map"><tt class="computeroutput"><span class="identifier">map</span></tt></a><span class="special"><</span><a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><span class="special"><</span><span class="keyword">char</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><span class="special"><</span><span class="keyword">double</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="special">></span> <span class="identifier">mymap</span><span class="special">;</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><a href="has_key.html" title="has_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">has_key</span></tt></a><span class="special"><</span><span class="identifier">mymap</span><span class="special">,</span> <span class="keyword">int</span><span class="special">>));</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT_NOT</span><span class="special">((</span><a href="has_key.html" title="has_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">has_key</span></tt></a><span class="special"><</span><span class="identifier">mymap</span><span class="special">,</span> <span class="keyword">void</span><span class="special">*>));</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>size</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="back.html" title="back">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,18 +24,17 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.size"></a><a class="link" href="size.html" title="size">size</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.size"></a><a href="size.html" title="size">size</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.size.description"></a><h6>
|
||||
<a name="id2684993"></a>
|
||||
<a class="link" href="size.html#fusion.sequence.intrinsic.metafunctions.size.description">Description</a>
|
||||
<a name="id512090"></a>
|
||||
<a href="size.html#fusion.sequence.intrinsic.metafunctions.size.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a class="link" href="../functions/size.html" title="size"><code class="computeroutput"><span class="identifier">size</span></code></a>.
|
||||
Returns the result type of <a href="../functions/size.html" title="size"><tt class="computeroutput"><span class="identifier">size</span></tt></a>.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.size.synopsis"></a><h6>
|
||||
<a name="id2685036"></a>
|
||||
<a class="link" href="size.html#fusion.sequence.intrinsic.metafunctions.size.synopsis">Synopsis</a>
|
||||
<a name="id512139"></a>
|
||||
<a href="size.html#fusion.sequence.intrinsic.metafunctions.size.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Seq</span><span class="special">></span>
|
||||
@@ -45,8 +44,8 @@
|
||||
<span class="special">};</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id2685124"></a><p class="title"><b>Table 1.24. Parameters</b></p>
|
||||
<div class="table-contents"><table class="table" summary="Parameters">
|
||||
<a name="id512238"></a><p class="title"><b>Table 1.24. Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
@@ -72,12 +71,13 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">Seq</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">Seq</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
A model of <a class="link" href="../../concepts/forward_sequence.html" title="Forward Sequence">Forward
|
||||
A model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -87,34 +87,34 @@
|
||||
</p>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
</table>
|
||||
</div>
|
||||
<br class="table-break"><a name="fusion.sequence.intrinsic.metafunctions.size.expression_semantics"></a><h6>
|
||||
<a name="id2685216"></a>
|
||||
<a class="link" href="size.html#fusion.sequence.intrinsic.metafunctions.size.expression_semantics">Expression
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.size.expression_semantics"></a><h6>
|
||||
<a name="id512339"></a>
|
||||
<a href="size.html#fusion.sequence.intrinsic.metafunctions.size.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span><span class="special"><</span><span class="identifier">Seq</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: An <a href="http://www.boost.org/libs/mpl/doc/refmanual/integral-constant.html" target="_top">MPL
|
||||
<span class="bold"><b>Return type</b></span>: An <a href="http://www.boost.org/libs/mpl/doc/refmanual/integral-constant.html" target="_top">MPL
|
||||
Integral Constant</a>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the number of elements
|
||||
in <code class="computeroutput"><span class="identifier">Seq</span></code>.
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the number of elements
|
||||
in <tt class="computeroutput"><span class="identifier">Seq</span></tt>.
|
||||
</p>
|
||||
<p>
|
||||
/sequence/intrinsic/size.hpp>
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.size.example"></a><h6>
|
||||
<a name="id2685319"></a>
|
||||
<a class="link" href="size.html#fusion.sequence.intrinsic.metafunctions.size.example">Example</a>
|
||||
<a name="id512457"></a>
|
||||
<a href="size.html#fusion.sequence.intrinsic.metafunctions.size.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a class="link" href="../../../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</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="keyword">typedef</span> <a class="link" href="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">vec</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">size_mpl_integral_constant</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</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="keyword">typedef</span> <a href="size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special"><</span><span class="identifier">vec</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">size_mpl_integral_constant</span><span class="special">;</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT_RELATION</span><span class="special">(</span><span class="identifier">size_mpl_integral_constant</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="special">==,</span> <span class="number">3</span><span class="special">);</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>swap</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="value_at_key.html" title="value_at_key">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,18 +24,17 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.swap"></a><a class="link" href="swap.html" title="swap">swap</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.swap"></a><a href="swap.html" title="swap">swap</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.swap.description"></a><h6>
|
||||
<a name="id2690417"></a>
|
||||
<a class="link" href="swap.html#fusion.sequence.intrinsic.metafunctions.swap.description">Description</a>
|
||||
<a name="id518158"></a>
|
||||
<a href="swap.html#fusion.sequence.intrinsic.metafunctions.swap.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the return type of swap.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.swap.synopsis"></a><h6>
|
||||
<a name="id2690443"></a>
|
||||
<a class="link" href="swap.html#fusion.sequence.intrinsic.metafunctions.swap.synopsis">Synopsis</a>
|
||||
<a name="id518190"></a>
|
||||
<a href="swap.html#fusion.sequence.intrinsic.metafunctions.swap.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>
|
||||
@@ -45,8 +44,8 @@
|
||||
<span class="special">};</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id2690551"></a><p class="title"><b>Table 1.32. Parameters</b></p>
|
||||
<div class="table-contents"><table class="table" summary="Parameters">
|
||||
<a name="id518310"></a><p class="title"><b>Table 1.32. Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
@@ -72,12 +71,13 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">Seq1</span></code>, <code class="computeroutput"><span class="identifier">Seq2</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">Seq1</span></tt>, <tt class="computeroutput"><span class="identifier">Seq2</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Models of <a class="link" href="../../concepts/forward_sequence.html" title="Forward Sequence">Forward
|
||||
Models of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -87,21 +87,21 @@
|
||||
</p>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
</table>
|
||||
</div>
|
||||
<br class="table-break"><a name="fusion.sequence.intrinsic.metafunctions.swap.expression_semantics"></a><h6>
|
||||
<a name="id2690655"></a>
|
||||
<a class="link" href="swap.html#fusion.sequence.intrinsic.metafunctions.swap.expression_semantics">Expression
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.swap.expression_semantics"></a><h6>
|
||||
<a name="id518425"></a>
|
||||
<a href="swap.html#fusion.sequence.intrinsic.metafunctions.swap.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">swap</span><span class="special"><</span><span class="identifier">Seq1</span><span class="special">,</span> <span class="identifier">Seq2</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">void</span></code>.
|
||||
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">void</span></tt>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Always returns <code class="computeroutput"><span class="keyword">void</span></code>.
|
||||
<span class="bold"><b>Semantics</b></span>: Always returns <tt class="computeroutput"><span class="keyword">void</span></tt>.
|
||||
</p>
|
||||
<p>
|
||||
/sequence/intrinsic/swap.hpp>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>value_at</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="at_c.html" title="at_c">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,18 +24,17 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.value_at"></a><a class="link" href="value_at.html" title="value_at">value_at</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.value_at"></a><a href="value_at.html" title="value_at">value_at</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.value_at.description"></a><h6>
|
||||
<a name="id2686984"></a>
|
||||
<a class="link" href="value_at.html#fusion.sequence.intrinsic.metafunctions.value_at.description">Description</a>
|
||||
<a name="id514317"></a>
|
||||
<a href="value_at.html#fusion.sequence.intrinsic.metafunctions.value_at.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the actual type at a given index from the <a class="link" href="../../../sequence.html" title="Sequence">Sequence</a>.
|
||||
Returns the actual type at a given index from the <a href="../../../sequence.html" title="Sequence">Sequence</a>.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.value_at.synopsis"></a><h6>
|
||||
<a name="id2687016"></a>
|
||||
<a class="link" href="value_at.html#fusion.sequence.intrinsic.metafunctions.value_at.synopsis">Synopsis</a>
|
||||
<a name="id514357"></a>
|
||||
<a href="value_at.html#fusion.sequence.intrinsic.metafunctions.value_at.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span><span class="special"><</span>
|
||||
@@ -47,8 +46,8 @@
|
||||
<span class="special">};</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id2687121"></a><p class="title"><b>Table 1.27. Parameters</b></p>
|
||||
<div class="table-contents"><table class="table" summary="Parameters">
|
||||
<a name="id514474"></a><p class="title"><b>Table 1.27. Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
@@ -75,12 +74,13 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">Seq</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">Seq</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
A model of <a class="link" href="../../concepts/forward_sequence.html" title="Forward Sequence">Forward
|
||||
A model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -93,7 +93,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">N</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">N</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -109,33 +109,33 @@
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</table>
|
||||
</div>
|
||||
<br class="table-break"><a name="fusion.sequence.intrinsic.metafunctions.value_at.expression_semantics"></a><h6>
|
||||
<a name="id2687252"></a>
|
||||
<a class="link" href="value_at.html#fusion.sequence.intrinsic.metafunctions.value_at.expression_semantics">Expression
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.value_at.expression_semantics"></a><h6>
|
||||
<a name="id514619"></a>
|
||||
<a href="value_at.html#fusion.sequence.intrinsic.metafunctions.value_at.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at</span><span class="special"><</span><span class="identifier">Seq</span><span class="special">,</span> <span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: Any type.
|
||||
<span class="bold"><b>Return type</b></span>: Any type.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the actual type at
|
||||
the <code class="computeroutput"><span class="identifier">N</span></code>th element of <code class="computeroutput"><span class="identifier">Seq</span></code>.
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the actual type at
|
||||
the <tt class="computeroutput"><span class="identifier">N</span></tt>th element of <tt class="computeroutput"><span class="identifier">Seq</span></tt>.
|
||||
</p>
|
||||
<p>
|
||||
/sequence/intrinsic/value_at.hpp>
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.value_at.example"></a><h6>
|
||||
<a name="id2687371"></a>
|
||||
<a class="link" href="value_at.html#fusion.sequence.intrinsic.metafunctions.value_at.example">Example</a>
|
||||
<a name="id514753"></a>
|
||||
<a href="value_at.html#fusion.sequence.intrinsic.metafunctions.value_at.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a class="link" href="../../../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</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="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special"><</span><a class="link" href="value_at.html" title="value_at"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at</span></code></a><span class="special"><</span><span class="identifier">vec</span><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">int_</span><span class="special"><</span><span class="number">1</span><span class="special">></span> <span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">float</span><span class="special">>));</span>
|
||||
<span class="keyword">typedef</span> <a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</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="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special"><</span><a href="value_at.html" title="value_at"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at</span></tt></a><span class="special"><</span><span class="identifier">vec</span><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">int_</span><span class="special"><</span><span class="number">1</span><span class="special">></span> <span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">float</span><span class="special">>));</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>value_at_c</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="value_at.html" title="value_at">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,18 +24,17 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.value_at_c"></a><a class="link" href="value_at_c.html" title="value_at_c">value_at_c</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.value_at_c"></a><a href="value_at_c.html" title="value_at_c">value_at_c</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.value_at_c.description"></a><h6>
|
||||
<a name="id2687608"></a>
|
||||
<a class="link" href="value_at_c.html#fusion.sequence.intrinsic.metafunctions.value_at_c.description">Description</a>
|
||||
<a name="id515016"></a>
|
||||
<a href="value_at_c.html#fusion.sequence.intrinsic.metafunctions.value_at_c.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the actual type at a given index from the <a class="link" href="../../../sequence.html" title="Sequence">Sequence</a>.
|
||||
Returns the actual type at a given index from the <a href="../../../sequence.html" title="Sequence">Sequence</a>.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.value_at_c.synopsis"></a><h6>
|
||||
<a name="id2687641"></a>
|
||||
<a class="link" href="value_at_c.html#fusion.sequence.intrinsic.metafunctions.value_at_c.synopsis">Synopsis</a>
|
||||
<a name="id515057"></a>
|
||||
<a href="value_at_c.html#fusion.sequence.intrinsic.metafunctions.value_at_c.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span><span class="special"><</span>
|
||||
@@ -47,8 +46,8 @@
|
||||
<span class="special">};</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id2687746"></a><p class="title"><b>Table 1.28. Parameters</b></p>
|
||||
<div class="table-contents"><table class="table" summary="Parameters">
|
||||
<a name="id515175"></a><p class="title"><b>Table 1.28. Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
@@ -75,12 +74,13 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">Seq</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">Seq</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
A model of <a class="link" href="../../concepts/forward_sequence.html" title="Forward Sequence">Forward
|
||||
A model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -93,7 +93,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">M</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">M</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -108,33 +108,33 @@
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</table>
|
||||
</div>
|
||||
<br class="table-break"><a name="fusion.sequence.intrinsic.metafunctions.value_at_c.expression_semantics"></a><h6>
|
||||
<a name="id2687871"></a>
|
||||
<a class="link" href="value_at_c.html#fusion.sequence.intrinsic.metafunctions.value_at_c.expression_semantics">Expression
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.value_at_c.expression_semantics"></a><h6>
|
||||
<a name="id515313"></a>
|
||||
<a href="value_at_c.html#fusion.sequence.intrinsic.metafunctions.value_at_c.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at_c</span><span class="special"><</span><span class="identifier">Seq</span><span class="special">,</span> <span class="identifier">M</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: Any type
|
||||
<span class="bold"><b>Return type</b></span>: Any type
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the actual type at
|
||||
the <code class="computeroutput"><span class="identifier">M</span></code>th element of <code class="computeroutput"><span class="identifier">Seq</span></code>.
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the actual type at
|
||||
the <tt class="computeroutput"><span class="identifier">M</span></tt>th element of <tt class="computeroutput"><span class="identifier">Seq</span></tt>.
|
||||
</p>
|
||||
<p>
|
||||
/sequence/intrinsic/value_at.hpp>
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.value_at_c.example"></a><h6>
|
||||
<a name="id2687990"></a>
|
||||
<a class="link" href="value_at_c.html#fusion.sequence.intrinsic.metafunctions.value_at_c.example">Example</a>
|
||||
<a name="id515446"></a>
|
||||
<a href="value_at_c.html#fusion.sequence.intrinsic.metafunctions.value_at_c.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a class="link" href="../../../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</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="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special"><</span><a class="link" href="value_at_c.html" title="value_at_c"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at_c</span></code></a><span class="special"><</span><span class="identifier">vec</span><span class="special">,</span> <span class="number">1</span><span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">float</span><span class="special">>));</span>
|
||||
<span class="keyword">typedef</span> <a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</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="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special"><</span><a href="value_at_c.html" title="value_at_c"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at_c</span></tt></a><span class="special"><</span><span class="identifier">vec</span><span class="special">,</span> <span class="number">1</span><span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">float</span><span class="special">>));</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>value_at_key</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="at_key.html" title="at_key">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,18 +24,17 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.value_at_key"></a><a class="link" href="value_at_key.html" title="value_at_key">value_at_key</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.value_at_key"></a><a href="value_at_key.html" title="value_at_key">value_at_key</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.value_at_key.description"></a><h6>
|
||||
<a name="id2689742"></a>
|
||||
<a class="link" href="value_at_key.html#fusion.sequence.intrinsic.metafunctions.value_at_key.description">Description</a>
|
||||
<a name="id517402"></a>
|
||||
<a href="value_at_key.html#fusion.sequence.intrinsic.metafunctions.value_at_key.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the actual element type associated with a Key from the <a class="link" href="../../../sequence.html" title="Sequence">Sequence</a>.
|
||||
Returns the actual element type associated with a Key from the <a href="../../../sequence.html" title="Sequence">Sequence</a>.
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.value_at_key.synopsis"></a><h6>
|
||||
<a name="id2689777"></a>
|
||||
<a class="link" href="value_at_key.html#fusion.sequence.intrinsic.metafunctions.value_at_key.synopsis">Synopsis</a>
|
||||
<a name="id517442"></a>
|
||||
<a href="value_at_key.html#fusion.sequence.intrinsic.metafunctions.value_at_key.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span><span class="special"><</span>
|
||||
@@ -47,8 +46,8 @@
|
||||
<span class="special">};</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id2689882"></a><p class="title"><b>Table 1.31. Parameters</b></p>
|
||||
<div class="table-contents"><table class="table" summary="Parameters">
|
||||
<a name="id517560"></a><p class="title"><b>Table 1.31. Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
@@ -75,12 +74,13 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">Seq</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">Seq</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
A model of <a class="link" href="../../concepts/forward_sequence.html" title="Forward Sequence">Forward
|
||||
A model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -93,7 +93,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">Key</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">Key</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -108,34 +108,34 @@
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</table>
|
||||
</div>
|
||||
<br class="table-break"><a name="fusion.sequence.intrinsic.metafunctions.value_at_key.expression_semantics"></a><h6>
|
||||
<a name="id2690006"></a>
|
||||
<a class="link" href="value_at_key.html#fusion.sequence.intrinsic.metafunctions.value_at_key.expression_semantics">Expression
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.value_at_key.expression_semantics"></a><h6>
|
||||
<a name="id517700"></a>
|
||||
<a href="value_at_key.html#fusion.sequence.intrinsic.metafunctions.value_at_key.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at_key</span><span class="special"><</span><span class="identifier">Seq</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>: Any type.
|
||||
<span class="bold"><b>Return type</b></span>: Any type.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the actual element
|
||||
type associated with key type <code class="computeroutput"><span class="identifier">Key</span></code>
|
||||
in <code class="computeroutput"><span class="identifier">Seq</span></code>.
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the actual element
|
||||
type associated with key type <tt class="computeroutput"><span class="identifier">Key</span></tt>
|
||||
in <tt class="computeroutput"><span class="identifier">Seq</span></tt>.
|
||||
</p>
|
||||
<p>
|
||||
/sequence/intrinsic/value_at_key.hpp>
|
||||
</p>
|
||||
<a name="fusion.sequence.intrinsic.metafunctions.value_at_key.example"></a><h6>
|
||||
<a name="id2690125"></a>
|
||||
<a class="link" href="value_at_key.html#fusion.sequence.intrinsic.metafunctions.value_at_key.example">Example</a>
|
||||
<a name="id517832"></a>
|
||||
<a href="value_at_key.html#fusion.sequence.intrinsic.metafunctions.value_at_key.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a class="link" href="../../../container/map.html" title="map"><code class="computeroutput"><span class="identifier">map</span></code></a><span class="special"><</span><a class="link" href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</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> <a class="link" href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><span class="special"><</span><span class="keyword">char</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a class="link" href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><span class="special"><</span><span class="keyword">double</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="special">></span> <span class="identifier">mymap</span><span class="special">;</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special"><</span><a class="link" href="at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></code></a><span class="special"><</span><span class="identifier">mymap</span><span class="special">,</span> <span class="keyword">int</span><span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>));</span>
|
||||
<span class="keyword">typedef</span> <a href="../../../container/map.html" title="map"><tt class="computeroutput"><span class="identifier">map</span></tt></a><span class="special"><</span><a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><span class="special"><</span><span class="keyword">char</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><span class="special"><</span><span class="keyword">double</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="special">></span> <span class="identifier">mymap</span><span class="special">;</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special"><</span><a href="at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></tt></a><span class="special"><</span><span class="identifier">mymap</span><span class="special">,</span> <span class="keyword">int</span><span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>));</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Operator</title>
|
||||
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../sequence.html" title="Sequence">
|
||||
<link rel="prev" href="intrinsic/metafunctions/swap.html" title="swap">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,14 +24,13 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="fusion.sequence.operator"></a><a class="link" href="operator.html" title="Operator">Operator</a>
|
||||
</h3></div></div></div>
|
||||
<a name="fusion.sequence.operator"></a><a href="operator.html" title="Operator">Operator</a></h3></div></div></div>
|
||||
<div class="toc"><dl>
|
||||
<dt><span class="section"><a href="operator/i_o.html">I/O</a></span></dt>
|
||||
<dt><span class="section"><a href="operator/comparison.html">Comparison</a></span></dt>
|
||||
</dl></div>
|
||||
<p>
|
||||
These operators, like the <a class="link" href="../algorithm.html" title="Algorithm">Algorithms</a>,
|
||||
These operators, like the <a href="../algorithm.html" title="Algorithm">Algorithms</a>,
|
||||
work generically on all Fusion sequences. All conforming Fusion sequences
|
||||
automatically get these operators for free.
|
||||
</p>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Comparison</title>
|
||||
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../operator.html" title="Operator">
|
||||
<link rel="prev" href="i_o/out.html" title="out">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,8 +24,7 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.sequence.operator.comparison"></a><a class="link" href="comparison.html" title="Comparison">Comparison</a>
|
||||
</h4></div></div></div>
|
||||
<a name="fusion.sequence.operator.comparison"></a><a href="comparison.html" title="Comparison">Comparison</a></h4></div></div></div>
|
||||
<div class="toc"><dl>
|
||||
<dt><span class="section"><a href="comparison/equal.html">equal</a></span></dt>
|
||||
<dt><span class="section"><a href="comparison/not_equal.html">not
|
||||
@@ -40,18 +39,18 @@
|
||||
than equal</a></span></dt>
|
||||
</dl></div>
|
||||
<p>
|
||||
The Comparison operators: <code class="computeroutput"><span class="special">==</span></code>,
|
||||
<code class="computeroutput"><span class="special">!=</span></code>, <code class="computeroutput"><span class="special"><</span></code>,
|
||||
<code class="computeroutput"><span class="special"><=</span></code>, <code class="computeroutput"><span class="special">>=</span></code>
|
||||
and <code class="computeroutput"><span class="special">>=</span></code> work generically
|
||||
The Comparison operators: <tt class="computeroutput"><span class="special">==</span></tt>,
|
||||
<tt class="computeroutput"><span class="special">!=</span></tt>, <tt class="computeroutput"><span class="special"><</span></tt>,
|
||||
<tt class="computeroutput"><span class="special"><=</span></tt>, <tt class="computeroutput"><span class="special">>=</span></tt>
|
||||
and <tt class="computeroutput"><span class="special">>=</span></tt> work generically
|
||||
on all Fusion sequences. Comparison operators are "short- circuited":
|
||||
elementary comparisons start from the first elements and are performed
|
||||
only until the result is clear.
|
||||
</p>
|
||||
<a name="fusion.sequence.operator.comparison.header"></a><h6>
|
||||
<a name="id2693464"></a>
|
||||
<a class="link" href="comparison.html#fusion.sequence.operator.comparison.header">Header</a>
|
||||
</h6>
|
||||
<a name="fusion.sequence.operator.comparison.header"></a><h5>
|
||||
<a name="id521551"></a>
|
||||
<a href="comparison.html#fusion.sequence.operator.comparison.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">sequence</span><span class="special">/</span><span class="identifier">comparison</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">comparison</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
|
||||
@@ -3,19 +3,20 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>equal</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../comparison.html" title="Comparison">
|
||||
<link rel="prev" href="../comparison.html" title="Comparison">
|
||||
<link rel="next" href="not_equal.html" title="not equal">
|
||||
<link rel="next" href="not_equal.html" title="not
|
||||
equal">
|
||||
</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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,18 +25,17 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.operator.comparison.equal"></a><a class="link" href="equal.html" title="equal">equal</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.operator.comparison.equal"></a><a href="equal.html" title="equal">equal</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.operator.comparison.equal.description"></a><h6>
|
||||
<a name="id2693623"></a>
|
||||
<a class="link" href="equal.html#fusion.sequence.operator.comparison.equal.description">Description</a>
|
||||
<a name="id521729"></a>
|
||||
<a href="equal.html#fusion.sequence.operator.comparison.equal.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Compare two sequences for equality.
|
||||
</p>
|
||||
<a name="fusion.sequence.operator.comparison.equal.synopsis"></a><h6>
|
||||
<a name="id2693651"></a>
|
||||
<a class="link" href="equal.html#fusion.sequence.operator.comparison.equal.synopsis">Synopsis</a>
|
||||
<a name="id521760"></a>
|
||||
<a href="equal.html#fusion.sequence.operator.comparison.equal.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>
|
||||
@@ -43,8 +43,8 @@
|
||||
<span class="keyword">operator</span><span class="special">==(</span><span class="identifier">Seq1</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">a</span><span class="special">,</span> <span class="identifier">Seq2</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">b</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.operator.comparison.equal.parameters"></a><h6>
|
||||
<a name="id2693788"></a>
|
||||
<a class="link" href="equal.html#fusion.sequence.operator.comparison.equal.parameters">Parameters</a>
|
||||
<a name="id521915"></a>
|
||||
<a href="equal.html#fusion.sequence.operator.comparison.equal.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -72,41 +72,41 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">a</span><span class="special">,</span>
|
||||
<span class="identifier">b</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">a</span><span class="special">,</span>
|
||||
<span class="identifier">b</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Instances of <a class="link" href="../../../sequence.html" title="Sequence">Sequence</a>
|
||||
Instances of <a href="../../../sequence.html" title="Sequence">Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../../../sequence.html" title="Sequence">Sequence</a>(s) to compare
|
||||
<a href="../../../sequence.html" title="Sequence">Sequence</a>(s) to compare
|
||||
</p>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.operator.comparison.equal.expression_semantics"></a><h6>
|
||||
<a name="id2693908"></a>
|
||||
<a class="link" href="equal.html#fusion.sequence.operator.comparison.equal.expression_semantics">Expression
|
||||
<a name="id522047"></a>
|
||||
<a href="equal.html#fusion.sequence.operator.comparison.equal.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">a</span> <span class="special">==</span> <span class="identifier">b</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code>
|
||||
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Requirements</strong></span>:
|
||||
<span class="bold"><b>Requirements</b></span>:
|
||||
</p>
|
||||
<p>
|
||||
For each element, <code class="computeroutput"><span class="identifier">e1</span></code>,
|
||||
in sequence <code class="computeroutput"><span class="identifier">a</span></code>, and for
|
||||
each element, <code class="computeroutput"><span class="identifier">e2</span></code>, in
|
||||
sequence <code class="computeroutput"><span class="identifier">b</span></code>, <code class="computeroutput"><span class="identifier">a</span> <span class="special">==</span> <span class="identifier">b</span></code> is a valid expression returning a
|
||||
For each element, <tt class="computeroutput"><span class="identifier">e1</span></tt>,
|
||||
in sequence <tt class="computeroutput"><span class="identifier">a</span></tt>, and for
|
||||
each element, <tt class="computeroutput"><span class="identifier">e2</span></tt>, in
|
||||
sequence <tt class="computeroutput"><span class="identifier">b</span></tt>, <tt class="computeroutput"><span class="identifier">a</span> <span class="special">==</span> <span class="identifier">b</span></tt> is a valid expression returning a
|
||||
type that is convertible to bool.
|
||||
</p>
|
||||
<p>
|
||||
@@ -114,31 +114,31 @@
|
||||
compile time error.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>:
|
||||
<span class="bold"><b>Semantics</b></span>:
|
||||
</p>
|
||||
<p>
|
||||
For each element, <code class="computeroutput"><span class="identifier">e1</span></code>,
|
||||
in sequence <code class="computeroutput"><span class="identifier">a</span></code>, and for
|
||||
each element, <code class="computeroutput"><span class="identifier">e2</span></code>, in
|
||||
sequence <code class="computeroutput"><span class="identifier">b</span></code>, <code class="computeroutput"><span class="identifier">e1</span> <span class="special">==</span> <span class="identifier">e2</span></code> returns true. For any 2 zero length
|
||||
For each element, <tt class="computeroutput"><span class="identifier">e1</span></tt>,
|
||||
in sequence <tt class="computeroutput"><span class="identifier">a</span></tt>, and for
|
||||
each element, <tt class="computeroutput"><span class="identifier">e2</span></tt>, in
|
||||
sequence <tt class="computeroutput"><span class="identifier">b</span></tt>, <tt class="computeroutput"><span class="identifier">e1</span> <span class="special">==</span> <span class="identifier">e2</span></tt> returns true. For any 2 zero length
|
||||
<span class="underline">_sequence</span>_s, e and f, e == f returns
|
||||
true.
|
||||
</p>
|
||||
<a name="fusion.sequence.operator.comparison.equal.header"></a><h6>
|
||||
<a name="id2694144"></a>
|
||||
<a class="link" href="equal.html#fusion.sequence.operator.comparison.equal.header">Header</a>
|
||||
<a name="id522310"></a>
|
||||
<a href="equal.html#fusion.sequence.operator.comparison.equal.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">sequence</span><span class="special">/</span><span class="identifier">comparison</span><span class="special">/</span><span class="identifier">equal_to</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">equal_to</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.operator.comparison.equal.example"></a><h6>
|
||||
<a name="id2694296"></a>
|
||||
<a class="link" href="equal.html#fusion.sequence.operator.comparison.equal.example">Example</a>
|
||||
<a name="id522480"></a>
|
||||
<a href="equal.html#fusion.sequence.operator.comparison.equal.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">5</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">5</span><span class="special">,</span> <span class="char">'a'</span><span class="special">);</span>
|
||||
<a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="identifier">v1</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="char">'a'</span><span class="special">);</span>
|
||||
<a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="identifier">v2</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="char">'a'</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">v1</span> <span class="special">==</span> <span class="identifier">v2</span><span class="special">);</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@@ -1,21 +1,24 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>greater than</title>
|
||||
<title>greater
|
||||
than</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../comparison.html" title="Comparison">
|
||||
<link rel="prev" href="less_than_equal.html" title="less than equal">
|
||||
<link rel="next" href="greater_than_equal.html" title="greater than equal">
|
||||
<link rel="prev" href="less_than_equal.html" title="less
|
||||
than equal">
|
||||
<link rel="next" href="greater_than_equal.html" title="greater
|
||||
than equal">
|
||||
</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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,15 +27,15 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.operator.comparison.greater_than"></a><a class="link" href="greater_than.html" title="greater than">greater
|
||||
than</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.operator.comparison.greater_than"></a><a href="greater_than.html" title="greater
|
||||
than">greater
|
||||
than</a></h5></div></div></div>
|
||||
<p>
|
||||
Lexicographically compare two sequences.
|
||||
</p>
|
||||
<a name="fusion.sequence.operator.comparison.greater_than.synopsis"></a><h6>
|
||||
<a name="id2697146"></a>
|
||||
<a class="link" href="greater_than.html#fusion.sequence.operator.comparison.greater_than.synopsis">Synopsis</a>
|
||||
<a name="id525665"></a>
|
||||
<a href="greater_than.html#fusion.sequence.operator.comparison.greater_than.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>
|
||||
@@ -40,8 +43,8 @@
|
||||
<span class="keyword">operator</span><span class="special">>(</span><span class="identifier">Seq1</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">a</span><span class="special">,</span> <span class="identifier">Seq2</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">b</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.operator.comparison.greater_than.parameters"></a><h6>
|
||||
<a name="id2697286"></a>
|
||||
<a class="link" href="greater_than.html#fusion.sequence.operator.comparison.greater_than.parameters">Parameters</a>
|
||||
<a name="id525821"></a>
|
||||
<a href="greater_than.html#fusion.sequence.operator.comparison.greater_than.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -69,41 +72,41 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">a</span><span class="special">,</span>
|
||||
<span class="identifier">b</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">a</span><span class="special">,</span>
|
||||
<span class="identifier">b</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Instances of <a class="link" href="../../../sequence.html" title="Sequence">Sequence</a>
|
||||
Instances of <a href="../../../sequence.html" title="Sequence">Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../../../sequence.html" title="Sequence">Sequence</a>(s) to compare
|
||||
<a href="../../../sequence.html" title="Sequence">Sequence</a>(s) to compare
|
||||
</p>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.operator.comparison.greater_than.expression_semantics"></a><h6>
|
||||
<a name="id2697405"></a>
|
||||
<a class="link" href="greater_than.html#fusion.sequence.operator.comparison.greater_than.expression_semantics">Expression
|
||||
<a name="id525955"></a>
|
||||
<a href="greater_than.html#fusion.sequence.operator.comparison.greater_than.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">a</span> <span class="special">></span> <span class="identifier">b</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code>
|
||||
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Requirements</strong></span>:
|
||||
<span class="bold"><b>Requirements</b></span>:
|
||||
</p>
|
||||
<p>
|
||||
For each element, <code class="computeroutput"><span class="identifier">e1</span></code>,
|
||||
in sequence <code class="computeroutput"><span class="identifier">a</span></code>, and for
|
||||
each element, <code class="computeroutput"><span class="identifier">e2</span></code>, in
|
||||
sequence <code class="computeroutput"><span class="identifier">b</span></code>, <code class="computeroutput"><span class="identifier">a</span> <span class="special"><</span> <span class="identifier">b</span></code> is a valid expression returning a
|
||||
For each element, <tt class="computeroutput"><span class="identifier">e1</span></tt>,
|
||||
in sequence <tt class="computeroutput"><span class="identifier">a</span></tt>, and for
|
||||
each element, <tt class="computeroutput"><span class="identifier">e2</span></tt>, in
|
||||
sequence <tt class="computeroutput"><span class="identifier">b</span></tt>, <tt class="computeroutput"><span class="identifier">a</span> <span class="special"><</span> <span class="identifier">b</span></tt> is a valid expression returning a
|
||||
type that is convertible to bool.
|
||||
</p>
|
||||
<p>
|
||||
@@ -111,24 +114,24 @@
|
||||
compile time error.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns b < a.
|
||||
<span class="bold"><b>Semantics</b></span>: Returns b < a.
|
||||
</p>
|
||||
<a name="fusion.sequence.operator.comparison.greater_than.header"></a><h6>
|
||||
<a name="id2697565"></a>
|
||||
<a class="link" href="greater_than.html#fusion.sequence.operator.comparison.greater_than.header">Header</a>
|
||||
<a name="id526134"></a>
|
||||
<a href="greater_than.html#fusion.sequence.operator.comparison.greater_than.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">sequence</span><span class="special">/</span><span class="identifier">comparison</span><span class="special">/</span><span class="identifier">less_equal</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">less_equal</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.operator.comparison.greater_than.example"></a><h6>
|
||||
<a name="id2697717"></a>
|
||||
<a class="link" href="greater_than.html#fusion.sequence.operator.comparison.greater_than.example">Example</a>
|
||||
<a name="id526305"></a>
|
||||
<a href="greater_than.html#fusion.sequence.operator.comparison.greater_than.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">float</span><span class="special">></span> <span class="identifier">v1</span><span class="special">(</span><span class="number">4</span><span class="special">,</span> <span class="number">3.3f</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">short</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v2</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">3.3f</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">long</span><span class="special">,</span> <span class="keyword">double</span><span class="special">></span> <span class="identifier">v3</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">4.4</span><span class="special">);</span>
|
||||
<a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v1</span><span class="special">(</span><span class="number">4</span><span class="special">,</span> <span class="number">3.3f</span><span class="special">);</span>
|
||||
<a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">short</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v2</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">3.3f</span><span class="special">);</span>
|
||||
<a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">long</span><span class="special">,</span> <span class="keyword">double</span><span class="special">></span> <span class="identifier">v3</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">4.4</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">v2</span> <span class="special">></span> <span class="identifier">v1</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">v3</span> <span class="special">></span> <span class="identifier">v2</span><span class="special">);</span>
|
||||
</pre>
|
||||
|
||||
@@ -1,21 +1,23 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>greater than equal</title>
|
||||
<title>greater
|
||||
than equal</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../comparison.html" title="Comparison">
|
||||
<link rel="prev" href="greater_than.html" title="greater than">
|
||||
<link rel="prev" href="greater_than.html" title="greater
|
||||
than">
|
||||
<link rel="next" href="../../../container.html" title="Container">
|
||||
</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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,15 +26,15 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.operator.comparison.greater_than_equal"></a><a class="link" href="greater_than_equal.html" title="greater than equal">greater
|
||||
than equal</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.operator.comparison.greater_than_equal"></a><a href="greater_than_equal.html" title="greater
|
||||
than equal">greater
|
||||
than equal</a></h5></div></div></div>
|
||||
<p>
|
||||
Lexicographically compare two sequences.
|
||||
</p>
|
||||
<a name="fusion.sequence.operator.comparison.greater_than_equal.synopsis"></a><h6>
|
||||
<a name="id2698032"></a>
|
||||
<a class="link" href="greater_than_equal.html#fusion.sequence.operator.comparison.greater_than_equal.synopsis">Synopsis</a>
|
||||
<a name="id526652"></a>
|
||||
<a href="greater_than_equal.html#fusion.sequence.operator.comparison.greater_than_equal.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>
|
||||
@@ -40,8 +42,8 @@
|
||||
<span class="keyword">operator</span><span class="special">>=(</span><span class="identifier">Seq1</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">a</span><span class="special">,</span> <span class="identifier">Seq2</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">b</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.operator.comparison.greater_than_equal.parameters"></a><h6>
|
||||
<a name="id2698172"></a>
|
||||
<a class="link" href="greater_than_equal.html#fusion.sequence.operator.comparison.greater_than_equal.parameters">Parameters</a>
|
||||
<a name="id526809"></a>
|
||||
<a href="greater_than_equal.html#fusion.sequence.operator.comparison.greater_than_equal.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -69,41 +71,41 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">a</span><span class="special">,</span>
|
||||
<span class="identifier">b</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">a</span><span class="special">,</span>
|
||||
<span class="identifier">b</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Instances of <a class="link" href="../../../sequence.html" title="Sequence">Sequence</a>
|
||||
Instances of <a href="../../../sequence.html" title="Sequence">Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../../../sequence.html" title="Sequence">Sequence</a>(s) to compare
|
||||
<a href="../../../sequence.html" title="Sequence">Sequence</a>(s) to compare
|
||||
</p>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.operator.comparison.greater_than_equal.expression_semantics"></a><h6>
|
||||
<a name="id2698291"></a>
|
||||
<a class="link" href="greater_than_equal.html#fusion.sequence.operator.comparison.greater_than_equal.expression_semantics">Expression
|
||||
<a name="id526942"></a>
|
||||
<a href="greater_than_equal.html#fusion.sequence.operator.comparison.greater_than_equal.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">a</span> <span class="special">>=</span> <span class="identifier">b</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code>
|
||||
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Requirements</strong></span>:
|
||||
<span class="bold"><b>Requirements</b></span>:
|
||||
</p>
|
||||
<p>
|
||||
For each element, <code class="computeroutput"><span class="identifier">e1</span></code>,
|
||||
in sequence <code class="computeroutput"><span class="identifier">a</span></code>, and for
|
||||
each element, <code class="computeroutput"><span class="identifier">e2</span></code>, in
|
||||
sequence <code class="computeroutput"><span class="identifier">b</span></code>, <code class="computeroutput"><span class="identifier">a</span> <span class="special"><</span> <span class="identifier">b</span></code> is a valid expression returning a
|
||||
For each element, <tt class="computeroutput"><span class="identifier">e1</span></tt>,
|
||||
in sequence <tt class="computeroutput"><span class="identifier">a</span></tt>, and for
|
||||
each element, <tt class="computeroutput"><span class="identifier">e2</span></tt>, in
|
||||
sequence <tt class="computeroutput"><span class="identifier">b</span></tt>, <tt class="computeroutput"><span class="identifier">a</span> <span class="special"><</span> <span class="identifier">b</span></tt> is a valid expression returning a
|
||||
type that is convertible to bool.
|
||||
</p>
|
||||
<p>
|
||||
@@ -111,24 +113,24 @@
|
||||
compile time error.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns !(a < b).
|
||||
<span class="bold"><b>Semantics</b></span>: Returns !(a < b).
|
||||
</p>
|
||||
<a name="fusion.sequence.operator.comparison.greater_than_equal.header"></a><h6>
|
||||
<a name="id2698452"></a>
|
||||
<a class="link" href="greater_than_equal.html#fusion.sequence.operator.comparison.greater_than_equal.header">Header</a>
|
||||
<a name="id527122"></a>
|
||||
<a href="greater_than_equal.html#fusion.sequence.operator.comparison.greater_than_equal.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">sequence</span><span class="special">/</span><span class="identifier">comparison</span><span class="special">/</span><span class="identifier">greater_equal</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">greater_equal</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.operator.comparison.greater_than_equal.example"></a><h6>
|
||||
<a name="id2698605"></a>
|
||||
<a class="link" href="greater_than_equal.html#fusion.sequence.operator.comparison.greater_than_equal.example">Example</a>
|
||||
<a name="id527293"></a>
|
||||
<a href="greater_than_equal.html#fusion.sequence.operator.comparison.greater_than_equal.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">float</span><span class="special">></span> <span class="identifier">v1</span><span class="special">(</span><span class="number">4</span><span class="special">,</span> <span class="number">3.3f</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">short</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v2</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">3.3f</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">long</span><span class="special">,</span> <span class="keyword">double</span><span class="special">></span> <span class="identifier">v3</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">4.4</span><span class="special">);</span>
|
||||
<a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v1</span><span class="special">(</span><span class="number">4</span><span class="special">,</span> <span class="number">3.3f</span><span class="special">);</span>
|
||||
<a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">short</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v2</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">3.3f</span><span class="special">);</span>
|
||||
<a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">long</span><span class="special">,</span> <span class="keyword">double</span><span class="special">></span> <span class="identifier">v3</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">4.4</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">v2</span> <span class="special">>=</span> <span class="identifier">v1</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">v3</span> <span class="special">>=</span> <span class="identifier">v2</span><span class="special">);</span>
|
||||
</pre>
|
||||
|
||||
@@ -1,21 +1,24 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>less than</title>
|
||||
<title>less
|
||||
than</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../comparison.html" title="Comparison">
|
||||
<link rel="prev" href="not_equal.html" title="not equal">
|
||||
<link rel="next" href="less_than_equal.html" title="less than equal">
|
||||
<link rel="prev" href="not_equal.html" title="not
|
||||
equal">
|
||||
<link rel="next" href="less_than_equal.html" title="less
|
||||
than equal">
|
||||
</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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,15 +27,15 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.operator.comparison.less_than"></a><a class="link" href="less_than.html" title="less than">less
|
||||
than</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.operator.comparison.less_than"></a><a href="less_than.html" title="less
|
||||
than">less
|
||||
than</a></h5></div></div></div>
|
||||
<p>
|
||||
Lexicographically compare two sequences.
|
||||
</p>
|
||||
<a name="fusion.sequence.operator.comparison.less_than.synopsis"></a><h6>
|
||||
<a name="id2695357"></a>
|
||||
<a class="link" href="less_than.html#fusion.sequence.operator.comparison.less_than.synopsis">Synopsis</a>
|
||||
<a name="id523665"></a>
|
||||
<a href="less_than.html#fusion.sequence.operator.comparison.less_than.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>
|
||||
@@ -40,8 +43,8 @@
|
||||
<span class="keyword">operator</span><span class="special"><(</span><span class="identifier">Seq1</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">a</span><span class="special">,</span> <span class="identifier">Seq2</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">b</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.operator.comparison.less_than.parameters"></a><h6>
|
||||
<a name="id2695495"></a>
|
||||
<a class="link" href="less_than.html#fusion.sequence.operator.comparison.less_than.parameters">Parameters</a>
|
||||
<a name="id523820"></a>
|
||||
<a href="less_than.html#fusion.sequence.operator.comparison.less_than.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -69,41 +72,41 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">a</span><span class="special">,</span>
|
||||
<span class="identifier">b</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">a</span><span class="special">,</span>
|
||||
<span class="identifier">b</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Instances of <a class="link" href="../../../sequence.html" title="Sequence">Sequence</a>
|
||||
Instances of <a href="../../../sequence.html" title="Sequence">Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../../../sequence.html" title="Sequence">Sequence</a>(s) to compare
|
||||
<a href="../../../sequence.html" title="Sequence">Sequence</a>(s) to compare
|
||||
</p>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.operator.comparison.less_than.expression_semantics"></a><h6>
|
||||
<a name="id2695614"></a>
|
||||
<a class="link" href="less_than.html#fusion.sequence.operator.comparison.less_than.expression_semantics">Expression
|
||||
<a name="id523953"></a>
|
||||
<a href="less_than.html#fusion.sequence.operator.comparison.less_than.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">a</span> <span class="special"><</span> <span class="identifier">b</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code>
|
||||
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Requirements</strong></span>:
|
||||
<span class="bold"><b>Requirements</b></span>:
|
||||
</p>
|
||||
<p>
|
||||
For each element, <code class="computeroutput"><span class="identifier">e1</span></code>,
|
||||
in sequence <code class="computeroutput"><span class="identifier">a</span></code>, and for
|
||||
each element, <code class="computeroutput"><span class="identifier">e2</span></code>, in
|
||||
sequence <code class="computeroutput"><span class="identifier">b</span></code>, <code class="computeroutput"><span class="identifier">a</span> <span class="special"><</span> <span class="identifier">b</span></code> is a valid expression returning a
|
||||
For each element, <tt class="computeroutput"><span class="identifier">e1</span></tt>,
|
||||
in sequence <tt class="computeroutput"><span class="identifier">a</span></tt>, and for
|
||||
each element, <tt class="computeroutput"><span class="identifier">e2</span></tt>, in
|
||||
sequence <tt class="computeroutput"><span class="identifier">b</span></tt>, <tt class="computeroutput"><span class="identifier">a</span> <span class="special"><</span> <span class="identifier">b</span></tt> is a valid expression returning a
|
||||
type that is convertible to bool.
|
||||
</p>
|
||||
<p>
|
||||
@@ -111,26 +114,26 @@
|
||||
compile time error.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the lexicographical
|
||||
comparison of between <code class="computeroutput"><span class="identifier">a</span></code>
|
||||
and <code class="computeroutput"><span class="identifier">b</span></code>.
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the lexicographical
|
||||
comparison of between <tt class="computeroutput"><span class="identifier">a</span></tt>
|
||||
and <tt class="computeroutput"><span class="identifier">b</span></tt>.
|
||||
</p>
|
||||
<a name="fusion.sequence.operator.comparison.less_than.header"></a><h6>
|
||||
<a name="id2695796"></a>
|
||||
<a class="link" href="less_than.html#fusion.sequence.operator.comparison.less_than.header">Header</a>
|
||||
<a name="id524157"></a>
|
||||
<a href="less_than.html#fusion.sequence.operator.comparison.less_than.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">sequence</span><span class="special">/</span><span class="identifier">comparison</span><span class="special">/</span><span class="identifier">less</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">less</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.operator.comparison.less_than.example"></a><h6>
|
||||
<a name="id2695948"></a>
|
||||
<a class="link" href="less_than.html#fusion.sequence.operator.comparison.less_than.example">Example</a>
|
||||
<a name="id524326"></a>
|
||||
<a href="less_than.html#fusion.sequence.operator.comparison.less_than.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">float</span><span class="special">></span> <span class="identifier">v1</span><span class="special">(</span><span class="number">4</span><span class="special">,</span> <span class="number">3.3f</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">short</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v2</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">3.3f</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">long</span><span class="special">,</span> <span class="keyword">double</span><span class="special">></span> <span class="identifier">v3</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">4.4</span><span class="special">);</span>
|
||||
<a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v1</span><span class="special">(</span><span class="number">4</span><span class="special">,</span> <span class="number">3.3f</span><span class="special">);</span>
|
||||
<a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">short</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v2</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">3.3f</span><span class="special">);</span>
|
||||
<a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">long</span><span class="special">,</span> <span class="keyword">double</span><span class="special">></span> <span class="identifier">v3</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">4.4</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">v1</span> <span class="special"><</span> <span class="identifier">v2</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">v2</span> <span class="special"><</span> <span class="identifier">v3</span><span class="special">);</span>
|
||||
</pre>
|
||||
|
||||
@@ -1,21 +1,24 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>less than equal</title>
|
||||
<title>less
|
||||
than equal</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../comparison.html" title="Comparison">
|
||||
<link rel="prev" href="less_than.html" title="less than">
|
||||
<link rel="next" href="greater_than.html" title="greater than">
|
||||
<link rel="prev" href="less_than.html" title="less
|
||||
than">
|
||||
<link rel="next" href="greater_than.html" title="greater
|
||||
than">
|
||||
</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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,15 +27,15 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.operator.comparison.less_than_equal"></a><a class="link" href="less_than_equal.html" title="less than equal">less
|
||||
than equal</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.operator.comparison.less_than_equal"></a><a href="less_than_equal.html" title="less
|
||||
than equal">less
|
||||
than equal</a></h5></div></div></div>
|
||||
<p>
|
||||
Lexicographically compare two sequences.
|
||||
</p>
|
||||
<a name="fusion.sequence.operator.comparison.less_than_equal.synopsis"></a><h6>
|
||||
<a name="id2696263"></a>
|
||||
<a class="link" href="less_than_equal.html#fusion.sequence.operator.comparison.less_than_equal.synopsis">Synopsis</a>
|
||||
<a name="id524674"></a>
|
||||
<a href="less_than_equal.html#fusion.sequence.operator.comparison.less_than_equal.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>
|
||||
@@ -40,8 +43,8 @@
|
||||
<span class="keyword">operator</span><span class="special"><=(</span><span class="identifier">Seq1</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">a</span><span class="special">,</span> <span class="identifier">Seq2</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">b</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.operator.comparison.less_than_equal.parameters"></a><h6>
|
||||
<a name="id2696402"></a>
|
||||
<a class="link" href="less_than_equal.html#fusion.sequence.operator.comparison.less_than_equal.parameters">Parameters</a>
|
||||
<a name="id524830"></a>
|
||||
<a href="less_than_equal.html#fusion.sequence.operator.comparison.less_than_equal.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -69,41 +72,41 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">a</span><span class="special">,</span>
|
||||
<span class="identifier">b</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">a</span><span class="special">,</span>
|
||||
<span class="identifier">b</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Instances of <a class="link" href="../../../sequence.html" title="Sequence">Sequence</a>
|
||||
Instances of <a href="../../../sequence.html" title="Sequence">Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../../../sequence.html" title="Sequence">Sequence</a>(s) to compare
|
||||
<a href="../../../sequence.html" title="Sequence">Sequence</a>(s) to compare
|
||||
</p>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.operator.comparison.less_than_equal.expression_semantics"></a><h6>
|
||||
<a name="id2696521"></a>
|
||||
<a class="link" href="less_than_equal.html#fusion.sequence.operator.comparison.less_than_equal.expression_semantics">Expression
|
||||
<a name="id524965"></a>
|
||||
<a href="less_than_equal.html#fusion.sequence.operator.comparison.less_than_equal.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">a</span> <span class="special"><=</span> <span class="identifier">b</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code>
|
||||
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Requirements</strong></span>:
|
||||
<span class="bold"><b>Requirements</b></span>:
|
||||
</p>
|
||||
<p>
|
||||
For each element, <code class="computeroutput"><span class="identifier">e1</span></code>,
|
||||
in sequence <code class="computeroutput"><span class="identifier">a</span></code>, and for
|
||||
each element, <code class="computeroutput"><span class="identifier">e2</span></code>, in
|
||||
sequence <code class="computeroutput"><span class="identifier">b</span></code>, <code class="computeroutput"><span class="identifier">a</span> <span class="special"><</span> <span class="identifier">b</span></code> is a valid expression returning a
|
||||
For each element, <tt class="computeroutput"><span class="identifier">e1</span></tt>,
|
||||
in sequence <tt class="computeroutput"><span class="identifier">a</span></tt>, and for
|
||||
each element, <tt class="computeroutput"><span class="identifier">e2</span></tt>, in
|
||||
sequence <tt class="computeroutput"><span class="identifier">b</span></tt>, <tt class="computeroutput"><span class="identifier">a</span> <span class="special"><</span> <span class="identifier">b</span></tt> is a valid expression returning a
|
||||
type that is convertible to bool.
|
||||
</p>
|
||||
<p>
|
||||
@@ -111,24 +114,24 @@
|
||||
compile time error.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns !(b < a).
|
||||
<span class="bold"><b>Semantics</b></span>: Returns !(b < a).
|
||||
</p>
|
||||
<a name="fusion.sequence.operator.comparison.less_than_equal.header"></a><h6>
|
||||
<a name="id2696682"></a>
|
||||
<a class="link" href="less_than_equal.html#fusion.sequence.operator.comparison.less_than_equal.header">Header</a>
|
||||
<a name="id525145"></a>
|
||||
<a href="less_than_equal.html#fusion.sequence.operator.comparison.less_than_equal.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">sequence</span><span class="special">/</span><span class="identifier">comparison</span><span class="special">/</span><span class="identifier">less_equal</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">less_equal</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.operator.comparison.less_than_equal.example"></a><h6>
|
||||
<a name="id2696835"></a>
|
||||
<a class="link" href="less_than_equal.html#fusion.sequence.operator.comparison.less_than_equal.example">Example</a>
|
||||
<a name="id525316"></a>
|
||||
<a href="less_than_equal.html#fusion.sequence.operator.comparison.less_than_equal.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">float</span><span class="special">></span> <span class="identifier">v1</span><span class="special">(</span><span class="number">4</span><span class="special">,</span> <span class="number">3.3f</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">short</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v2</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">3.3f</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">long</span><span class="special">,</span> <span class="keyword">double</span><span class="special">></span> <span class="identifier">v3</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">4.4</span><span class="special">);</span>
|
||||
<a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v1</span><span class="special">(</span><span class="number">4</span><span class="special">,</span> <span class="number">3.3f</span><span class="special">);</span>
|
||||
<a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">short</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v2</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">3.3f</span><span class="special">);</span>
|
||||
<a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">long</span><span class="special">,</span> <span class="keyword">double</span><span class="special">></span> <span class="identifier">v3</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">4.4</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">v1</span> <span class="special"><=</span> <span class="identifier">v2</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">v2</span> <span class="special"><=</span> <span class="identifier">v3</span><span class="special">);</span>
|
||||
</pre>
|
||||
|
||||
@@ -1,21 +1,23 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>not equal</title>
|
||||
<title>not
|
||||
equal</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../comparison.html" title="Comparison">
|
||||
<link rel="prev" href="equal.html" title="equal">
|
||||
<link rel="next" href="less_than.html" title="less than">
|
||||
<link rel="next" href="less_than.html" title="less
|
||||
than">
|
||||
</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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,15 +26,15 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.operator.comparison.not_equal"></a><a class="link" href="not_equal.html" title="not equal">not
|
||||
equal</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.operator.comparison.not_equal"></a><a href="not_equal.html" title="not
|
||||
equal">not
|
||||
equal</a></h5></div></div></div>
|
||||
<p>
|
||||
Compare two sequences for inequality.
|
||||
</p>
|
||||
<a name="fusion.sequence.operator.comparison.not_equal.synopsis"></a><h6>
|
||||
<a name="id2694509"></a>
|
||||
<a class="link" href="not_equal.html#fusion.sequence.operator.comparison.not_equal.synopsis">Synopsis</a>
|
||||
<a name="id522719"></a>
|
||||
<a href="not_equal.html#fusion.sequence.operator.comparison.not_equal.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>
|
||||
@@ -40,8 +42,8 @@
|
||||
<span class="keyword">operator</span><span class="special">!=(</span><span class="identifier">Seq1</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">a</span><span class="special">,</span> <span class="identifier">Seq2</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">b</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.operator.comparison.not_equal.parameters"></a><h6>
|
||||
<a name="id2694648"></a>
|
||||
<a class="link" href="not_equal.html#fusion.sequence.operator.comparison.not_equal.parameters">Parameters</a>
|
||||
<a name="id522874"></a>
|
||||
<a href="not_equal.html#fusion.sequence.operator.comparison.not_equal.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -69,41 +71,41 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">a</span><span class="special">,</span>
|
||||
<span class="identifier">b</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">a</span><span class="special">,</span>
|
||||
<span class="identifier">b</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Instances of <a class="link" href="../../../sequence.html" title="Sequence">Sequence</a>
|
||||
Instances of <a href="../../../sequence.html" title="Sequence">Sequence</a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
<a class="link" href="../../../sequence.html" title="Sequence">Sequence</a>(s) to compare
|
||||
<a href="../../../sequence.html" title="Sequence">Sequence</a>(s) to compare
|
||||
</p>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.operator.comparison.not_equal.expression_semantics"></a><h6>
|
||||
<a name="id2694767"></a>
|
||||
<a class="link" href="not_equal.html#fusion.sequence.operator.comparison.not_equal.expression_semantics">Expression
|
||||
<a name="id523008"></a>
|
||||
<a href="not_equal.html#fusion.sequence.operator.comparison.not_equal.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">a</span> <span class="special">!=</span> <span class="identifier">b</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code>
|
||||
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Requirements</strong></span>:
|
||||
<span class="bold"><b>Requirements</b></span>:
|
||||
</p>
|
||||
<p>
|
||||
For each element, <code class="computeroutput"><span class="identifier">e1</span></code>,
|
||||
in sequence <code class="computeroutput"><span class="identifier">a</span></code>, and for
|
||||
each element, <code class="computeroutput"><span class="identifier">e2</span></code>, in
|
||||
sequence <code class="computeroutput"><span class="identifier">b</span></code>, <code class="computeroutput"><span class="identifier">a</span> <span class="special">==</span> <span class="identifier">b</span></code> is a valid expression returning a
|
||||
For each element, <tt class="computeroutput"><span class="identifier">e1</span></tt>,
|
||||
in sequence <tt class="computeroutput"><span class="identifier">a</span></tt>, and for
|
||||
each element, <tt class="computeroutput"><span class="identifier">e2</span></tt>, in
|
||||
sequence <tt class="computeroutput"><span class="identifier">b</span></tt>, <tt class="computeroutput"><span class="identifier">a</span> <span class="special">==</span> <span class="identifier">b</span></tt> is a valid expression returning a
|
||||
type that is convertible to bool.
|
||||
</p>
|
||||
<p>
|
||||
@@ -111,26 +113,26 @@
|
||||
compile time error.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>:
|
||||
<span class="bold"><b>Semantics</b></span>:
|
||||
</p>
|
||||
<p>
|
||||
Returns !(a == b).
|
||||
</p>
|
||||
<a name="fusion.sequence.operator.comparison.not_equal.header"></a><h6>
|
||||
<a name="id2694930"></a>
|
||||
<a class="link" href="not_equal.html#fusion.sequence.operator.comparison.not_equal.header">Header</a>
|
||||
<a name="id523191"></a>
|
||||
<a href="not_equal.html#fusion.sequence.operator.comparison.not_equal.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">sequence</span><span class="special">/</span><span class="identifier">comparison</span><span class="special">/</span><span class="identifier">not_equal_to</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">not_equal_to</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.operator.comparison.not_equal.example"></a><h6>
|
||||
<a name="id2695083"></a>
|
||||
<a class="link" href="not_equal.html#fusion.sequence.operator.comparison.not_equal.example">Example</a>
|
||||
<a name="id523361"></a>
|
||||
<a href="not_equal.html#fusion.sequence.operator.comparison.not_equal.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">v3</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="char">'b'</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">t4</span><span class="special">(</span><span class="number">2</span><span class="special">,</span> <span class="char">'a'</span><span class="special">);</span>
|
||||
<a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="identifier">v3</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="char">'b'</span><span class="special">);</span>
|
||||
<a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="identifier">t4</span><span class="special">(</span><span class="number">2</span><span class="special">,</span> <span class="char">'a'</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">v1</span> <span class="special">!=</span> <span class="identifier">v3</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">v1</span> <span class="special">!=</span> <span class="identifier">t4</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(!(</span><span class="identifier">v1</span> <span class="special">!=</span> <span class="identifier">v2</span><span class="special">));</span>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>I/O</title>
|
||||
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../operator.html" title="Operator">
|
||||
<link rel="prev" href="../operator.html" title="Operator">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,32 +24,31 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.sequence.operator.i_o"></a><a class="link" href="i_o.html" title="I/O">I/O</a>
|
||||
</h4></div></div></div>
|
||||
<a name="fusion.sequence.operator.i_o"></a><a href="i_o.html" title="I/O">I/O</a></h4></div></div></div>
|
||||
<div class="toc"><dl>
|
||||
<dt><span class="section"><a href="i_o/in.html">in</a></span></dt>
|
||||
<dt><span class="section"><a href="i_o/out.html">out</a></span></dt>
|
||||
</dl></div>
|
||||
<p>
|
||||
The I/O operators: <code class="computeroutput"><span class="special"><<</span></code>
|
||||
and <code class="computeroutput"><span class="special">>></span></code> work generically
|
||||
on all Fusion sequences. The global <code class="computeroutput"><span class="keyword">operator</span><span class="special"><<</span></code> has been overloaded for generic
|
||||
output streams such that <a class="link" href="../../sequence.html" title="Sequence">Sequence</a>(s)
|
||||
are output by recursively calling <code class="computeroutput"><span class="keyword">operator</span><span class="special"><<</span></code> for each element. Analogously,
|
||||
the global <code class="computeroutput"><span class="keyword">operator</span><span class="special">>></span></code>
|
||||
has been overloaded to extract <a class="link" href="../../sequence.html" title="Sequence">Sequence</a>(s)
|
||||
from generic input streams by recursively calling <code class="computeroutput"><span class="keyword">operator</span><span class="special">>></span></code> for each element.
|
||||
The I/O operators: <tt class="computeroutput"><span class="special"><<</span></tt>
|
||||
and <tt class="computeroutput"><span class="special">>></span></tt> work generically
|
||||
on all Fusion sequences. The global <tt class="computeroutput"><span class="keyword">operator</span><span class="special"><<</span></tt> has been overloaded for generic
|
||||
output streams such that <a href="../../sequence.html" title="Sequence">Sequence</a>(s)
|
||||
are output by recursively calling <tt class="computeroutput"><span class="keyword">operator</span><span class="special"><<</span></tt> for each element. Analogously,
|
||||
the global <tt class="computeroutput"><span class="keyword">operator</span><span class="special">>></span></tt>
|
||||
has been overloaded to extract <a href="../../sequence.html" title="Sequence">Sequence</a>(s)
|
||||
from generic input streams by recursively calling <tt class="computeroutput"><span class="keyword">operator</span><span class="special">>></span></tt> for each element.
|
||||
</p>
|
||||
<p>
|
||||
The default delimiter between the elements is space, and the <a class="link" href="../../sequence.html" title="Sequence">Sequence</a>
|
||||
The default delimiter between the elements is space, and the <a href="../../sequence.html" title="Sequence">Sequence</a>
|
||||
is enclosed in parenthesis. For Example:
|
||||
</p>
|
||||
<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">float</span><span class="special">,</span> <span class="keyword">int</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">></span> <span class="identifier">a</span><span class="special">(</span><span class="number">1.0f</span><span class="special">,</span> <span class="number">2</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">"Howdy folks!"</span><span class="special">);</span>
|
||||
<a href="../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">float</span><span class="special">,</span> <span class="keyword">int</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">></span> <span class="identifier">a</span><span class="special">(</span><span class="number">1.0f</span><span class="special">,</span> <span class="number">2</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">"Howdy folks!"</span><span class="special">);</span>
|
||||
<span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">a</span><span class="special">;</span>
|
||||
</pre>
|
||||
<p>
|
||||
outputs the <a class="link" href="../../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a>
|
||||
outputs the <a href="../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a>
|
||||
as: (1.0 2 Howdy folks!)
|
||||
</p>
|
||||
<p>
|
||||
@@ -58,23 +57,23 @@
|
||||
<div class="variablelist">
|
||||
<p class="title"><b>Manipulators</b></p>
|
||||
<dl>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">tuple_open</span><span class="special">(</span><span class="identifier">arg</span><span class="special">)</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">tuple_open</span><span class="special">(</span><span class="identifier">arg</span><span class="special">)</span></tt></span></dt>
|
||||
<dd><p>
|
||||
Defines the character that is output before the first element.
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">tuple_close</span><span class="special">(</span><span class="identifier">arg</span><span class="special">)</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">tuple_close</span><span class="special">(</span><span class="identifier">arg</span><span class="special">)</span></tt></span></dt>
|
||||
<dd><p>
|
||||
Defines the character that is output after the last element.
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">tuple_delimiter</span><span class="special">(</span><span class="identifier">arg</span><span class="special">)</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">tuple_delimiter</span><span class="special">(</span><span class="identifier">arg</span><span class="special">)</span></tt></span></dt>
|
||||
<dd><p>
|
||||
Defines the delimiter character between elements.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<p>
|
||||
The argument to <code class="computeroutput"><span class="identifier">tuple_open</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">tuple_close</span></code> and <code class="computeroutput"><span class="identifier">tuple_delimiter</span></code> may be a <code class="computeroutput"><span class="keyword">char</span></code>, <code class="computeroutput"><span class="keyword">wchar_t</span></code>,
|
||||
The argument to <tt class="computeroutput"><span class="identifier">tuple_open</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">tuple_close</span></tt> and <tt class="computeroutput"><span class="identifier">tuple_delimiter</span></tt> may be a <tt class="computeroutput"><span class="keyword">char</span></tt>, <tt class="computeroutput"><span class="keyword">wchar_t</span></tt>,
|
||||
a C-string, or a wide C-string.
|
||||
</p>
|
||||
<p>
|
||||
@@ -84,12 +83,12 @@
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">tuple_open</span><span class="special">(</span><span class="char">'['</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">tuple_close</span><span class="special">(</span><span class="char">']'</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">tuple_delimiter</span><span class="special">(</span><span class="string">", "</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">a</span><span class="special">;</span>
|
||||
</pre>
|
||||
<p>
|
||||
outputs the same <a class="link" href="../../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a>, <code class="computeroutput"><span class="identifier">a</span></code>
|
||||
outputs the same <a href="../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a>, <tt class="computeroutput"><span class="identifier">a</span></tt>
|
||||
as: [1.0, 2, Howdy folks!]
|
||||
</p>
|
||||
<p>
|
||||
The same manipulators work with <code class="computeroutput"><span class="keyword">operator</span><span class="special">>></span></code> and <code class="computeroutput"><span class="identifier">istream</span></code>
|
||||
as well. Suppose the <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">cin</span></code>
|
||||
The same manipulators work with <tt class="computeroutput"><span class="keyword">operator</span><span class="special">>></span></tt> and <tt class="computeroutput"><span class="identifier">istream</span></tt>
|
||||
as well. Suppose the <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">cin</span></tt>
|
||||
stream contains the following data:
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
@@ -99,27 +98,27 @@
|
||||
The code:
|
||||
</p>
|
||||
<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="keyword">int</span><span class="special">></span> <span class="identifier">i</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">j</span><span class="special">;</span>
|
||||
<a href="../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span> <span class="identifier">i</span><span class="special">;</span>
|
||||
<a href="../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span> <span class="identifier">j</span><span class="special">;</span>
|
||||
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cin</span> <span class="special">>></span> <span class="identifier">i</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cin</span> <span class="special">>></span> <span class="identifier">set_open</span><span class="special">(</span><span class="char">'['</span><span class="special">)</span> <span class="special">>></span> <span class="identifier">set_close</span><span class="special">(</span><span class="char">']'</span><span class="special">)</span> <span class="special">>></span> <span class="identifier">set_delimiter</span><span class="special">(</span><span class="char">':'</span><span class="special">);</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cin</span> <span class="special">>></span> <span class="identifier">j</span><span class="special">;</span>
|
||||
</pre>
|
||||
<p>
|
||||
reads the data into the <a class="link" href="../../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a>(s) <code class="computeroutput"><span class="identifier">i</span></code>
|
||||
and <code class="computeroutput"><span class="identifier">j</span></code>.
|
||||
reads the data into the <a href="../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a>(s) <tt class="computeroutput"><span class="identifier">i</span></tt>
|
||||
and <tt class="computeroutput"><span class="identifier">j</span></tt>.
|
||||
</p>
|
||||
<p>
|
||||
Note that extracting <a class="link" href="../../sequence.html" title="Sequence">Sequence</a>(s)
|
||||
with <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span></code> or C-style string elements does
|
||||
not generally work, since the streamed <a class="link" href="../../sequence.html" title="Sequence">Sequence</a>
|
||||
Note that extracting <a href="../../sequence.html" title="Sequence">Sequence</a>(s)
|
||||
with <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span></tt> or C-style string elements does
|
||||
not generally work, since the streamed <a href="../../sequence.html" title="Sequence">Sequence</a>
|
||||
representation may not be unambiguously parseable.
|
||||
</p>
|
||||
<a name="fusion.sequence.operator.i_o.header"></a><h6>
|
||||
<a name="id2691874"></a>
|
||||
<a class="link" href="i_o.html#fusion.sequence.operator.i_o.header">Header</a>
|
||||
</h6>
|
||||
<a name="fusion.sequence.operator.i_o.header"></a><h5>
|
||||
<a name="id519768"></a>
|
||||
<a href="i_o.html#fusion.sequence.operator.i_o.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">sequence</span><span class="special">/</span><span class="identifier">io</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">io</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>in</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../i_o.html" title="I/O">
|
||||
<link rel="prev" href="../i_o.html" title="I/O">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,19 +24,18 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.operator.i_o.in"></a><a class="link" href="in.html" title="in">in</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.operator.i_o.in"></a><a href="in.html" title="in">in</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.operator.i_o.in.description"></a><h6>
|
||||
<a name="id2692032"></a>
|
||||
<a class="link" href="in.html#fusion.sequence.operator.i_o.in.description">Description</a>
|
||||
<a name="id519947"></a>
|
||||
<a href="in.html#fusion.sequence.operator.i_o.in.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Read a <a class="link" href="../../../sequence.html" title="Sequence">Sequence</a> from an input
|
||||
Read a <a href="../../../sequence.html" title="Sequence">Sequence</a> from an input
|
||||
stream.
|
||||
</p>
|
||||
<a name="fusion.sequence.operator.i_o.in.synopsis"></a><h6>
|
||||
<a name="id2692065"></a>
|
||||
<a class="link" href="in.html#fusion.sequence.operator.i_o.in.synopsis">Synopsis</a>
|
||||
<a name="id519985"></a>
|
||||
<a href="in.html#fusion.sequence.operator.i_o.in.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">IStream</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
@@ -44,8 +43,8 @@
|
||||
<span class="keyword">operator</span><span class="special">>>(</span><span class="identifier">IStream</span><span class="special">&</span> <span class="identifier">is</span><span class="special">,</span> <span class="identifier">Sequence</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.operator.i_o.in.parameters"></a><h6>
|
||||
<a name="id2692196"></a>
|
||||
<a class="link" href="in.html#fusion.sequence.operator.i_o.in.parameters">Parameters</a>
|
||||
<a name="id520131"></a>
|
||||
<a href="in.html#fusion.sequence.operator.i_o.in.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -96,7 +95,7 @@
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
A <a class="link" href="../../../sequence.html" title="Sequence">Sequence</a>.
|
||||
A <a href="../../../sequence.html" title="Sequence">Sequence</a>.
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -108,35 +107,35 @@
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.operator.i_o.in.expression_semantics"></a><h6>
|
||||
<a name="id2692310"></a>
|
||||
<a class="link" href="in.html#fusion.sequence.operator.i_o.in.expression_semantics">Expression
|
||||
<a name="id520262"></a>
|
||||
<a href="in.html#fusion.sequence.operator.i_o.in.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">is</span> <span class="special">>></span> <span class="identifier">seq</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: IStream&
|
||||
<span class="bold"><b>Return type</b></span>: IStream&
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: For each element, <code class="computeroutput"><span class="identifier">e</span></code>, in sequence, <code class="computeroutput"><span class="identifier">seq</span></code>,
|
||||
call <code class="computeroutput"><span class="identifier">is</span> <span class="special">>></span>
|
||||
<span class="identifier">e</span></code>.
|
||||
<span class="bold"><b>Semantics</b></span>: For each element, <tt class="computeroutput"><span class="identifier">e</span></tt>, in sequence, <tt class="computeroutput"><span class="identifier">seq</span></tt>,
|
||||
call <tt class="computeroutput"><span class="identifier">is</span> <span class="special">>></span>
|
||||
<span class="identifier">e</span></tt>.
|
||||
</p>
|
||||
<a name="fusion.sequence.operator.i_o.in.header"></a><h6>
|
||||
<a name="id2692419"></a>
|
||||
<a class="link" href="in.html#fusion.sequence.operator.i_o.in.header">Header</a>
|
||||
<a name="id520382"></a>
|
||||
<a href="in.html#fusion.sequence.operator.i_o.in.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">sequence</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">in</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">in</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.operator.i_o.in.example"></a><h6>
|
||||
<a name="id2692570"></a>
|
||||
<a class="link" href="in.html#fusion.sequence.operator.i_o.in.example">Example</a>
|
||||
<a name="id520550"></a>
|
||||
<a href="in.html#fusion.sequence.operator.i_o.in.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="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="identifier">v</span><span class="special">;</span>
|
||||
<a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="identifier">v</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cin</span> <span class="special">>></span> <span class="identifier">v</span><span class="special">;</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>out</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../i_o.html" title="I/O">
|
||||
<link rel="prev" href="in.html" title="in">
|
||||
@@ -12,10 +12,10 @@
|
||||
<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="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@@ -24,19 +24,18 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequence.operator.i_o.out"></a><a class="link" href="out.html" title="out">out</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.sequence.operator.i_o.out"></a><a href="out.html" title="out">out</a></h5></div></div></div>
|
||||
<a name="fusion.sequence.operator.i_o.out.description"></a><h6>
|
||||
<a name="id2692714"></a>
|
||||
<a class="link" href="out.html#fusion.sequence.operator.i_o.out.description">Description</a>
|
||||
<a name="id520711"></a>
|
||||
<a href="out.html#fusion.sequence.operator.i_o.out.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Write a <a class="link" href="../../../sequence.html" title="Sequence">Sequence</a> to an output
|
||||
Write a <a href="../../../sequence.html" title="Sequence">Sequence</a> to an output
|
||||
stream.
|
||||
</p>
|
||||
<a name="fusion.sequence.operator.i_o.out.synopsis"></a><h6>
|
||||
<a name="id2692747"></a>
|
||||
<a class="link" href="out.html#fusion.sequence.operator.i_o.out.synopsis">Synopsis</a>
|
||||
<a name="id520749"></a>
|
||||
<a href="out.html#fusion.sequence.operator.i_o.out.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">OStream</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
@@ -44,8 +43,8 @@
|
||||
<span class="keyword">operator</span><span class="special"><<(</span><span class="identifier">OStream</span><span class="special">&</span> <span class="identifier">os</span><span class="special">,</span> <span class="identifier">Sequence</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.operator.i_o.out.parameters"></a><h6>
|
||||
<a name="id2692877"></a>
|
||||
<a class="link" href="out.html#fusion.sequence.operator.i_o.out.parameters">Parameters</a>
|
||||
<a name="id520896"></a>
|
||||
<a href="out.html#fusion.sequence.operator.i_o.out.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@@ -96,7 +95,7 @@
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
A <a class="link" href="../../../sequence.html" title="Sequence">Sequence</a>.
|
||||
A <a href="../../../sequence.html" title="Sequence">Sequence</a>.
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@@ -108,35 +107,35 @@
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequence.operator.i_o.out.expression_semantics"></a><h6>
|
||||
<a name="id2692992"></a>
|
||||
<a class="link" href="out.html#fusion.sequence.operator.i_o.out.expression_semantics">Expression
|
||||
<a name="id521026"></a>
|
||||
<a href="out.html#fusion.sequence.operator.i_o.out.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">os</span> <span class="special"><<</span> <span class="identifier">seq</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Return type</strong></span>: OStream&
|
||||
<span class="bold"><b>Return type</b></span>: OStream&
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: For each element, <code class="computeroutput"><span class="identifier">e</span></code>, in sequence, <code class="computeroutput"><span class="identifier">seq</span></code>,
|
||||
call <code class="computeroutput"><span class="identifier">os</span> <span class="special"><<</span>
|
||||
<span class="identifier">e</span></code>.
|
||||
<span class="bold"><b>Semantics</b></span>: For each element, <tt class="computeroutput"><span class="identifier">e</span></tt>, in sequence, <tt class="computeroutput"><span class="identifier">seq</span></tt>,
|
||||
call <tt class="computeroutput"><span class="identifier">os</span> <span class="special"><<</span>
|
||||
<span class="identifier">e</span></tt>.
|
||||
</p>
|
||||
<a name="fusion.sequence.operator.i_o.out.header"></a><h6>
|
||||
<a name="id2693101"></a>
|
||||
<a class="link" href="out.html#fusion.sequence.operator.i_o.out.header">Header</a>
|
||||
<a name="id521147"></a>
|
||||
<a href="out.html#fusion.sequence.operator.i_o.out.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">sequence</span><span class="special">/</span><span class="identifier">io</span><span class="special">/</span><span class="identifier">out</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">out</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequence.operator.i_o.out.example"></a><h6>
|
||||
<a name="id2693252"></a>
|
||||
<a class="link" href="out.html#fusion.sequence.operator.i_o.out.example">Example</a>
|
||||
<a name="id521315"></a>
|
||||
<a href="out.html#fusion.sequence.operator.i_o.out.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</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">123</span><span class="special">,</span> <span class="string">"Hello"</span><span class="special">,</span> <span class="char">'x'</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../../../container/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">123</span><span class="special">,</span> <span class="string">"Hello"</span><span class="special">,</span> <span class="char">'x'</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
Reference in new issue
Block a user