mirror of
https://github.com/boostorg/utility.git
synced 2025-05-09 23:14:02 +00:00
using make_const_projection_iterator() for last example,
and a couple other minor edits [SVN r9145]
This commit is contained in:
parent
2eba7b42a8
commit
387540d5f1
@ -47,7 +47,13 @@ namespace boost {
|
|||||||
|
|
||||||
template <class <a href="http://www.sgi.com/tech/stl/AdaptableUnaryFunction.html">AdaptableUnaryFunction</a>, class BaseIterator>
|
template <class <a href="http://www.sgi.com/tech/stl/AdaptableUnaryFunction.html">AdaptableUnaryFunction</a>, class BaseIterator>
|
||||||
typename projection_iterator_generator<AdaptableUnaryFunction, BaseIterator>::type
|
typename projection_iterator_generator<AdaptableUnaryFunction, BaseIterator>::type
|
||||||
make_projection_iterator(BaseIterator base)
|
make_projection_iterator(BaseIterator base,
|
||||||
|
const AdaptableUnaryFunction& p = AdaptableUnaryFunction())
|
||||||
|
|
||||||
|
template <class <a href="http://www.sgi.com/tech/stl/AdaptableUnaryFunction.html">AdaptableUnaryFunction</a>, class ConstBaseIterator>
|
||||||
|
typename projection_iterator_generator<AdaptableUnaryFunction, ConstBaseIterator>::type
|
||||||
|
make_const_projection_iterator(ConstBaseIterator base,
|
||||||
|
const AdaptableUnaryFunction& p = AdaptableUnaryFunction())
|
||||||
}
|
}
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
@ -327,15 +333,15 @@ save the user the trouble of explicitly writing out the iterator
|
|||||||
types.
|
types.
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
template <class <a href="http://www.sgi.com/tech/stl/AdaptableUnaryFunction.html">AdaptableUnaryFunction</a>, class BaseIterator>
|
template <class <a href="http://www.sgi.com/tech/stl/AdaptableUnaryFunction.html">AdaptableUnaryFunction</a>, class BaseIterator>
|
||||||
typename projection_iterator_generator<AdaptableUnaryFunction, BaseIterator>::type
|
typename projection_iterator_generator<AdaptableUnaryFunction, BaseIterator>::type
|
||||||
make_projection_iterator(BaseIterator base,
|
make_projection_iterator(BaseIterator base,
|
||||||
const AdaptableUnaryFunction& p = AdaptableUnaryFunction())
|
const AdaptableUnaryFunction& p = AdaptableUnaryFunction())
|
||||||
|
|
||||||
template <class <a href="http://www.sgi.com/tech/stl/AdaptableUnaryFunction.html">AdaptableUnaryFunction</a>, class ConstBaseIterator>
|
template <class <a href="http://www.sgi.com/tech/stl/AdaptableUnaryFunction.html">AdaptableUnaryFunction</a>, class ConstBaseIterator>
|
||||||
typename projection_iterator_generator<AdaptableUnaryFunction, ConstBaseIterator>::type
|
typename projection_iterator_generator<AdaptableUnaryFunction, ConstBaseIterator>::type
|
||||||
make_const_projection_iterator(ConstBaseIterator base,
|
make_const_projection_iterator(ConstBaseIterator base,
|
||||||
const AdaptableUnaryFunction& p = AdaptableUnaryFunction())
|
const AdaptableUnaryFunction& p = AdaptableUnaryFunction())
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
|
||||||
@ -343,7 +349,7 @@ types.
|
|||||||
|
|
||||||
In this part of the example, we again print out the names of the
|
In this part of the example, we again print out the names of the
|
||||||
personnel, but this time we use the
|
personnel, but this time we use the
|
||||||
<tt>make_projection_iterator()</tt> function to save some typing.
|
<tt>make_const_projection_iterator()</tt> function to save some typing.
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
// continuing from the last example...
|
// continuing from the last example...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user