![]() |
Home | Libraries | People | FAQ | More |
A Bidirectional Sequence is a Forward Sequence whose iterators model Bidirectional Iterator.
Notation
sSoeIn addition to the requirements defined in Forward Sequence, for any Bidirectional Sequence the following must be met:
| Expression | Return type | Type Requirements | Runtime Complexity |
|---|---|---|---|
|
Bidirectional Iterator | Constant | |
|
Bidirectional Iterator | Constant | |
|
Any type | Constant | |
|
Any type |
s
is mutable and e = o,
where e is the first
element in the sequence, is a valid expression. |
Constant |
| Expression | Compile Time Complexity |
|---|---|
|
Amortized constant time |
|
Amortized constant time |
|
Amortized constant time |
The semantics of an expression are defined only where they differ from, or are not defined in Forward Sequence.
std::pairboost::arrayvectoriterator_range
(where adapted sequence is a Bidirectional Sequence)
transform_view
(where adapted sequence is a Bidirectional Sequence)
reverse_view| Copyright © 2001-2005 Joel de Guzman, Dan Marsden |