Template specialization of a single method from templated class with multiple template parameters
问题 I'm basically trying to do what was discussed in Template specialization of a single method from a templated class except that my TClass has multiple template Parameters like this: template < class KEY, class TYPE > class TClass { public: : void doSomething(KEY * v); : }; template < class KEY, class TYPE > void TClass<KEY, TYPE>::doSomething(KEY * v) { // do something } This works so far, but how do I define a specialized implementation for one template Parameter? I tried adding this: