I am matching a template, and specializing based of a template, rather
than a single class.
The codes are like,
template<templa te<typename T,typename Alloc = std::allocator< T>
class pix{
};
template<>
class pix<vector>{
};
The matching works perfectly.
Now how will i get the template parameters in the specialized class?
I want to do things like,
template<>
class pix<std::vector >{
private:
std::vector<T>* v_;
};
From where will I get T & Alloc fro which it is a match?
Thanks
abir
than a single class.
The codes are like,
template<templa te<typename T,typename Alloc = std::allocator< T>
>class C>
};
template<>
class pix<vector>{
};
The matching works perfectly.
Now how will i get the template parameters in the specialized class?
I want to do things like,
template<>
class pix<std::vector >{
private:
std::vector<T>* v_;
};
From where will I get T & Alloc fro which it is a match?
Thanks
abir
Comment