Iterators
The collection classes in the Essential Math Module provide iterators that are compatible with the Standard C++ Library Module. An iterator is simply a pointer-like object used to cycle through all the elements stored in a collection class. Each collection class in the Essential Math Module can generate random access iterators. The collection classes and their generated iterator classes are listed in Table 1:
As you can see, iterators come in two varieties: iterator and const_iterator. The distinction is that a dereferenced iterator returns a pointer, while a const_iterator returns a const pointer. This means that the value referenced by a const_iterator may not be altered. Iterator classes are described in detail in the SourcePro API Reference Guide.