various edits

[SVN r9150]
This commit is contained in:
Jeremy Siek 2001-02-12 04:52:24 +00:00
parent ee269884fc
commit 7135373008
3 changed files with 15 additions and 8 deletions

View File

@ -41,6 +41,7 @@ namespace boost {
} }
</pre> </pre>
<hr>
<h2><a name="filter_iterator_generator">The Filter Iterator Type <h2><a name="filter_iterator_generator">The Filter Iterator Type
Generator</a></h2> Generator</a></h2>
@ -56,12 +57,12 @@ parameters for each of the iterator's associated types.
<pre> <pre>
template &lt;class Predicate, class BaseIterator, template &lt;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 class filter_iterator_generator
{ {
public: 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>&lt...&gt;</tt> type; // the resulting filter iterator type
typedef ... policies_type; // the policies type for the iterator adaptor typedef ... policies_type; // the policies type for the iterator adaptor
} }
</pre> </pre>

View File

@ -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 If the base iterator is a model of <a
href="http://www.sgi.com/tech/stl/RandomAccessIterator.html">Random href="http://www.sgi.com/tech/stl/RandomAccessIterator.html">Random
Access Iterator</a> then so is the resulting indirect iterator types. 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 resulting indirect iterator types will also support less
functionality. The resulting <tt>iterator</tt> type is mutable, and functionality. The resulting <tt>iterator</tt> type is mutable, and
the resulting <tt>const_iterator</tt> type is constant. the resulting <tt>const_iterator</tt> type is constant.

View File

@ -27,7 +27,7 @@ function object, and then returns the result. The following
<pre> <pre>
value_type transform_iterator::operator*() const { value_type transform_iterator::operator*() const {
return f(*this->base_iterator); return this->f(*this->base_iterator);
} }
</pre> </pre>
@ -48,6 +48,8 @@ namespace boost {
} }
</pre> </pre>
<hr>
<h2><a name="transform_iterator_generator">The Transform Iterator Type <h2><a name="transform_iterator_generator">The Transform Iterator Type
Generator</a></h2> Generator</a></h2>
@ -110,9 +112,13 @@ The output from this part is:
<TR> <TR>
<TD><a href="http://www.sgi.com/tech/stl/AdaptableUnaryFunction.html"><tt>AdaptableUnaryFunction</tt></a></TD> <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. <TD>The function object that transforms each element in the iterator
If you want the resulting iterator to behave as an iterator, the result of the function range. The <tt>argument_type</tt> of the function object must match
should be solely a function of its argument.</TD> 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>
<TR> <TR>