resolved some issues with counting_iterator

[SVN r21639]
This commit is contained in:
Jeremy Siek
2004-01-12 19:01:57 +00:00
parent b2407b0191
commit 6085e03da0
6 changed files with 88 additions and 39 deletions

View File

@ -271,7 +271,11 @@ The description of Counting iterator is unclear. "The counting iterator adaptor
dereference by returning a reference to the base object. The other operations are implemented by
the base m_iterator, as per the inheritance from iterator_adaptor."
:Proposed resolution: **Needs work** (Jeremy) Reword.
:Proposed resolution:
Change the introduction to: ``counting_iterator`` adapts an
arithmetic type, such as ``int``, by adding an ``operator*`` that
returns the current value of the object.
9.14 Counting_iterator's difference type
@ -290,8 +294,11 @@ I'm not sure what this means. The user provides a template argument named Differ
there's no difference_type. I assume this is just a glitch in the wording. But if implementors are
encouraged to ignore this argument if it won't work right, why is it there?
:Proposed resolution: **Needs work** (Jeremy)
Reword.
:Proposed resolution:
The ``difference_type`` was inherited from ``iterator_adaptor``.
However, we've removed the explicit inheritance, so explicit typedefs have
been added.
9.15 How to detect lvalueness?