This is an internal header file, included by other library headers. More...
Functions | |
namespace std | _GLIBCXX_VISIBILITY (default) |
This is an internal header file, included by other library headers.
Do not attempt to use it directly. {iterator}
This file contains all of the general iterator-related utility functions, such as distance() and advance().
namespace std _GLIBCXX_VISIBILITY | ( | default | ) |
A generalization of pointer arithmetic.
__first | An input iterator. |
__last | An input iterator. |
Returns n
such that __first + n == __last. This requires that __last
must be reachable from __first
. Note that n
may be negative.
For random access iterators, this uses their +
and -
operations and are constant time. For other iterator classes they are linear time.
A generalization of pointer arithmetic.
__i | An input iterator. |
__n | The delta by which to change __i . |
This increments i
by n
. For bidirectional and random access iterators, __n
may be negative, in which case __i
is decremented.
For random access iterators, this uses their +
and -
operations and are constant time. For other iterator classes they are linear time.
References __glibcxx_function_requires, and _GLIBCXX_DEBUG_ASSERT.