From 7ee484c6141acd3ac371f4076a3c1e5242eb3d73 Mon Sep 17 00:00:00 2001 From: Jens Maurer Date: Sun, 18 Feb 2001 19:26:20 +0000 Subject: [PATCH] fix minor typos [SVN r9259] --- filter_iterator.htm | 2 +- indirect_iterator.htm | 7 +++++-- iterator_adaptors.htm | 11 ++++++++--- reverse_iterator.htm | 7 ++++++- 4 files changed, 20 insertions(+), 7 deletions(-) diff --git a/filter_iterator.htm b/filter_iterator.htm index ca0293e..fe5f10c 100644 --- a/filter_iterator.htm +++ b/filter_iterator.htm @@ -46,7 +46,7 @@ namespace boost {

The Filter Iterator Type Generator

-The class filter_iterator_generator is a helper class who's +The class filter_iterator_generator is a helper class whose purpose is to construct a filter iterator type. The template parameters for this class are the Predicate function object type and the BaseIterator type that is being wrapped. In diff --git a/indirect_iterator.htm b/indirect_iterator.htm index fab9953..4bb3896 100644 --- a/indirect_iterator.htm +++ b/indirect_iterator.htm @@ -1,13 +1,15 @@ + + - - Indirect Iterator Adaptor Documentation + + c++boost.gif (8819 bytes) + diff --git a/iterator_adaptors.htm b/iterator_adaptors.htm index 899e240..5004aee 100644 --- a/iterator_adaptors.htm +++ b/iterator_adaptors.htm @@ -1,11 +1,15 @@ + + Boost Iterator Adaptor Library + + c++boost.gif (8819 bytes)default_iterator_policies

To implement a transform iterator we will only change one of the base iterator's behaviors, so the transform_iterator_policies class can inherit the rest from default_iterator_policies. We will define - the dereference() member function, which is used implement + the dereference() member function, which is used to implement operator*() of the adapted iterator. The implementation will dereference the base iterator and apply the function object. The type<Reference> parameter is used to convey the appropriate @@ -584,7 +588,7 @@ mixed in comparison and subtraction expressions.

Challenge

-

There is an unlimited number of ways the the iterator_adaptors +

There is an unlimited number of ways the iterator_adaptors class can be used to create iterators. One interesting exercise would be to re-implement the iterators of std::list and std::slist using iterator_adaptors, where the adapted Iterator types @@ -736,5 +740,6 @@ bool operator==(const iterator_adaptor<B1,P,V1,R1,P1,C,D>&, - + + diff --git a/reverse_iterator.htm b/reverse_iterator.htm index f7ea319..6bb712e 100644 --- a/reverse_iterator.htm +++ b/reverse_iterator.htm @@ -1,12 +1,16 @@ + + Reverse Iterator Adaptor Documentation + + c++boost.gif (8819 bytes) @@ -255,5 +259,6 @@ letters in ascending order: !dehllloorw --> - + +