|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r61939 - sandbox/statistics/support/libs/assign/doc
From: erwann.rogard_at_[hidden]
Date: 2010-05-12 20:17:55
Author: e_r
Date: 2010-05-12 20:17:54 EDT (Wed, 12 May 2010)
New Revision: 61939
URL: http://svn.boost.org/trac/boost/changeset/61939
Log:
m
Text files modified:
sandbox/statistics/support/libs/assign/doc/index.html | 45 ++++++++++++++++++++++++++++++++-------
1 files changed, 37 insertions(+), 8 deletions(-)
Modified: sandbox/statistics/support/libs/assign/doc/index.html
==============================================================================
--- sandbox/statistics/support/libs/assign/doc/index.html (original)
+++ sandbox/statistics/support/libs/assign/doc/index.html 2010-05-12 20:17:54 EDT (Wed, 12 May 2010)
@@ -62,6 +62,8 @@
<a href="#ref-repeat"><code>range()</code>
</a></li>
<li>Operator &&
</li>
+ <li>Function chain_l()
</li>
+ <li>Function chain_r()
</li>
<li>Customizing argument list sizes </li>
</ul>
<li> Concepts </li>
@@ -846,6 +848,8 @@
<li>Operator +=
for standard containers</li>
<li>Functions repeat()
, repeat_fun()
and range()
</li>
<li>Operator &&
</li>
+ <li>Function chain_l()
</li>
+ <li>Function chain_r()
</li>
<li>Customizing argument list sizes </li>
</ul>
@@ -1281,14 +1285,40 @@
<tr><td><tt>s1 && s2</tt></td><td> result_of::chain_r
<code><R1,R2>::type</code> </td></tr>
</table>
</blockquote>
+
+ <h3> <a name="ref-chain_l"> <code>chain_l()</code></a> </h3>
- <h4> Fine control </h4>
+ This is a fine-control version of operator &&
that can be
+ used to chain l-value ranges.
+
+ <h4> Template parameters </h4>
- Let <tt>T1</tt> and <tt>T2</tt> each be <tt>const</tt> or non-<tt>const</tt> without restriction.
- For finer control over the resulting proxy objects, one may call <tt>chain_l<V,R>(r1)(r2)</tt> or <tt>chain_l(r1)(r2)</tt>, where
-<tt>V</tt> is a value type, and <tt>R</tt> a reference type, and similarly <tt>chain_r<V,R>(t1)(t2)</tt> or
-<tt>chain_r(t1)(t2)</tt>.
+ <blockquote>
+ <table cellpadding=5 border=1>
+ <tr><th class="head">Parameter</th> <th class="head">Result</th>
+ <tr><td><tt>V</tt></td><td> A value type </td></tr>
+ <tr><td><tt>R</tt></td><td> A reference type, or <tt>use_default<tt> </td></tr>
+ <tr><td><tt>Rng1</tt></td><td> An l-value that models Range </td></tr>
+ </table>
+ </blockquote>
+ <h4> Usage </h4>
+
+ Let <code>r1</code> denote an object of type <code>Rng1</code>.
+
+ <blockquote>
+ <table cellpadding=5 border=1>
+ <tr><th class="head">Expression</th> <th class="head">Result</th>
+ <tr><td><tt>chain_l<V,R>(r1)</tt></td> <td>An object that models Chainable </td></tr>
+ <tr><td><tt>chain_l(r1)</tt> </td> <td>An object that models Chainable </td> </tr>
+ </table>
+ </blockquote>
+
+ <h3> <a name="ref-chain_r"> <code>chain_r()</code></a> </h3>
+
+ Same as chain_l
but for r-values. If l-values are passed
+ as arguments, they are treated as l-values.
+
<h2>Concepts <a name="concepts"> </h2>
<h3>Contents</h3>
@@ -1325,7 +1355,7 @@
<h4>Models</h4>
- expr<>, chain_l<>, and chain_r<>.
+ expr<>, expr_l<>, and expr_r<>.
<h3>Concept <a name="concept-chainable"><tt>Chainable</tt></a></h3>
@@ -2140,8 +2170,7 @@
assignment semantics has been introduced, as well as range comparability. Note that
<a href="#ref-list_of"><code>list_of()</code></a> has been upgraded to model the associated concept (previously comparison to a proxy object defined in
Boost.Assign was not possible).
-
-
+
</p>
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk