May 2012
Intermediate to advanced
768 pages
14h 39m
English
Unlike static arrays, dynamic arrays supply the programmer with the flexibility of storing data without needing to know the exact volume thereof at the time of programming the 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 concept of a vector’s size and capacity
• The STL deque class
vector is a template class that supplies generic functionality of a dynamic array and features the following characteristics:
• Addition of elements to the end of the array ...
Read now
Unlock full access