Effective Modern C++: 42 Specific Ways to Improve Your Use of C++11 and C++14

· "O'Reilly Media, Inc."
4.7
71 reviews
Ebook
334
Pages
Eligible
Ratings and reviews aren’t verified  Learn More

About this ebook

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 proven guideline-based, example-driven format of Scott Meyers' earlier books, but covers entirely new material.

"After I learned the C++ basics, I then learned how to use C++ in production code from Meyer's series of Effective C++ books. Effective Modern C++ is the most important how-to book for advice on key guidelines, styles, and idioms to use modern C++ effectively and well. Don't own it yet? Buy this one. Now".

-- Herb Sutter, Chair of ISO C++ Standards Committee and C++ Software Architect at Microsoft

Ratings and reviews

4.7
71 reviews
Alex Barber
March 14, 2018
Absolutely the most helpful and engaging book on C++ best practices I've ever read. Between reading the first and final page of this book, my confidence and proficiency in C++ (especially with performance, debugging, and the newer features) has seen a drastic improvement. Unlike many technical books, the author keeps each section concise, and is just humorous enough to make it pleasant to read. If you intend to write any C++ seriously, you NEED to read this book.
9 people found this review helpful
Did you find this helpful?
A Google user
March 27, 2017
If you have ever wonder if choosing c++ as a development language makes you some kind of a software masochist then this book will clear all the doubts. Great lecture that explains not only how you should do things right in c++ but why you should do them that way. Many code examples, good descriptions and very nice style which makes it very enjoyable to read.
4 people found this review helpful
Did you find this helpful?
Sayan Datta
June 19, 2021
This is a great book on C++ and is extremely useful for solidifying the details of the language and picking up practical tips. This book covers every part of C++. Not a tutorial, for the expert programmer this book is both an excellent reference and a good read.
Did you find this helpful?

About the author

For more than 20 years, Scott Meyers’ Effective C++ books (Effective C++, More Effective C++, and Effective STL) have set the bar for C++ programming guidance. His clear, engaging explanations of complex technical material have earned him a worldwide following, and they keep him in demand as a trainer, consultant, and conference presenter. Winner of the 2009 Dr. Dobb’s Excellence in Programming Award, he has a Ph.D. in Computer Science from Brown University. His web site is aristeia.com.

Rate this ebook

Tell us what you think.

Reading information

Smartphones and tablets
Install the Google Play Books app for Android and iPad/iPhone. It syncs automatically with your account and allows you to read online or offline wherever you are.
Laptops and computers
You can listen to audiobooks purchased on Google Play using your computer's web browser.
eReaders and other devices
To read on e-ink devices like Kobo eReaders, you'll need to download a file and transfer it to your device. Follow the detailed Help Center instructions to transfer the files to supported eReaders.