測試環境: 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 閱讀(3540)
評論(4) 編輯 收藏 引用 所屬分類:
C++