VS2010支持C++11特性 -- 简记

VS2010支持C++11特性的部分记录:

语言特性:

1. 右值引用
2. static_assert
3. auto
4. decltype 类型提取
5. 结尾返回类型,即函数返回类型声明后置,类似于auto func(int i, int j) -> int;
6. Lambdas表达式
7. 双右尖括号>>
8. nullptr
9. 内存对齐其字节说明和获取,alignas、alignof ,此与sizeof区别,前者为对齐字节数,后者为补齐后的字节数,且前者影响后者
10. override、final关键字
11. <exception> 中的exception_ptr

C++标准库:

0. <algorithm>
1. <bitset>
2. <codecvt>
3. <complex>
4. <exception>
5. <functional>
6. <initializer_list>
7. <iterator>
8. <limits>
9. <locale>
10. <memory>
11. <new>
12. <numeric>
13. <ratio>
14. <regex>
15. <stdexcept>
16. <string>
17. <system_error>
18. <tuple>
19. <typeindex>
20. <typeinfo>
21. <type_traits>
22. <utility>
23. <valarray>
24. <array>
25. <deque>
26. <forward_list>
27. <list>
28. <map>
29. <queue>
30. <set>
31. <stack>
32. <unordered_map>
33. <unordered_set>
34. <vector>
35. <fstream>
36. <iomanip>
37. <ios>
38. <iosfwd>
39. <istream>
40. <ostream>
41. <sstream>
42. <streambuf>

C标准库:

1. <cassert>
2. <cctype>
3. <cerrno>
4. <cfloat>
5. <ciso646>
6. <climits>
7. <clocale>
8. <cmath>
9. <csetjmp>
10. <csignal>
11. <cstdarg>
12. <cstddef>
13. <cstdint>
14. <cstdio>
15. <cstdlib>
16. <cstring>
17. <ctime>
18. <cwchar>
19. <cwctype>

不支持库:

//#include <chrono>
//#include <ratio>
//#include <atomic>
//#include <condition_variable>
//#include <future>
//#include <mutex>
//#include <thread>
//#include <cfenv>
//#include <cinttypes>
//#include <cstdbool>
//#include <ctgmath>
//#include <cuchar>

猜你喜欢

转载自www.cnblogs.com/haomiao/p/11646823.html