forked from boostorg/fusion
1 parent
11228c420f
commit
c02a3ba001
269 files changed
+1683
-1678
No files matched your search
@@ -22,7 +22,7 @@
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="introduction.html"><img src="../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.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="organization.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section" title="Quick Start">
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
||||
<a name="fusion.quick_start"></a><a class="link" href="quick_start.html" title="Quick Start">Quick Start</a>
|
||||
</h2></div></div></div>
|
||||
@@ -34,7 +34,7 @@
|
||||
</p>
|
||||
<p>
|
||||
For starters, we shall include all of Fusion's <a class="link" href="sequence.html" title="Sequence">Sequence</a>(s)
|
||||
<sup>[<a name="id625096" href="#ftn.id625096" class="footnote">2</a>]</sup>
|
||||
<sup>[<a name="id864210" href="#ftn.id864210" class="footnote">2</a>]</sup>
|
||||
:
|
||||
</p>
|
||||
<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">hpp</span><span class="special">></span>
|
||||
@@ -42,7 +42,7 @@
|
||||
</pre>
|
||||
<p>
|
||||
Let's begin with a <code class="computeroutput"><a class="link" href="container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a></code>
|
||||
<sup>[<a name="id625211" href="#ftn.id625211" class="footnote">3</a>]</sup>
|
||||
<sup>[<a name="id864325" href="#ftn.id864325" class="footnote">3</a>]</sup>
|
||||
:
|
||||
</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">char</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">stuff</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="string">"howdy"</span><span class="special">);</span>
|
||||
@@ -59,7 +59,7 @@
|
||||
Let's see some examples.
|
||||
</p>
|
||||
<a name="fusion.quick_start.print_the_vector_as_xml"></a><h4>
|
||||
<a name="id625527"></a>
|
||||
<a name="id864641"></a>
|
||||
<a class="link" href="quick_start.html#fusion.quick_start.print_the_vector_as_xml">Print the vector
|
||||
as XML</a>
|
||||
</h4>
|
||||
@@ -98,7 +98,7 @@
|
||||
it calls <code class="computeroutput"><span class="identifier">print_xml</span></code>'s <code class="computeroutput"><span class="keyword">operator</span><span class="special">()</span></code> for
|
||||
each element in <code class="computeroutput"><span class="identifier">stuff</span></code>.
|
||||
</p>
|
||||
<div class="caution" title="Caution"><table border="0" summary="Caution">
|
||||
<div class="caution"><table border="0" summary="Caution">
|
||||
<tr>
|
||||
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Caution]" src="../../../../../doc/html/images/caution.png"></td>
|
||||
<th align="left">Caution</th>
|
||||
@@ -114,7 +114,7 @@
|
||||
print just about any Fusion <a class="link" href="sequence.html" title="Sequence">Sequence</a>.
|
||||
</p>
|
||||
<a name="fusion.quick_start.print_only_pointers"></a><h4>
|
||||
<a name="id629304"></a>
|
||||
<a name="id868385"></a>
|
||||
<a class="link" href="quick_start.html#fusion.quick_start.print_only_pointers">Print only pointers</a>
|
||||
</h4>
|
||||
<p>
|
||||
@@ -146,7 +146,7 @@
|
||||
Easy, right?
|
||||
</p>
|
||||
<a name="fusion.quick_start.associative_tuples"></a><h4>
|
||||
<a name="id629577"></a>
|
||||
<a name="id868659"></a>
|
||||
<a class="link" href="quick_start.html#fusion.quick_start.associative_tuples">Associative tuples</a>
|
||||
</h4>
|
||||
<p>
|
||||
@@ -218,7 +218,7 @@
|
||||
a <code class="computeroutput"><span class="identifier">dog</span></code> or a whole <code class="computeroutput"><span class="identifier">alternate_universe</span></code>.
|
||||
</p>
|
||||
<a name="fusion.quick_start.tip_of_the_iceberg"></a><h4>
|
||||
<a name="id630288"></a>
|
||||
<a name="id869369"></a>
|
||||
<a class="link" href="quick_start.html#fusion.quick_start.tip_of_the_iceberg">Tip of the Iceberg</a>
|
||||
</h4>
|
||||
<p>
|
||||
@@ -229,12 +229,12 @@
|
||||
</p>
|
||||
<div class="footnotes">
|
||||
<br><hr width="100" align="left">
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id625096" href="#id625096" class="para">2</a>] </sup>
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id864210" href="#id864210" class="para">2</a>] </sup>
|
||||
There are finer grained header files available if you wish to have more
|
||||
control over which components to include (see section <a class="link" href="organization.html" title="Organization">Orgainization</a>
|
||||
for details).
|
||||
</p></div>
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id625211" href="#id625211" class="para">3</a>] </sup>
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id864325" href="#id864325" class="para">3</a>] </sup>
|
||||
Unless otherwise noted, components are in namespace <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">fusion</span></code>.
|
||||
For the sake of simplicity, code in this quick start implies <code class="computeroutput"><span class="keyword">using</span></code> directives for the fusion components
|
||||
we will be using.
|
||||
|
||||
Reference in new issue
Block a user