Given:
开发者_运维知识库template <class T>
class Foo
{
public:
template <class U>
void bar();
};
How do I implement bar outside of the class definition while still having access to both template parameters T and U?
IIRC:
template<class T> template <class U>
void Foo<T>::bar() { ...
精彩评论