very short question.
Is C++ typeof operator standard? de facto standard? which compilers do not provided it (besides Microsoft C++)?
typeof
The typeof operator is nonstandard, but the upcoming C++ standard will have decltype.
decltype
For example: int a = 12; cout << typeof(a) << endl; Expected output: int
I am wondering what the difference is between typeid and typeof in C++. Here's what I know: typeid is mentioned in the documentation for type_info which is defined in the C++ header file typeinfo. typeof is defined in the …
In C++, how does one find the type of a variable?