heya,
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?
i.e
is this defining the actual size() variable for all objects passed into the template?Code:template<class T> int whatever<T>::size(void) { return fileSize; }
similarly, if we have something like
when will the template's actual constructor be called?Code:whatever<T>::whatever(string)
tia
-twans



LinkBack URL
About LinkBacks


