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
In this lesson, you learn
• The characteristics of
• The concept of a vector’s size and capacity
• The STL
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 ...