Vector of Template in Template
Given:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
#include <string>
template <class T>
class basic_container{
private:
string name;
T val;
public:
void set_name(string);
void set_val(T);
string get_name();
T get_val();
};
| |
is this possible:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
#include "../basic_container/basic_container.hpp"
template <class T>
class container_vector{
private:
string name;
vector<basic_container<T>> vals;
public:
void set_name(string);
void set_val(string, T);
string get_name();
T get_val(string);
};
| |
If not, what do I need to do to achieve my goal?
Topic archived. No new replies allowed.