fusion: merge of associative iterators/views and the new fold interface

[SVN r58618]
This commit is contained in:
Christopher Schmidt
2010-01-01 22:00:21 +00:00
parent b605617c4f
commit cda74605fc
379 changed files with 28481 additions and 2185 deletions
+59
View File
@@ -3,7 +3,11 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>map</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
<<<<<<< .working
<meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
=======
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
>>>>>>> .merge-right.r57125
<link rel="home" href="../../index.html" title="Chapter 1. Fusion 2.0">
<link rel="up" href="../container.html" title="Container">
<link rel="previous" href="set.html" title="set">
@@ -22,6 +26,7 @@
<div class="spirit-nav">
<a accesskey="p" href="set.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../container.html"><img src="../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="generation.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
<<<<<<< .working
<div class="section" lang="en">
<div class="titlepage">
<div><div><h3 class="title">
@@ -33,6 +38,16 @@
<a name="id486951"></a>
<a href="map.html#fusion.container.map.description">Description</a>
</h4>
=======
<div class="section" title="map">
<div class="titlepage"><div><div><h3 class="title">
<a name="fusion.container.map"></a><a class="link" href="map.html" title="map">map</a>
</h3></div></div></div>
<a name="fusion.container.map.description"></a><h5>
<a name="id694005"></a>
<a class="link" href="map.html#fusion.container.map.description">Description</a>
</h5>
>>>>>>> .merge-right.r57125
<p>
map is an <a href="../sequence/concepts/associative_sequence.html" title="Associative
Sequence">Associative
@@ -43,19 +58,33 @@
key. Membership testing and element key lookup has constant runtime complexity
(see <a href="../notes.html#fusion.notes.overloaded_functions">Overloaded Functions</a>).
</p>
<<<<<<< .working
<a name="fusion.container.map.header"></a><h4>
<a name="id487031"></a>
<a href="map.html#fusion.container.map.header">Header</a>
</h4>
=======
<a name="fusion.container.map.header"></a><h5>
<a name="id694048"></a>
<a class="link" href="map.html#fusion.container.map.header">Header</a>
</h5>
>>>>>>> .merge-right.r57125
<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">container</span><span class="special">/</span><span class="identifier">map</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">map</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">container</span><span class="special">/</span><span class="identifier">map_fwd</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">map_fwd</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre>
<<<<<<< .working
<a name="fusion.container.map.synopsis"></a><h4>
<a name="id487311"></a>
<a href="map.html#fusion.container.map.synopsis">Synopsis</a>
</h4>
=======
<a name="fusion.container.map.synopsis"></a><h5>
<a name="id694247"></a>
<a class="link" href="map.html#fusion.container.map.synopsis">Synopsis</a>
</h5>
>>>>>>> .merge-right.r57125
<pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span>
<span class="keyword">typename</span> <span class="identifier">T0</span> <span class="special">=</span> <span class="emphasis"><em>unspecified</em></span>
<span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">T1</span> <span class="special">=</span> <span class="emphasis"><em>unspecified</em></span>
@@ -80,10 +109,17 @@
</p>
<pre class="programlisting"><span class="preprocessor">#define</span> <span class="identifier">FUSION_MAX_MAP_SIZE</span> <span class="number">20</span>
</pre>
<<<<<<< .working
<a name="fusion.container.map.template_parameters"></a><h4>
<a name="id487736"></a>
<a href="map.html#fusion.container.map.template_parameters">Template parameters</a>
</h4>
=======
<a name="fusion.container.map.template_parameters"></a><h5>
<a name="id694546"></a>
<a class="link" href="map.html#fusion.container.map.template_parameters">Template parameters</a>
</h5>
>>>>>>> .merge-right.r57125
<div class="informaltable"><table class="table">
<colgroup>
<col>
@@ -113,6 +149,7 @@
</p></td>
</tr></tbody>
</table></div>
<<<<<<< .working
<a name="fusion.container.map.model_of"></a><h4>
<a name="id487853"></a>
<a href="map.html#fusion.container.map.model_of">Model of</a>
@@ -120,6 +157,14 @@
<div class="itemizedlist"><ul type="disc">
<li><a href="../sequence/concepts/associative_sequence.html" title="Associative
Sequence">Associative
=======
<a name="fusion.container.map.model_of"></a><h5>
<a name="id694640"></a>
<a class="link" href="map.html#fusion.container.map.model_of">Model of</a>
</h5>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem"><a class="link" href="../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative
>>>>>>> .merge-right.r57125
Sequence</a></li>
<li><a href="../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence</a></li>
@@ -146,10 +191,17 @@
</p></dd>
</dl>
</div>
<<<<<<< .working
<a name="fusion.container.map.expression_semantics"></a><h4>
<a name="id488074"></a>
<a href="map.html#fusion.container.map.expression_semantics">Expression Semantics</a>
</h4>
=======
<a name="fusion.container.map.expression_semantics"></a><h5>
<a name="id694796"></a>
<a class="link" href="map.html#fusion.container.map.expression_semantics">Expression Semantics</a>
</h5>
>>>>>>> .merge-right.r57125
<p>
Semantics of an expression is defined only where it differs from, or is not
defined in <a href="../sequence/concepts/random_access_sequence.html" title="Random
@@ -213,10 +265,17 @@
</tr>
</tbody>
</table></div>
<<<<<<< .working
<a name="fusion.container.map.example"></a><h4>
<a name="id488420"></a>
<a href="map.html#fusion.container.map.example">Example</a>
</h4>
=======
<a name="fusion.container.map.example"></a><h5>
<a name="id695049"></a>
<a class="link" href="map.html#fusion.container.map.example">Example</a>
</h5>
>>>>>>> .merge-right.r57125
<pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">map</span><span class="special">&lt;</span>
<a href="../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">&gt;</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">&lt;</span><span class="keyword">double</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&gt;</span> <span class="special">&gt;</span>