Opened 9 years ago

Last modified 9 years ago

#9679 new Bugs

documentation about bidirectional iterator

Reported by: Stefaan Verstraeten <stefaan.verstraeten@…> Owned by: jsiek
Milestone: To Be Determined Component: concept_check
Version: Boost 1.54.0 Severity: Cosmetic
Keywords: Cc:

Description

http://www.boost.org/doc/libs/1_55_0/doc/html/BidirectionalIterator.html states:

Precondition of predecrement: "i is incrementable (not off-the-end) and some dereferenceable iterator j exists such that i == ++j"

This can be interpreted that end() iterator can not be decremented, which according to other sources you can do.

http://stackoverflow.com/a/5322234/104774 references "ISO/IEC 14882:2003 C++ Standard 23.1.1/12 – Sequences"

Change History (1)

comment:1 by Daniel James, 9 years ago

Component: Documentationconcept_check
Owner: changed from Matias Capeletto to jsiek
Note: See TracTickets for help on using tickets.