It is the basics of an implementation of a vector.
I take it you are unfamiliar with templates. Well, should you wish to implement a vector or list or anything else, then you should learn template basics. Nothing advanced, just basics.
And yes, it would work just like a normal vector in that sense. It's missing some stuff like operator , but otherwise, sure.