[range] fixed #7585 (typo in documentation for 'indexed' adaptor)

[SVN r82316]
This commit is contained in:
Nathan Ridge
2013-01-02 08:09:46 +00:00
parent 958b4fbf6e
commit 3379affd4a
3 changed files with 6 additions and 5 deletions

View File

@ -147,7 +147,7 @@
</p> </p>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <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:04:07 GMT</small></p></td> <td align="left"><p><small>Last revised: January 02, 2013 at 08:07:20 GMT</small></p></td>
<td align="right"><div class="copyright-footer"></div></td> <td align="right"><div class="copyright-footer"></div></td>
</tr></table> </tr></table>
<hr> <hr>

View File

@ -55,7 +55,7 @@
<td> <td>
<p> <p>
<code class="computeroutput"><span class="identifier">rng</span> <span class="special">|</span> <code class="computeroutput"><span class="identifier">rng</span> <span class="special">|</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">adaptors</span><span class="special">::</span><span class="identifier">indexed</span></code> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">adaptors</span><span class="special">::</span><span class="identifier">indexed</span><span class="special">(</span><span class="identifier">start_index</span><span class="special">)</span></code>
</p> </p>
</td> </td>
</tr> </tr>
@ -67,7 +67,8 @@
</td> </td>
<td> <td>
<p> <p>
<code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">adaptors</span><span class="special">::</span><span class="identifier">index</span><span class="special">(</span><span class="identifier">rng</span><span class="special">)</span></code> <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">adaptors</span><span class="special">::</span><span class="identifier">index</span><span class="special">(</span><span class="identifier">rng</span><span class="special">,</span>
<span class="identifier">start_index</span><span class="special">)</span></code>
</p> </p>
</td> </td>
</tr> </tr>

View File

@ -7,8 +7,8 @@
[table [table
[[Syntax] [Code]] [[Syntax] [Code]]
[[Pipe] [`rng | boost::adaptors::indexed`]] [[Pipe] [`rng | boost::adaptors::indexed(start_index)`]]
[[Function] [`boost::adaptors::index(rng)`]] [[Function] [`boost::adaptors::index(rng, start_index)`]]
] ]
* [*Returns:] A range adapted to return both the element and the associated index. The returned range consists of iterators that have in addition to the usual iterator member functions an `index()` member function that returns the appropriate index for the element in the sequence corresponding with the iterator. * [*Returns:] A range adapted to return both the element and the associated index. The returned range consists of iterators that have in addition to the usual iterator member functions an `index()` member function that returns the appropriate index for the element in the sequence corresponding with the iterator.