c++ typeid code example
Example 1: typeid().name() in c++
int is: int
i is: int
pi is: int *
*pi is: int
Example 2: type id c++
decltype(0xdeedbeef) number = 0; // number is of type int!
decltype(someArray[0]) element = someArray[0];
int is: int
i is: int
pi is: int *
*pi is: int
decltype(0xdeedbeef) number = 0; // number is of type int!
decltype(someArray[0]) element = someArray[0];