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

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.

主站蜘蛛池模板: 大足县| 将乐县| 卢龙县| 富平县| 麻阳| 平昌县| 朝阳县| 襄汾县| 迁安市| 潮安县| 南宁市| 灵台县| 江山市| 锡林浩特市| 东方市| 赞皇县| 宽城| 来凤县| 平罗县| 绥德县| 闽侯县| 望城县| 祁东县| 陆良县| 宁化县| 青冈县| 宝清县| 彭山县| 江阴市| 霍邱县| 汤原县| 当阳市| 仁布县| 南澳县| 台北市| 宜川县| 金寨县| 乐东| 湖南省| 灵川县| 措勤县|