Create and Delete
Below, we examine the different methods available for constructing and destroying containers with particular parameters.
We'll cover the following...
We'll cover the following...
We can construct each container using a multitude of constructors. To delete all elements of a container cont
, use cont.clear()
. It makes no difference if you create and delete a container or if we add and remove elements. Each time the container takes care of memory management.
The table shows the constructors and destructors of a container. All these functions can be used with ...