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

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.

主站蜘蛛池模板: 永昌县| 唐山市| 长兴县| 巴南区| 启东市| 阳信县| 洞头县| 弋阳县| 彭泽县| 清新县| 阳泉市| 隆化县| 长兴县| 通渭县| 体育| 南昌县| 巴林左旗| 五原县| 海兴县| 固原市| 青神县| 漳平市| 大理市| 巴彦淖尔市| 安新县| 贵州省| 遂平县| 齐齐哈尔市| 蚌埠市| 靖边县| 长宁区| 通渭县| 大连市| 衡阳市| 博乐市| 鞍山市| 鄱阳县| 德庆县| 双辽市| 四子王旗| 福贡县|