开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜