Contents
Section 3.1 Namespace using
Declarations
Section 3.2 Library string
Type
Section 3.3 Library vector
Type
Section 3.4 Introducing Iterators
Section 3.6 Multidimensional Arrays
In addition to the built-in types covered in Chapter 2, C++ defines a rich library of abstract data types. Among the most important library types are string
, which supports variable-length character strings, and vector
, which defines variable-size collections. Associated with string
and vector
are companion types known as iterators, which are used to access the characters in a string
or the elements in a vector
.
The string
and vector
types defined by the library are abstractions of the more primitive built-in array ...
Get C++ Primer, Fifth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.