Posted by Daniel Longest on March 20, 2001 at 00:42:28:
In Reply to: Template Functions posted by Juan Romero Jr. on March 19, 2001 at 22:17:52:
You would declare a template member function just like you template the class, say template Daniel : We talked a little about template functions, but I had a question about their use- : Can they only be used as non-member functions? Or is there a way to use them inside a class (especially a non-templated class) : Example: : And if the answer is no, is there an alternative method?
: class ApplesandOranges {
: /* data members*/
: public:
: Tank();
: template
: };