// This is the first .h file you will edit // We have provided a skeleton for you, // but you must finish it as described in the spec. // Also remove these comments here and add your own, as well as on the members. // TODO: remove this comment header #ifndef MY_VECTOR_H #define MY_VECTOR_H #include "MyException.h" template class MyVector { public: MyVector(); ~MyVector(); MyVector(const MyVector& other); MyVector& operator =(const MyVector& other); void push_back(const T&); void pop_back(); T& operator[](unsigned i); const T& operator[](unsigned i)const; bool empty()const; T* begin(); T* end(); void clear(); unsigned size()const; private: // private members? }; template MyVector::MyVector(){ // TODO: replace the code below with your code for this member MYEXCEPTION("unimplemented method"); } template MyVector::~MyVector(){ // TODO: replace the code below with your code for this member MYEXCEPTION("unimplemented method"); } template MyVector::MyVector(const MyVector& other){ // TODO: replace the code below with your code for this member MYEXCEPTION("unimplemented method"); } template MyVector& MyVector::operator =(const MyVector& other){ // TODO: replace the code below with your code for this member MYEXCEPTION("unimplemented method"); } template void MyVector::push_back(const T& e){ // TODO: replace the code below with your code for this member MYEXCEPTION("unimplemented method"); } template void MyVector::pop_back(){ // TODO: replace the code below with your code for this member MYEXCEPTION("unimplemented method"); } template T& MyVector::operator[](unsigned i){ // TODO: replace the code below with your code for this member MYEXCEPTION("unimplemented method"); } template const T& MyVector::operator[](unsigned i)const{ // TODO: replace the code below with your code for this member MYEXCEPTION("unimplemented method"); } template bool MyVector::empty()const{ // TODO: replace the code below with your code for this member MYEXCEPTION("unimplemented method"); } template void MyVector::clear(){ // TODO: replace the code below with your code for this member MYEXCEPTION("unimplemented method"); } template unsigned MyVector::size()const{ // TODO: replace the code below with your code for this member MYEXCEPTION("unimplemented method"); } template T* MyVector::begin(){ // TODO: replace the code below with your code for this member MYEXCEPTION("unimplemented method"); } template T* MyVector::end(){ // TODO: replace the code below with your code for this member MYEXCEPTION("unimplemented method"); } #endif // MY_VECTOR_H