Hi,
How do i derive from the vector class?
I wrote this but it is not correct for sure.
thanksCode:template <class T, class Allocator = allocator<T> > class DataBlock
: vector <T,Allocator > {
//some more functions
};
Printable View
Hi,
How do i derive from the vector class?
I wrote this but it is not correct for sure.
thanksCode:template <class T, class Allocator = allocator<T> > class DataBlock
: vector <T,Allocator > {
//some more functions
};
Ok I found it.
sorry for the post
You don't, actually. vector is not designed to be derived from. If you want to add functionality, write free functions.