summaryrefslogtreecommitdiff
path: root/libs/fusion/doc/html/fusion/adapted/adapt_assoc_tpl_adt.html
diff options
context:
space:
mode:
Diffstat (limited to 'libs/fusion/doc/html/fusion/adapted/adapt_assoc_tpl_adt.html')
-rw-r--r--libs/fusion/doc/html/fusion/adapted/adapt_assoc_tpl_adt.html31
1 files changed, 16 insertions, 15 deletions
diff --git a/libs/fusion/doc/html/fusion/adapted/adapt_assoc_tpl_adt.html b/libs/fusion/doc/html/fusion/adapted/adapt_assoc_tpl_adt.html
index 6214cd41b..5a915855d 100644
--- a/libs/fusion/doc/html/fusion/adapted/adapt_assoc_tpl_adt.html
+++ b/libs/fusion/doc/html/fusion/adapted/adapt_assoc_tpl_adt.html
@@ -40,8 +40,8 @@
<pre class="programlisting"><span class="identifier">BOOST_FUSION_ADAPT_ASSOC_TPL_ADT</span><span class="special">(</span>
<span class="special">(</span><span class="identifier">template_param0</span><span class="special">)(</span><span class="identifier">template_param1</span><span class="special">)...,</span>
<span class="special">(</span><span class="identifier">type_name</span><span class="special">)</span> <span class="special">(</span><span class="identifier">specialization_param0</span><span class="special">)(</span><span class="identifier">specialization_param1</span><span class="special">)...,</span>
- <span class="special">(</span><span class="identifier">attribute_type0</span><span class="special">,</span> <span class="identifier">attribute_const_type0</span><span class="special">,</span> <span class="identifier">get_expr0</span><span class="special">,</span> <span class="identifier">set_expr0</span><span class="special">,</span> <span class="identifier">key_type0</span><span class="special">)</span>
- <span class="special">(</span><span class="identifier">attribute_type1</span><span class="special">,</span> <span class="identifier">attribute_const_type1</span><span class="special">,</span> <span class="identifier">get_expr1</span><span class="special">,</span> <span class="identifier">set_expr1</span><span class="special">,</span> <span class="identifier">key_type1</span><span class="special">)</span>
+ <span class="special">([</span><span class="identifier">attribute_type0</span><span class="special">,</span> <span class="identifier">attribute_const_type0</span><span class="special">,]</span> <span class="identifier">get_expr0</span><span class="special">,</span> <span class="identifier">set_expr0</span><span class="special">,</span> <span class="identifier">key_type0</span><span class="special">)</span>
+ <span class="special">([</span><span class="identifier">attribute_type1</span><span class="special">,</span> <span class="identifier">attribute_const_type1</span><span class="special">,]</span> <span class="identifier">get_expr1</span><span class="special">,</span> <span class="identifier">set_expr1</span><span class="special">,</span> <span class="identifier">key_type1</span><span class="special">)</span>
<span class="special">...</span>
<span class="special">)</span>
</pre>
@@ -58,24 +58,25 @@
Sequence</a>. The sequence <code class="computeroutput"><span class="special">(</span><span class="identifier">template_param0</span><span class="special">)(</span><span class="identifier">template_param1</span><span class="special">)...</span></code>
declares the names of the template type parameters used. The sequence <code class="computeroutput"><span class="special">(</span><span class="identifier">specialization_param0</span><span class="special">)(</span><span class="identifier">specialization_param1</span><span class="special">)...</span></code> declares the template parameters of the
actual specialization of <code class="computeroutput"><span class="identifier">type_name</span></code>
- that is adapted as a fusion sequence. The sequence of <code class="literal">(attribute_type<span class="emphasis"><em>N</em></span>,
- attribute_const_type<span class="emphasis"><em>N</em></span>, get_expr<span class="emphasis"><em>N</em></span>,
- set_expr<span class="emphasis"><em>N</em></span>, key_type<span class="emphasis"><em>N</em></span>)</code>
- 5-tuples declares the types, const types, get-expressions, set-expressions
- and key types of the elements that are part of the adapted fusion sequence.
- <code class="literal">get_expr<span class="emphasis"><em>N</em></span></code> is the expression that
- is invoked to get the <span class="emphasis"><em>N</em></span>th element of an instance of
- <code class="computeroutput"><span class="identifier">type_name</span></code>. This expression
- may access a variable named <code class="computeroutput"><span class="identifier">obj</span></code>
+ that is adapted as a fusion sequence. The sequence of <code class="literal">([attribute_type<span class="emphasis"><em>N</em></span>,
+ attribute_const_type<span class="emphasis"><em>N</em></span>,</code> get_expr<span class="emphasis"><em>N</em></span>,
+ set_expr<span class="emphasis"><em>N</em></span>, key_type<span class="emphasis"><em>N</em></span>)] 5-tuples
+ declares the types, const types, get-expressions, set-expressions and key
+ types of the elements that are part of the adapted fusion sequence. <code class="literal">get_expr<span class="emphasis"><em>N</em></span></code>
+ is the expression that is invoked to get the <span class="emphasis"><em>N</em></span>th element
+ of an instance of <code class="computeroutput"><span class="identifier">type_name</span></code>.
+ This expression may access a variable named <code class="computeroutput"><span class="identifier">obj</span></code>
of type <code class="computeroutput"><span class="identifier">type_name</span><span class="special">&amp;</span></code>
or <code class="computeroutput"><span class="identifier">type_name</span> <span class="keyword">const</span><span class="special">&amp;</span></code> which represents the underlying instance
of <code class="computeroutput"><span class="identifier">type_name</span></code>. <code class="literal">attribute_type<span class="emphasis"><em>N</em></span></code>
and <code class="literal">attribute_const_type<span class="emphasis"><em>N</em></span></code> may specify
the types that <code class="literal">get_expr<span class="emphasis"><em>N</em></span></code> denotes
- to. <code class="literal">set_expr<span class="emphasis"><em>N</em></span></code> is the expression that
- is invoked to set the <span class="emphasis"><em>N</em></span>th element of an instance of
- <code class="computeroutput"><span class="identifier">type_name</span></code>. This expression
- may access variables named <code class="computeroutput"><span class="identifier">obj</span></code>
+ to, when omitted the type is deduced from [get_expr<span class="emphasis"><em>N</em></span>]
+ return type via BOOST_TYPEOF. On compiler missing support for variadic macros
+ BOOST_FUSION_ADAPT_AUTO can be used to avoid repeating the type. <code class="literal">set_expr<span class="emphasis"><em>N</em></span></code>
+ is the expression that is invoked to set the <span class="emphasis"><em>N</em></span>th element
+ of an instance of <code class="computeroutput"><span class="identifier">type_name</span></code>.
+ This expression may access variables named <code class="computeroutput"><span class="identifier">obj</span></code>
of type <code class="computeroutput"><span class="identifier">type_name</span><span class="special">&amp;</span></code>,
which represent the corresponding instance of <code class="computeroutput"><span class="identifier">type_name</span></code>,
and <code class="computeroutput"><span class="identifier">val</span></code> of an arbitrary const-qualified