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, the way static arrays do. 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 will learn
The characteristics of
Understanding the concept of size and capacity
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 in ...