February 2022
Beginner
848 pages
22h 40m
English
Unlike static arrays, dynamic arrays give a programmer flexibility in terms of storing data without needing to know the exact volume of the data when programming an application. Naturally, this is a frequently needed requirement, and the Standard Template Library (STL) supplies a ready-to-use solution in the form of the std::vector class.
In this lesson, you learn
■ The characteristics of std::vector
■ Typical vector operations
■ The concepts of a vector’s size and capacity
■ The STL deque class
std::vectorvector is a template class that supplies the generic functionality of a dynamic array and features the following characteristics:
■ You can add elements to the end of ...
Read now
Unlock full access