- 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.
- 極簡(jiǎn)算法史:從數(shù)學(xué)到機(jī)器的故事
- 黑客攻防從入門(mén)到精通(實(shí)戰(zhàn)秘笈版)
- 算法精粹:經(jīng)典計(jì)算機(jī)科學(xué)問(wèn)題的Python實(shí)現(xiàn)
- Full-Stack Vue.js 2 and Laravel 5
- C語(yǔ)言程序設(shè)計(jì)
- Windows Server 2016 Automation with PowerShell Cookbook(Second Edition)
- Teaching with Google Classroom
- C語(yǔ)言程序設(shè)計(jì)
- Learning OpenStack Networking(Neutron)(Second Edition)
- Visual Basic程序設(shè)計(jì)上機(jī)實(shí)驗(yàn)教程
- 響應(yīng)式架構(gòu):消息模式Actor實(shí)現(xiàn)與Scala、Akka應(yīng)用集成
- Mastering C++ Multithreading
- 區(qū)塊鏈項(xiàng)目開(kāi)發(fā)指南
- Mockito Essentials
- 你真的會(huì)寫(xiě)代碼嗎