I'd like to perform a template specialization for only one index of a class. For example, in the following code I want to create a specialization whenever the first class is int, regardless of what the second class is. Is there a way to implement this?
template <class K, class V>
class myclass {
public:
void myfunc(K,V);
};
template <class K, class V>
myclass<K,V>::myfunc(K key, V value) {
...
}
template< ,class V>
myclass<int,V>::myfunc(int key, V value) {
...
}