1. We are going to finish the Mvector class, and begin todevelop and implement the template class Mlist developed in class.FOLLOW THE STEPS BELOW.
-First add iterators to the class Mvector. Write the functionsand test them with a main program. (THE ITERFACE IS BELOW)
template<typename T>class Mvector{ public: typedef T* iterator; Mvector(); Mvector(unsigned int n); void pushback(T x); void popback(); void clear(); void insert(int i, T x); void erase(int i); T operator[] (unsigned int i); void operator– (int); int size(); iterator begin() {return v;} iterator end() {return v+vsize;} void insert(iterator ix, T x); void erase(iterator ix); private: int vsize; int vcap; T
PayPal Gateway not configured
PayPal Gateway not configured