long question; short answer <templates>
i have 2 class that are templates. i want a vector of one class to
be a composite member of another class. the will be vector<firstclass>
let me explain in code...without templates the classes would look like this...
...by the way....i'm having trouble with the declaration part;
Code:
class A
{
int notimportant;
};
class B
{
vector<A> somevectoroftypeA;
};
now with templates....
Code:
template <class T> class A
{
T notimportant;
};
template <class T> class B
{
//cannot figure out how to declare this
vector<A<T>> variablename; //?????????????
};
please help
[/code]