Name: Anonymous 2012-01-19 20:40
Suppose the following:
Since
That is:
- Is
- Is
Thank you, /prog/riders.
struct C {
void method() {}
};
template<typename T>
struct D {
void method1() {}
void method2();
};
template<typename T> void D<T>::method2() {}Since
C::method() is defined inside the class, it is defined as though as it were declared inline. Does the same apply to templates?That is:
- Is
D<T>::method1() inline?- Is
D<T>::method2() inline?Thank you, /prog/riders.