235. No specification of default ctor for reverse_iterator

Section: 24.5.1.2 [reverse.iterator] Status: CD1 Submitter: Dietmar Kühl Opened: 2000-04-24 Last modified: 2016-01-28

Priority: Not Prioritized

View all other issues in [reverse.iterator].

View all issues with CD1 status.

Discussion:

The declaration of reverse_iterator lists a default constructor. However, no specification is given what this constructor should do.

Proposed resolution:

In section 24.5.1.4 [reverse.iter.cons] add the following paragraph:

reverse_iterator()

Default initializes current. Iterator operations applied to the resulting iterator have defined behavior if and only if the corresponding operations are defined on a default constructed iterator of type Iterator.

[pre-Copenhagen: Dietmar provide wording for proposed resolution.]