S
shuisheng
Dear All,
I am wondering may I do the follows or similar ones (if so, how to do
it) in C++.
Assume a template class
template<class _T, int _n>
class Array{};
1) typedef Array Point;
2) typedef Array<double, n> Point<n>;
3) #define Point<n> Array<double, n>
4) #define Point(n) Array<double, n>
Thanks!
Shuisheng
I am wondering may I do the follows or similar ones (if so, how to do
it) in C++.
Assume a template class
template<class _T, int _n>
class Array{};
1) typedef Array Point;
2) typedef Array<double, n> Point<n>;
3) #define Point<n> Array<double, n>
4) #define Point(n) Array<double, n>
Thanks!
Shuisheng