August 2012
Intermediate to advanced
976 pages
30h 17m
English
Incrementing an iterator moves the iterator one element at a time. All the library containers have iterators that support increment. Similarly, we can use == and != to compare two valid iterators (§ 3.4, p. 106) into any of the library container types.
Iterators for string and vector support additional operations that can move an iterator multiple elements at a time. They also support all the relational operators. These operations, which are often referred to as iterator arithmetic, are described in Table 3.7.
Table 3.7. Operations Supported by vector and string Iterators
We can ...
Read now
Unlock full access