C++ typeof operator
very short q开发者_高级运维uestion.
Is C++ typeof
operator standard? de facto standard?
which compilers do not provided it (besides Microsoft C++)?
The typeof
operator is nonstandard, but the upcoming C++ standard will have decltype
.
As noted, C++0x has decltype
. You can take a look at Boost.Typeof in the meantime.
There is no typeof operator in standard C++.
The typeof is an extension provided by GNU compiler primarily for C language: link to official gnu gcc page. So it isn`t a standard operator.
精彩评论