Iterator library
From cppreference.com
Iterators are a generalization of pointers that allow C++ programs to access different containers in a uniform manner. Any algorithm that accepts iterators should accept regular pointers also.
Contents |
Iterator Types
Five iterator categories are defined, according to operations defined on them:
|
|
|
|
|
|
|
|
|
|
Forward iterators satisfy the requirements of input iterators
This section is incomplete |
Iterator Operations
Defined in header
<iterator> | |
Advance an iterator by some distance (function) | |
Returns the distance between two iterators (function) | |
Increment an iterator (function) | |
Decrement an iterator (function) |
Predefined Iterators
reverse_iterator, insert_iterator, move_iterator
This section is incomplete |
Stream Iterators
istream_iterator, ostream_iterator, istreambuf_iterator
This section is incomplete |
Range Access
Defined in header
<iterator> | |
Returns an iterator to the beginning of a container (function) | |
Returns an iterator to the end of a container (function) |