forked from boostorg/fusion
merged fusion from the trunk
[SVN r63560]
This commit is contained in:
@ -22,12 +22,12 @@
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="adapt_assoc_struct_named.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapted.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="define_tpl_struct.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section" title="BOOST_FUSION_DEFINE_STRUCT">
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="fusion.adapted.define_struct"></a><a class="link" href="define_struct.html" title="BOOST_FUSION_DEFINE_STRUCT"> BOOST_FUSION_DEFINE_STRUCT</a>
|
||||
</h3></div></div></div>
|
||||
<a name="fusion.adapted.define_struct.description"></a><h5>
|
||||
<a name="id766891"></a>
|
||||
<a name="id995984"></a>
|
||||
<a class="link" href="define_struct.html#fusion.adapted.define_struct.description">Description</a>
|
||||
</h5>
|
||||
<p>
|
||||
@ -37,7 +37,7 @@
|
||||
Access Sequence</a>.
|
||||
</p>
|
||||
<a name="fusion.adapted.define_struct.synopsis"></a><h5>
|
||||
<a name="id766913"></a>
|
||||
<a name="id996006"></a>
|
||||
<a class="link" href="define_struct.html#fusion.adapted.define_struct.synopsis">Synopsis</a>
|
||||
</h5>
|
||||
<pre class="programlisting"><span class="identifier">BOOST_FUSION_DEFINE_STRUCT</span><span class="special">(</span>
|
||||
@ -48,7 +48,7 @@
|
||||
<span class="special">...</span>
|
||||
<span class="special">)</span>
|
||||
</pre>
|
||||
<div class="variablelist" title="Notation">
|
||||
<div class="variablelist">
|
||||
<p class="title"><b>Notation</b></p>
|
||||
<dl>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">str</span></code></span></dt>
|
||||
@ -67,7 +67,7 @@
|
||||
</dl>
|
||||
</div>
|
||||
<a name="fusion.adapted.define_struct.expression_semantics"></a><h5>
|
||||
<a name="id767100"></a>
|
||||
<a name="id996193"></a>
|
||||
<a class="link" href="define_struct.html#fusion.adapted.define_struct.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h5>
|
||||
@ -78,9 +78,11 @@
|
||||
It yields to a fully qualified name for <code class="computeroutput"><span class="identifier">struct_name</span></code>
|
||||
of <code class="computeroutput"><span class="identifier">namespace0</span><span class="special">::</span><span class="identifier">namespace1</span><span class="special">::...</span>
|
||||
<span class="identifier">struct_name</span></code>. If an empty namespace
|
||||
sequence is given, the struct is placed in the global namespace. The sequence
|
||||
of <code class="computeroutput"><span class="special">(</span><span class="identifier">member_typeN</span><span class="special">,</span> <span class="identifier">member_nameN</span><span class="special">)</span></code> pairs declares the type and names of each
|
||||
of the struct members that are part of the sequence.
|
||||
sequence is given (that is a macro that expands to nothing), the struct is
|
||||
placed in the global namespace. The sequence of <code class="computeroutput"><span class="special">(</span><span class="identifier">member_typeN</span><span class="special">,</span>
|
||||
<span class="identifier">member_nameN</span><span class="special">)</span></code>
|
||||
pairs declares the type and names of each of the struct members that are
|
||||
part of the sequence.
|
||||
</p>
|
||||
<p>
|
||||
The macro should be used at global scope. Semantics of an expression is defined
|
||||
@ -176,14 +178,14 @@
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.adapted.define_struct.header"></a><h5>
|
||||
<a name="id767506"></a>
|
||||
<a name="id996598"></a>
|
||||
<a class="link" href="define_struct.html#fusion.adapted.define_struct.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">adapted</span><span class="special">/</span><span class="keyword">struct</span><span class="special">/</span><span class="identifier">define_struct</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">define_struct</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.adapted.define_struct.example"></a><h5>
|
||||
<a name="id767621"></a>
|
||||
<a name="id996714"></a>
|
||||
<a class="link" href="define_struct.html#fusion.adapted.define_struct.example">Example</a>
|
||||
</h5>
|
||||
<pre class="programlisting"><span class="comment">// demo::employee is a Fusion sequence
|
||||
|
Reference in New Issue
Block a user