|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r82314 - in trunk/libs/range/doc: html html/range/reference/extending/method_3 reference
From: zeratul976_at_[hidden]
Date: 2013-01-02 02:51:22
Author: nathanridge
Date: 2013-01-02 02:51:21 EST (Wed, 02 Jan 2013)
New Revision: 82314
URL: http://svn.boost.org/trac/boost/changeset/82314
Log:
[range] fixed #6212 (missing step in documentation for how to write a range adaptor)
Text files modified:
trunk/libs/range/doc/html/index.html | 2 +-
trunk/libs/range/doc/html/range/reference/extending/method_3/method_3_1.html | 8 ++++++++
trunk/libs/range/doc/reference/extending.qbk | 8 ++++++++
3 files changed, 17 insertions(+), 1 deletions(-)
Modified: trunk/libs/range/doc/html/index.html
==============================================================================
--- trunk/libs/range/doc/html/index.html (original)
+++ trunk/libs/range/doc/html/index.html 2013-01-02 02:51:21 EST (Wed, 02 Jan 2013)
@@ -147,7 +147,7 @@
</p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
-<td align="left"><p><small>Last revised: January 02, 2013 at 05:22:10 GMT</small></p></td>
+<td align="left"><p><small>Last revised: January 02, 2013 at 07:48:08 GMT</small></p></td>
<td align="right"><div class="copyright-footer"></div></td>
</tr></table>
<hr>
Modified: trunk/libs/range/doc/html/range/reference/extending/method_3/method_3_1.html
==============================================================================
--- trunk/libs/range/doc/html/range/reference/extending/method_3/method_3_1.html (original)
+++ trunk/libs/range/doc/html/range/reference/extending/method_3/method_3_1.html 2013-01-02 02:51:21 EST (Wed, 02 Jan 2013)
@@ -83,6 +83,14 @@
<span class="special">}</span>
</pre>
</li>
+<li class="listitem">
+ Declare the adaptor itself (it is a variable of the tag type).
+<pre class="programlisting"><span class="keyword">namespace</span>
+<span class="special">{</span>
+ <span class="keyword">const</span> <span class="identifier">detail</span><span class="special">::</span><span class="identifier">reverse_forwarder</span> <span class="identifier">reversed</span> <span class="special">=</span> <span class="identifier">detail</span><span class="special">::</span><span class="identifier">reverse_forwarder</span><span class="special">();</span>
+<span class="special">}</span>
+</pre>
+ </li>
</ol></div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
Modified: trunk/libs/range/doc/reference/extending.qbk
==============================================================================
--- trunk/libs/range/doc/reference/extending.qbk (original)
+++ trunk/libs/range/doc/reference/extending.qbk 2013-01-02 02:51:21 EST (Wed, 02 Jan 2013)
@@ -218,6 +218,14 @@
}
``
+# Declare the adaptor itself (it is a variable of the tag type).
+``
+namespace
+{
+ const detail::reverse_forwarder reversed = detail::reverse_forwarder();
+}
+``
+
[endsect]
[section:method_3_2 Method 3.2: Implement a Range Adaptor with arguments]
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