"", . , ; , . . . , ?
, , , .
: . , .
int f(int);
double f(double);
.
. , - , -, typedefs, .. . SomeTemplatedObject<double> , SomeTemplatedObject<T> , SomeTemplatedObject double ""? , ? , , ? .
.
template<typename T>
struct Object;
template<>
struct Object<int> {
typedef int type;
};
If you feel compelled to adhere to a certain definition of OOP, then you can always simply not specialize templates without exact correspondence to their original location.
source
share