im a little confused about an issue with templates..
i understand templates can be used to pass multiple objects (e.g related by inheritance) and one may call template<class T>'s methods etc..
however, if we have templates with member functions, constructors and member variables, where do these come into play?
is this defining the actual size() variable for all objects passed into the template?Code:
similarly, if we have something like
when will the template's actual constructor be called?Code: