In addition to the primitive types covered in Chapter 2, C++ defines a rich library of abstract data types. Among the most important library types are
vector, which define variable-sized character strings and collections, respectively. Associated with
vector are companion types known as iterators, which are used to access the characters in a
string or the elements in a
vector. These library types are abstractions of more primitive types—arrays and pointers—that are ...