2/29/2008

I study a template feature in stl

I study a template feature.

Sizeof standard function accepts Typename.

For example


template < typename TYPE >void test(void){
cout << sizeof(TYPE) << endl;
}


It's very usefull.

No comments: