A Forward Sequence is a Sequence whose elements are arranged in a definite
order. The ordering is guaranteed not to change 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 Equality Comparable) and of
lexicographical ordering (if the container's element type is LessThan Comparable).
Notation
- s
-
A Forward Sequence
- S
-
A Forward Sequence type
- o
-
An arbitrary object
- e
-
A Sequence element
For any Forward Sequence the following expressions must be valid:
For any Forward Sequence s the following invariants always hold:
-
[begin(s), end(s)) is always a valid range.
-
An Algorithm that iterates through
the range [begin(s), end(s)) will pass through every element of
s exactly once.
-
begin(s)
is identical to end(s))
if and only if s is empty.
-
Two different iterations through s
will access its elements in the same order.