devxlogo

Defining a Template Member Function

Defining a Template Member Function

You can define a template member function in an ordinary class as follows:

 class C{public:  template int func(T* p);};template  int C::func(T* p){  return 0;}

Note that Visual C++ doesn

devx-admin

Share the Post: