C++ STL iterator (iterator)

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 .

Guess you like

Origin blog.csdn.net/qq_43641765/article/details/111655605