C++11新特性不完全测试

C++11新特性不完全测试

测试环境: 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测试工程

你可能感兴趣的:(C++11新特性不完全测试)