![]() |
Home | Libraries | People | FAQ | More |
A Bidirectional Sequence is a Forward Sequence whose iterators model Bidirectional Iterator.
Notation
s
S
o
e
In 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::pair
boost::array
vector
iterator_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 |