|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r82325 - in trunk/libs/range/doc: html html/range/reference/adaptors reference
From: zeratul976_at_[hidden]
Date: 2013-01-02 18:41:58
Author: nathanridge
Date: 2013-01-02 18:41:58 EST (Wed, 02 Jan 2013)
New Revision: 82325
URL: http://svn.boost.org/trac/boost/changeset/82325
Log:
[range] fixed #5160 (typo in replace_copy_if() example on intro page for range adaptors)
Text files modified:
trunk/libs/range/doc/html/index.html | 2 +-
trunk/libs/range/doc/html/range/reference/adaptors/introduction.html | 2 +-
trunk/libs/range/doc/reference/adaptors.qbk | 2 +-
3 files changed, 3 insertions(+), 3 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 18:41:58 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 08:07:20 GMT</small></p></td>
+<td align="left"><p><small>Last revised: January 02, 2013 at 23:39:56 GMT</small></p></td>
<td align="right"><div class="copyright-footer"></div></td>
</tr></table>
<hr>
Modified: trunk/libs/range/doc/html/range/reference/adaptors/introduction.html
==============================================================================
--- trunk/libs/range/doc/html/range/reference/adaptors/introduction.html (original)
+++ trunk/libs/range/doc/html/range/reference/adaptors/introduction.html 2013-01-02 18:41:58 EST (Wed, 02 Jan 2013)
@@ -204,7 +204,7 @@
<p>
</p>
<pre class="programlisting"><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special"><</span><span class="keyword">int</span><span class="special">></span> <span class="identifier">vec</span><span class="special">;</span>
-<span class="identifier">boost</span><span class="special">::</span><span class="identifier">replace_copy_if</span><span class="special">(</span> <span class="identifier">rng</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">back_inserter</span><span class="special">(</span><span class="identifier">vec</span><span class="special">),</span> <span class="identifier">pred</span> <span class="special">);</span>
+<span class="identifier">boost</span><span class="special">::</span><span class="identifier">replace_copy_if</span><span class="special">(</span> <span class="identifier">rng</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">back_inserter</span><span class="special">(</span><span class="identifier">vec</span><span class="special">),</span> <span class="identifier">pred</span><span class="special">,</span> <span class="identifier">new_value</span> <span class="special">);</span>
</pre>
<p>
</p>
Modified: trunk/libs/range/doc/reference/adaptors.qbk
==============================================================================
--- trunk/libs/range/doc/reference/adaptors.qbk (original)
+++ trunk/libs/range/doc/reference/adaptors.qbk 2013-01-02 18:41:58 EST (Wed, 02 Jan 2013)
@@ -93,7 +93,7 @@
``
std::vector<int> vec;
-boost::replace_copy_if( rng, std::back_inserter(vec), pred );
+boost::replace_copy_if( rng, std::back_inserter(vec), pred, new_value );
``
With adaptors and algorithms we can express this as
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