#include using namespace std ; //-------------------------------------------------------- //Normal pointer template void f1(T* param) { cout << "param:" << param << " " << typeid(T).name() << " " << typeid(param).name() << endl ; //*param = 100 ; } //-------------------------------------------------------- int main() { int x1 = 27; // x is an int const int cx = x1; // cx is a const int const int& rx = x1; f1( &x1 ) ; //T is an int. param is an int* cout << x1 << endl ; f1( &cx ) ; //T is a const int. param is a const int* f1( &rx ) ; //T is a const int. param is a const int* return 0 ; } //--------------------------------------------------------