diff --git a/doc/index.html b/doc/index.html index 7e7dd9a..62274b6 100644 --- a/doc/index.html +++ b/doc/index.html @@ -131,6 +131,9 @@ is called to get the value to return.
  • function_output_iterator (PDF): an output iterator wrapping a unary function object; each time an element is written into the dereferenced iterator, it is passed as a parameter to the function object.
  • +
  • generator_iterator: an input iterator wrapping a reference to a generator (nullary function object); +each time the iterator is dereferenced, the function object +is called to get the value to return. This is a more outdated analogue of function_input_iterator.
  • indirect_iterator (PDF): an iterator over the objects pointed-to by the elements of some sequence.
  • permutation_iterator (PDF): an iterator over the elements of some random-access diff --git a/doc/index.rst b/doc/index.rst index 7adab0b..8770b82 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -146,6 +146,10 @@ iterator templates based on the Boost `iterator facade and adaptor`_. object; each time an element is written into the dereferenced iterator, it is passed as a parameter to the function object. +* |generator|_: an input iterator wrapping a generator (nullary + function object); each time the iterator is dereferenced, the function object + is called to get the value to return. This is an outdated analogue of |function_input|_. + * |indirect|_ (PDF__): an iterator over the objects *pointed-to* by the elements of some sequence. @@ -183,6 +187,9 @@ __ function_input_iterator.pdf .. _function_output: function_output_iterator.html __ function_output_iterator.pdf +.. |generator| replace:: ``generator_iterator`` +.. _generator: generator_iterator.htm + .. |indirect| replace:: ``indirect_iterator`` .. _indirect: indirect_iterator.html __ indirect_iterator.pdf diff --git a/doc/quickbook/function_output_iterator.qbk b/doc/quickbook/function_output_iterator.qbk index 0baba0d..838ebde 100644 --- a/doc/quickbook/function_output_iterator.qbk +++ b/doc/quickbook/function_output_iterator.qbk @@ -35,7 +35,7 @@ proxy object. std::string s = ""; std::copy(x.begin(), x.end(), - boost::make_function_output_iterator(string_appender(s))); + boost::make_function_output_iterator(string_appender(s))); std::cout << s << std::endl; @@ -97,4 +97,4 @@ Incrementable Iterator concepts. [*Returns: ] `*this`. -[endsect] \ No newline at end of file +[endsect] diff --git a/doc/quickbook/iterator.qbk b/doc/quickbook/iterator.qbk index 6312309..6a20e33 100644 --- a/doc/quickbook/iterator.qbk +++ b/doc/quickbook/iterator.qbk @@ -112,7 +112,9 @@ templates. [def _counting_ [link iterator.specialized.counting `counting_iterator`]] [def _filter_ [link iterator.specialized.filter `filter_iterator`]] -[def _function_ [link iterator.specialized.function_output `function_output_iterator`]] +[def _function_input_ [@../function_input_iterator.html `function_input_iterator`]] +[def _function_output_ [link iterator.specialized.function_output `function_output_iterator`]] +[def _generator_ [@../generator_iterator.htm `generator_iterator`]] [def _indirect_ [link iterator.specialized.indirect `indirect_iterator`]] [def _permutation_ [link iterator.specialized.permutation `permutation_iterator`]] [def _reverse_ [link iterator.specialized.reverse `reverse_iterator`]] @@ -128,10 +130,18 @@ templates. * _filter_: an iterator over the subset of elements of some sequence which satisfy a given predicate -* _function_: an output iterator wrapping a unary function +* _function_input_: an input iterator wrapping a generator (nullary + function object); each time the iterator is dereferenced, the function object + is called to get the value to return. + +* _function_output_: an output iterator wrapping a unary function object; each time an element is written into the dereferenced iterator, it is passed as a parameter to the function object. +* _generator_: an input iterator wrapping a generator (nullary + function object); each time the iterator is dereferenced, the function object + is called to get the value to return. An outdated analogue of _function_input_. + * _indirect_: an iterator over the objects *pointed-to* by the elements of some sequence.