Hi,
Suppose i have defined the following templated class:
When i define a function of another class that returns a myclass item should i define the mytype type or not?Code:template <class mytype> struct myclass{ mytype id; string name;};
In other words which of the following is correct?
orCode:myclass AnotherClass::function(){}
Thanks..Code:myclass <int> AnotherClass::function(){}