As others spotted, it is usually pointless to make you own version of a standard library container, because such containers are well written, that is they are
- Reliable
- Efficient
- Have a rigorous interface
- ...
In my opinion, the main disvantage of you own implmentation could be the lack of true reliability.
In any case if you really feel the urge of implementing yourself (a possibly specializaton of) the container, then the
C++
language gives you the same tools it offers to the library coders, namely
new
/
delete
for memory allocation and the
OOP
infrastructure. Just read the documentation if you are not familiar with.
You have to focus on memory allocation/deallocation and on the implementation of methods similar to the ones of the
std::vector
you are currently using.