0

I have class A and class B:

template<typename T>
struct A
{
T data;
...
};

template<typename T>
struct B
{
T data;
...
};


I can do the following:

B<A<int> > b1;
B<A<MyOtherType> > b2;


But, these lines are so ugly and I want to make special type. I want to have something like this:

myBA<int> b1;
myBA<MyOtherType> b2;


How I can do it ?
or where I can read about templates like these ?

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by Premlal
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.