trivial
DescriptionA Trivial Iterator is an object that may be dereferenced to refer to some other object. Arithmetic operations (such as increment and comparison) are not guaranteed to be supported. Refinement ofAssignable, EqualityComparable, DefaultConstructible Associated types
Notation
DefinitionsA type that is a model of Trivial Iterator may be mutable, meaning that the values referred to by objects of that type may be modified, or constant, meaning that they may not. For example, A Trivial Iterator may have a singular value, meaning that the results of most operations, including comparison for equality, are undefined. The only operation that a is guaranteed to be supported is assigning a nonsingular iterator to a singular iterator. A Trivial Iterator may have a dereferenceable value, meaning that dereferencing it yields a well-defined value. Dereferenceable iterators are always nonsingular, but the converse is not true. For example, a null pointer is nonsingular (there are well defined operations involving null pointers) even thought it is not dereferenceable. Invalidating a dereferenceable iterator means performing an operation after which the iterator might be nondereferenceable or singular. For example, if Valid expressionsIn addition to the expressions defined in Assignable, EqualityComparable, and DefaultConstructible, the following expressions must be valid.
Expression semantics
Complexity guaranteesThe complexity of operations on trivial iterators is guaranteed to be amortized constant time. Invariants
Models
Notes[1] The requirement for the return type of [2] Defining See alsoInputIterator, OutputIterator, ForwardIterator, BidirectionalIterator, RandomAccessIterator, Iterators |