VC9 C++ 参考语言扩展

发布于 2024-08-16 23:05:48 字数 399 浏览 0 评论 0原文

是否有关于 VC9 (SP1) 编译器具有的所有 C++ 扩展的参考?

例子是 __declspec 的东西,可变参数宏和编译器内在函数,尽管还有一些不太引人注目的东西,比如能够在类范围内进行模板函数专门化,而显然标准说它们不能(上一个问题)。

这包括 C99、TR1、C++0X 等受支持的任何部分。有关 VC10 的信息也很有用,我知道它有 C++0X 的某些部分,但还有什么?

我在 MSDN 上找到了一些零散的信息,但没有找到实际的列表,除非我知道扩展的名称,或者至少知道有关它的足够信息(即它的作用),否则这是不可能的。

Is there a reference somewhere concerning all the C++ extensions the VC9 (SP1) compiler has?

Examples would be the __declspec stuff, variadic macros and the compiler intrinsics, although there are also some less noticeable ones like being able to have template function specialisations at class scope, whereas apparently the standard says they cant be (Previous Question).

This includes whatever parts of C99, TR1, C++0X, etc. which are supported. Information regarding VC10 would b e useful as well, I know it has some parts of C++0X, but what else?

I've found bits and pieces on MSDN, but not an actual list which makes it impossible unless I know the name of the extension, or at least enough information regarding it (i.e. what it does).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

悍妇囚夫 2024-08-23 23:05:48

Visual Studio 2010 Beta2 新语言功能记录在此处。您可以查看 C 的语言参考部分以及 C++

msdn中有VS2008的等效节点,但我更熟悉VS2010。

作为参考,VS2010 中新的 C++0x 语言功能包括:

  • auto keyowrd
  • lambda 表达式
  • rvalue 引用
  • static_assert 声明
  • decltype 运算符
  • nullptr 和 __nullptr 关键字

VS 2010 中还添加了多个新库,但您需要检查 文档 了解具体信息,但示例是:

  • 算法已更新了 all_of、any_of、none_of、
  • exception_ptr 和 rethrow_exception 现在都包含在内。
  • 更新右值引用的 stl
  • 并行模式库和异步代理库以及并发运行时

-Rick

Visual Studio 2010 Beta2 new language features are documented here. You can see the language reference sections for C and C++ as well.

There are equivalent nodes in msdn for VS2008, but I'm more familiar with VS2010.

For reference the new C++0x language features in VS2010 are:

  • auto keyowrd
  • lambda expressions
  • rvalue references
  • static_assert declaration
  • decltype operator
  • nullptr and __nullptr keywords

There are multiple new library additions in VS 2010 as well, but you'll need to check the documentation for specifics, but examples are:

  • algorithm has been updated for all_of, any_of, none_of
  • exception_ptr and rethrow_exception are both included now.
  • updates to the stl for rvalue references
  • Parallel Pattern Library and Asynchronous Agents Library and Concurrency Runtime

-Rick

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文