![]() |
Home | Libraries | People | FAQ | More |
A Random Access Iterator traverses a Sequence moving in either direction, permitting efficient arbitrary distance movements back and forward through the sequence.
Notation
i,
jI,
JMNIn addition to the requirements defined in Bidirectional Iterator, the following expressions must be valid:
|
Expression |
Return type |
Runtime Complexity |
|---|---|---|
|
|
Constant |
|
|
|
Constant |
|
|
|
Constant |
|
|
|
Constant |
|
Expression |
Compile Time Complexity |
|---|---|
|
|
Amortized constant time |
|
|
Amortized constant time |
|
|
Amortized constant time |
vector
iterator
std::pair
iterator
boost::array
iterator
iterator_range
iterator (where adapted sequence is a Random
Access Sequence)
transform_view
iterator (where adapted sequence is a Random
Access Sequence)
reverse_view
iterator (where adapted sequence is a Random
Access Sequence)
| Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias Schwinger |