<<<<<<< .working ======= >>>>>>> .merge-right.r57125
Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Random Access Iterator <<<<<<< .working

Description
=======
Description
>>>>>>> .merge-right.r57125

A Random Access Iterator traverses a Sequence moving in either direction, permitting efficient arbitrary distance movements back and forward through the sequence.

Notation

i, j

Random Access Iterators

I, J

Random Access Iterator types

M

An MPL integral constant

N

An integral constant

<<<<<<< .working
Refinement =======
Refinement >>>>>>> .merge-right.r57125 of

Bidirectional Iterator

<<<<<<< .working
Expression =======
Expression >>>>>>> .merge-right.r57125 requirements

In addition to the requirements defined in Bidirectional Iterator, the following expressions must be valid:

Expression

Return type

Runtime Complexity

next(i)

Random Access Iterator

Constant

prior(i)

Random Access Iterator

Constant

advance_c<N>(i)

Random Access Iterator

Constant

advance<M>(i)

Random Access Iterator

Constant

<<<<<<< .working
Meta =======
Meta >>>>>>> .merge-right.r57125 Expressions

Expression

Compile Time Complexity

result_of::advance_c<I, N>::type

Amortized constant time

result_of::advance<I, M>::type

Amortized constant time

result_of::distance<I ,J>::type

Amortized constant time

<<<<<<< .working
Models

PrevUpHomeNext