Node:Iterator operations, Previous:Iterator tags, Up:Iterators
| advance (InputIterator& i, Distance n) | Function |
| distance (InputIterator first, InputIterator last, Distance& n) | Function |
|
Since only random access iterators provide
|
templateinline void advance(InputIterator& i, Distance n); template inline void distance(InputIterator first, InputIterator last, Distance& n);
distance must be a three argument function storing the result into a
reference instead of returning the result because the distance type
cannot be deduced from built-in iterator types such as int*.