展开查看详情
1. C++11 新特性
李长河
changhe.lw@gmail.com
2. C++11
• 1. Declarations: auto, decltype,using =,nullptr
• 2. Smart pointers
• 3. Class changes
• 4. Range-based for loop
• 5. The rvalue reference
• 6. Move semantics
• 7. Lambda functions
4. C++11
• 2. decltype
• 3. using=
5. C++11
• smart pointers
7. C++11
• rvalue reference
8. C++11
• range-based for loop
12. C++11
•lambda exp.
[captures](parameters) -> returnType { Statements; }
14. More C++ 11 Features
•并行程序设计
thread_local, thread, mutex,condition_variable, future
•可变参数模板
template<typename T, typename... Args>
void foo(cosnt T& t, const Args& ... rest );
•新的 STL 模板库: tuple 类模板
•随机数库
Visual Studio Community 2015:
https://www.visualstudio.com/products/visual-studio-community-vs