What’s iterator?
- template class
- Generic Pointer
Getting an iterator
1 auto itr=container.cbegin();2 auto itr=container.cend();
Iterator methods
1 ++itr2 *itr3 itr1==itr24 itr1!=itr2
const _iterator
1 auto itr=container.cbegin() const2 auto itr=container.cend() const
Author: Cat