For example, I have a class template
template<size_t N>
struct Foo
{
void f();
... // other parts
};
And for different N
, the method Foo::f
has a different implementation, other parts keep same. How to specialize it, for example like N = 3
?
Aucun commentaire:
Enregistrer un commentaire