C++17 - The Complete… by Nicolai Josuttis [PDF/iPad/Kindle]
C++17 - The Complete Guide
C++17 - The Complete Guide (C++17 - The Complete Guide)
$7.90
Minimum
$34.90
Suggested
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.

Nico

#cpp17tcg

About the Author

Nicolai Josuttis
Nicolai Josuttis

Nicolai Josuttis (http://www.josuttis.com) is an independent system architect, technical manager, author, consultant, and trainer being active in C++ standardization for 20 years. He designs mid-sized and large software systems for the telecommunications, traffic, finance, and manufacturing industries.

He is well known in the programming community because he not only speaks and writes with authority, being the (co-)author of the world-wide best sellers The C++ Standard Library, C++ Templates, and SOA in Practice, but is also an innovative presenter, having talked at various conferences and events.

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...

Write and Publish on Leanpub

Authors and publishers use Leanpub to publish amazing in-progress and completed ebooks, just like this one. You can use Leanpub to write, publish and sell your book as well! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub