Sequence

A sequence is an ordered but non-indexed collection of objects. Operations add, remove, and get objects from the ends of a sequence or at a given Position. The container add operation adds to the right end and the remove operation splices out the element.

Positions generalize the idea of pointer into a sequence. A position can be obtained at the start or end of a sequence, or for the current position of an iterator. An element can be added at a position, pushing the elements to the right or left to make room. The element at a position can be retrieved or removed. Finally, a sequence can return the next or previous position from a given position.

Sequence iterators offer functionality in addition to the basic iterator functionality.

Implementations: Member functions: