- Mastering C++ Programming
- Jeganathan Swaminathan
- 162字
- 2021-07-02 18:28:46
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#.
推薦閱讀
- Django+Vue.js商城項目實戰
- 基于粒計算模型的圖像處理
- Software Defined Networking with OpenFlow
- Vue.js前端開發基礎與項目實戰
- Python從入門到精通(精粹版)
- 算法大爆炸:面試通關步步為營
- Java軟件開發基礎
- 單片機應用與調試項目教程(C語言版)
- NetBeans IDE 8 Cookbook
- C#開發案例精粹
- 基于ARM Cortex-M4F內核的MSP432 MCU開發實踐
- Scratch趣味編程:陪孩子像搭積木一樣學編程
- Python 3.7從入門到精通(視頻教學版)
- Hands-On Kubernetes on Windows
- Arduino計算機視覺編程