Traversing the elements stored in the container , in most cases will choose "iterator (iterator)" to achieve.
An iterator is very similar to a pointer in C++ . It can be any type you need. It can point to an element in the container through the iterator. If necessary, you can also read/write the element .