Question: . . OOP LAB #8 Based on what you have studied on vectors, create a C++ Template class called vector that have the following: Constructors

 . . OOP LAB #8 Based on what you have studied

. . OOP LAB #8 Based on what you have studied on vectors, create a C++ Template class called vector that have the following: Constructors and destructors. Copy operator. Empty the vector. Returns number of items in the vector. Returns whether or not the vector is empty. Returns how many items can be stored without reallocating the backing store sets the capacity. - Set the size of the vector. Items are appended with the default constructor, or removed from the end as needed. Access to an item at a given index alternate name for operator []. Insert one or several items. Pop an item (removes the last element). . Pushes an item initialized with its default constructor. Replace an item with a new one. Remove one item

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!