Implementing the vector class in the following code (It’s C++,not Java). You just need to implement all the methods, please donot add any new properties. You cannot use std:: functions,&& (unless being used for “AND”), or pass by reference.Your solutions must conform to the Big O notations next to eachmethod.
In the following code, I am going to match the names that STLuses so you don’t get confused in the real world. I’m skippingoperator [] for a specific reason, please don’t ask about it.
template
class Vector
{
T* mData;
int mSize;
int mCapacity;// Fortesting purposes, initialize this to 15. Whenever you allocate newmemory,
PayPal Gateway not configured
PayPal Gateway not configured