mirror of
https://github.com/boostorg/utility.git
synced 2025-05-09 15:04:00 +00:00
various edits
[SVN r9150]
This commit is contained in:
parent
ee269884fc
commit
7135373008
@ -41,6 +41,7 @@ namespace boost {
|
||||
}
|
||||
</pre>
|
||||
|
||||
<hr>
|
||||
|
||||
<h2><a name="filter_iterator_generator">The Filter Iterator Type
|
||||
Generator</a></h2>
|
||||
@ -56,11 +57,11 @@ parameters for each of the iterator's associated types.
|
||||
|
||||
<pre>
|
||||
template <class Predicate, class BaseIterator,
|
||||
class Value, class Pointer, class Reference, class Category, class Distance>
|
||||
class Value, class Reference, class Pointer, class Category, class Distance>
|
||||
class filter_iterator_generator
|
||||
{
|
||||
public:
|
||||
typedef ... type; // the resulting filter iterator type which is <a href="./iterator_adaptor.htm"><tt>iterator_adaptor</tt></a>
|
||||
typedef <tt><a href="./iterator_adaptor.htm">iterator_adaptor</a><...></tt> type; // the resulting filter iterator type
|
||||
typedef ... policies_type; // the policies type for the iterator adaptor
|
||||
}
|
||||
</pre>
|
||||
|
@ -279,7 +279,7 @@ type of object that is accessed by dereferences in the base iterator twice.<br>
|
||||
If the base iterator is a model of <a
|
||||
href="http://www.sgi.com/tech/stl/RandomAccessIterator.html">Random
|
||||
Access Iterator</a> then so is the resulting indirect iterator types.
|
||||
If the base iterator supports less functionality than this the
|
||||
If the base iterator supports less functionality the
|
||||
resulting indirect iterator types will also support less
|
||||
functionality. The resulting <tt>iterator</tt> type is mutable, and
|
||||
the resulting <tt>const_iterator</tt> type is constant.
|
||||
|
@ -27,7 +27,7 @@ function object, and then returns the result. The following
|
||||
|
||||
<pre>
|
||||
value_type transform_iterator::operator*() const {
|
||||
return f(*this->base_iterator);
|
||||
return this->f(*this->base_iterator);
|
||||
}
|
||||
</pre>
|
||||
|
||||
@ -48,6 +48,8 @@ namespace boost {
|
||||
}
|
||||
</pre>
|
||||
|
||||
<hr>
|
||||
|
||||
<h2><a name="transform_iterator_generator">The Transform Iterator Type
|
||||
Generator</a></h2>
|
||||
|
||||
@ -110,9 +112,13 @@ The output from this part is:
|
||||
|
||||
<TR>
|
||||
<TD><a href="http://www.sgi.com/tech/stl/AdaptableUnaryFunction.html"><tt>AdaptableUnaryFunction</tt></a></TD>
|
||||
<TD>The function object that transforms each element in the iterator range.
|
||||
If you want the resulting iterator to behave as an iterator, the result of the function
|
||||
should be solely a function of its argument.</TD>
|
||||
<TD>The function object that transforms each element in the iterator
|
||||
range. The <tt>argument_type</tt> of the function object must match
|
||||
the value type of the base iterator. The <tt>result_type</tt> of the
|
||||
function object will be the resulting iterator's
|
||||
<tt>value_type</tt>. If you want the resulting iterator to behave as
|
||||
an iterator, the result of the function should be solely a function of
|
||||
its argument.</TD>
|
||||
</TR>
|
||||
|
||||
<TR>
|
||||
|
Loading…
x
Reference in New Issue
Block a user