- Mastering C++ Programming
- Jeganathan Swaminathan
- 167字
- 2021-07-02 18:28:47
Summary
In this chapter, you got to know interesting new features introduced in C++17. You learned the super simple C++17 nested namespace syntax. You also learned datatype detection with a braced initializer list and the new rule imposed in the C++17 standard.
You also noticed that static_assert can be done without assert failure messages. Also, using std::invoke(), you can now invoke global functions, function pointers, member functions, and static class member functions. And, using structured binding, you could now initialize multiple variables with a return value.
You also learned that the if and switch statements can have a local-scoped variable right before the if condition and switch statements. You learned about auto type detection of class templates. Lastly, you used inline variables.
There are many more C++17 features, but this chapter attempts to cover the most useful features that might be required for most of the developers. In the next chapter, you will be learning about the Standard Template Library.
- Learning Microsoft Windows Server 2012 Dynamic Access Control
- 深入核心的敏捷開發:ThoughtWorks五大關鍵實踐
- 深度實踐OpenStack:基于Python的OpenStack組件開發
- Kubernetes實戰
- Mastering Entity Framework
- Learn Swift by Building Applications
- C語言程序設計案例精粹
- 零基礎學Python數據分析(升級版)
- 零基礎學Python網絡爬蟲案例實戰全流程詳解(高級進階篇)
- 學習正則表達式
- 寫給程序員的Python教程
- Python自然語言理解:自然語言理解系統開發與應用實戰
- Instant jQuery Boilerplate for Plugins
- C陷阱與缺陷
- Learning Python Data Visualization