C++17 - The Complete Guide (C++17 - The Complete Guide)
This book is 75% complete
Last updated on 2018-05-31
About the Book
C++17 is the next evolution in modern C++ programming, which is already at least partially supported by the latest version of gcc, clang, and Visual C++. Although it is not as big a step as C++11, it contains a large number of small and valuable language and library features, which will change the way we program in C++. As usual, not everything is self-explanatory, combining new features gives even more power, and there are hidden traps.
This book presents all the new language and library features in C++17. It covers the motivation and context of each new feature with examples and background information. The focus is on how these features impact day-to-day programming, what it means to combine them, and how to benefit from this in practice.
Buy early, pay less, free updates.
Note that this book will be published step-by-step.
Currently, the first 270 pages are published, covering the most important C++17 features. The first version was available since December 15, 2017, after I integrated all feedback, examples, and caveats about the features, I want to describe in the first version (I especially had to integrate things I learned recently at the major C++ conference CppCon).
The current version already covers the following topics, including how they play together in practice:
- Structured bindings, if/switch with initializers, inline variables, aggregate extensions, copy elision and materialization, lambda extensions,
- nested namespaces, defined expression evaluation order, relaxed enum initialization, relaxed static_assert, #__has_include
- class template argument deduction, compile-time if, fold expressions, strings and auto as template parameters, extended using, overloading lambdas
- optional<>, variant<>, any, byte, string_view, and some examples from the file system library
- type trait suffix _v, new type traits, and some library fixes
- new/delete for over-aligned data
Much more will come in the following versions (see www.cppstd17.com for a details).
As written, once you bought it you will get all updates for free.
PDF versus Other Formats
I wrote the book in LaTeX and generated PDF myself directly (the way I did with all my other books). The other formats (epub, mobi, and online reading) come from the leanpub markdown interface, for which I generate the necessary input from LaTeX by script.
Thus, the PDF layout has a better quality than the other formats. For example, the syntax highlighting rules for the formats other than PDF have to get fixed as soon as possible and the index is missing yet. Leanpub and me are working on corresponding improvements.
I hope you anyway enjoy and benefit.
The Leanpub 45-day 100% Happiness Guarantee
Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...