开发者

C++ typeof operator

开发者 https://www.devze.com 2022-12-26 20:25 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消