ForwardContainer
DescriptionA Forward Container is a Container whose elements are arranged in a definite order: the ordering will not change spontaneously from iteration to iteration. The requirement of a definite ordering allows the definition of element-by-element equality (if the container's element type is EqualityComparable) and of lexicographical ordering (if the container's element type is LessThanComparable). Iterators into a Forward Container satisfy the ForwardIterator requirements; consequently, Forward Containers support multipass algorithms and allow multiple iterators into the same container to be active at the same time. Refinement ofContainer, EqualityComparable, LessThanComparable Associated typesNo additional types beyond those defined in Container. However, the requirements for the iterator type are strengthened: the iterator type must be a model of ForwardIterator. Notation
DefinitionsValid expressionsIn addition to the expressions defined in Container, EqualityComparable, and LessThanComparable, the following expressions must be valid.
Expression semanticsSemantics of an expression is defined only where it is not defined in Container, EqualityComparable, or LessThanComparable, or where there is additional information.
Complexity guaranteesThe equality and inequality operations are linear in the container's size. Invariants
ModelsNotesSee alsoThe Iterators, ForwardIterator, Sequence |