Template Functions


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]

Posted by Juan Romero Jr. on March 19, 2001 at 22:17:52:

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:
class ApplesandOranges {
/* data members*/
public:
Tank();
template void Delete(T& todel);
};

And if the answer is no, is there an alternative method?


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]