Sizeof standard function accepts Typename.
For example
template < typename TYPE >void test(void){
cout << sizeof(TYPE) << endl;
}
It's very usefull.
This blog's themes are Computer Graphic(Especially 3DCG) , Game Development, Programming and so on. Sometimes, other themes written.
 
No comments:
Post a Comment