Effective Modern C++

42 Specific Ways to Improve Your Use of C++11 and C++14 , #4

334 pages

Published Dec. 5, 2014 by O'Reilly Media.

ISBN:
978-1-4919-0399-5
Copied ISBN!
OCLC Number:
884480640

View on OpenLibrary

5 stars (4 reviews)

Coming to grips with C++11 and C++14 is more than a matter of familiarizing yourself with the features they introduce (e.g., auto type declarations, move semantics, lambda expressions, and concurrency support). The challenge is learning to use those features effectively--so that your software is correct, efficient, maintainable, and portable. That's where this practical book comes in. It describes how to write truly great software using C++11 and C++14--i.e. using modern C++.

Topics include:

The pros and cons of braced initialization, noexcept specifications, perfect forwarding, and smart pointer make functions The relationships among std:: move, std:: forward, rvalue references, and universal references Techniques for writing clear, correct, effective lambda expressions How std:: atomic differs from volatile, how each should be used, and how they relate to C++'s concurrency API How best practices in old C++ programming (i.e., C++98) require revision for software development in modern C++ Effective Modern C++ follows the …

1 edition

reviewed Effective Modern C++ by Scott Meyers (Effective C++ Series, #4)

Review of 'Effective Modern C++' on 'Goodreads'

5 stars

A free pre-release edition, that upgraded itself when I was halfway through it.

In short, a survey of the new features available with the newest revisions of C++, along with suggestions on the best ways to use them. Clear and concise, with each item explained so straightforwardly that it is instantly understandable. But with dashes of humor, to give your brain short respites between the avalanches of facts and logic.

I began by reading the book in the proper order, starting with an explanation of template type deduction. (The same that I'd used in the STL in older versions of C++. And now, after all these years, can finally say that I understand.) From there I continued on into the new features. But after a while I realized that there's no reason to read it in order. Each section can stand alone. True, there are references to other sections, but …