测试环境: VS11(Visual Studio 11 Beta)

测试Features:

    Lambda

    Auto, decltype

    *Uniform initialization

    Explicitly defaulted and deleted special member functions

    Null pointer constant

    Static assertions

    General-purpose smart pointers

    Range-based for-loop

    Strongly typed enumerations

    Rvalue references and move constructors

    Explicit overrides and final

    New container type and algorithm in STL

    Function and bind

    *New string literals

    Tuple types

    Multithreading memory model

    Extensible random number facility

    Regular expressions

: *号为VS11未支持部分

 

参考文档:

         C++11 FAQ: http://chenlq.net/cpp11-faq-chs

         C++11 Wiki: http://en.wikipedia.org/wiki/C%2B%2B11

        C++11新特性:http://baiy.cn/doc/cpp/comments_of_cxx0x.htm

 

C++11目标:

    基本目标

     支持数据抽象

     支持面向对象的编程

     支持泛型编程

    简单方便

    Lambda, auto, 统一初始化,智能指针,Regex, Random,

    function and bind hash_map…

    高效

右值引用和Move语义, 并发(多线程库)…

 

 等有空了再细说各个新特性,总的来说,C++11改动还是挺大的,C++ 之父也说要作为一门新语言来学。

测试代码:C++11测试工程

posted on 2012-06-06 17:34 Richard Wei 阅读(3437) 评论(4)  编辑 收藏 引用 所属分类: C++

FeedBack:
# re: C++11新特性不完全测试
2012-06-07 08:15 | 周星星
VS2011?是VS11吧,也有人叫它VS2012  回复  更多评论
  
# re: C++11新特性不完全测试
2012-06-07 08:35 | Richard Wei
@周星星
是的, 不好意思,写错了,应该是VS11(Visual Studio 11 Beta)
多谢指正。  回复  更多评论
  
# re: C++11新特性不完全测试
2012-06-13 00:27 | 华夏之火
夜盼日盼,盼C++11横行天下,到时用c++来写代码就爽了,最起码,函数式的编程,在c++中,不会显得那么丑陋。要是c++11不丢弃concept,那么,我会考虑全信心投入template中。  回复  更多评论
  
# re: C++11新特性不完全测试
2012-06-13 10:39 | Richard Wei
@华夏之火
恩,大家本来对concept期望很大, 如果真的有concept, C++11就完全是一门新语言了。  回复  更多评论
  

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理