A
Alfonso Morra
if I have a template class declared as ff:
template <typename T>
class A {
public:
//usual ctors and dtor cut to save space
T& get( void ) ;
void set( const T&) ;
private:
T x ;
};
How I can I store such an object in a vector like this:
std::vector< A > vector_of_a ; //<- this is pseudocode
template <typename T>
class A {
public:
//usual ctors and dtor cut to save space
T& get( void ) ;
void set( const T&) ;
private:
T x ;
};
How I can I store such an object in a vector like this:
std::vector< A > vector_of_a ; //<- this is pseudocode