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