G
Ganesh
I have a question regarding template specialisation.
Assume I have a generic template class
template <class S, class T>
class A{
void f() {
// Some code here
}
}
I want to specialise the function f() for say A<int, S>.
Do I need to specialise the entire class.
If else how do i specialise just this fn/?
Assume I have a generic template class
template <class S, class T>
class A{
void f() {
// Some code here
}
}
I want to specialise the function f() for say A<int, S>.
Do I need to specialise the entire class.
If else how do i specialise just this fn/?