官术网_书友最值得收藏!

What's new in C++17?

The complete list of C++17 features can be found at http://en.cppreference.com/w/cpp/compiler_support#C.2B.2B17_features.

To give a high-level idea, the following are some of the new C++17 features:

  • New auto rules for direct-list-initialization
  • static_assert with no messages
  • Nested namespace definition
  • Inline variables
  • Attributes for namespaces and enumerators
  • C++ exceptions specifications are part of the type system
  • Improved lambda capabilities that give performance benefits on servers
  • NUMA architecture
  • Using attribute namespaces
  • Dynamic memory allocation for over-aligned data
  • Template argument deduction for class templates
  • Non-type template parameters with auto type
  • Guaranteed copy elision
  • New specifications for inheriting constructors
  • Direct-list-initialization of enumerations
  • Stricter expression evaluation order
  • shared_mutex 
  • String conversions

Otherwise, there are many new interesting features that were added to the core C++ language: STL, lambadas, and so on. The new features give a facelift to C++, and starting from C++17, as a C++ developer, you will feel that you are working in a modern programming language, such as Java or C#.

主站蜘蛛池模板: 台东市| 乌兰浩特市| 康马县| 玉屏| 苍梧县| 武义县| 玛曲县| 福清市| 清水县| 乌拉特前旗| 雷山县| 庄河市| 章丘市| 南川市| 沐川县| 盈江县| 葵青区| 阿拉善左旗| 新化县| 松潘县| 大邑县| 花垣县| 寻甸| 邢台市| 鄂托克旗| 金华市| 华容县| 耒阳市| 惠东县| 赣榆县| 涞水县| 阿坝县| 方正县| 和田县| 桂东县| 定兴县| 新丰县| 白玉县| 祁门县| 隆林| 松潘县|