keywords: C++ Book

Advanced
  • Modern C++ Design (Andrei Alexandrescu)
    A groundbreaking book on advanced generic programming techniques. Introduces policy-based design, type lists, and fundamental generic programming idioms then explains how many useful design patterns (including small object allocators, functors, factories, visitors, and multi-methods) can be implemented efficiently, modularly, and cleanly using generic programming.

  • C++ Template Metaprogramming (David Abrahams and Aleksey Gurtovoy)

  • C++ Concurrency In Action (Anthony Williams)
    A book covering C++11 concurrency support including the thread library, the atomics library, the C++ memory model, locks and mutexes, as well as issues of designing and debugging multithreaded applications.

  • Advanced C++ Metaprogramming (Davide Di Gennaro)
    A pre-C++11 manual of TMP techniques, focused more on practice than theory. There are a ton of snippets in this book, some of which are made obsolete by type traits, but the techniques, are nonetheless useful to know. If you can put up with the quirky formatting/editing, it is easier to read than Alexandrescu, and arguably, more rewarding. For more experienced developers, there is a good chance that you may pick up something about a dark corner of C++ (a quirk) that usually only comes about through extensive experience.
    Reference
    https://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list/388282

  • The C++ Standard Library (Rainer Grimm)
    With C++11, C++14, and C++17 we got a lot of new C++ libraries. In addition, the existing ones are greatly improved. The key idea of my book is to give you the necessary information to the current C++ libraries in about 250 pages.
    https://leanpub.com/cpplibrary

  • Concurrency with Modern C++ (Rainer Grimm)
    C++11 is the first C++ standard that deals with concurrency. The story goes on with C++17 and will continue with C++20/23.
    https://leanpub.com/concurrencywithmodernc

  • C++ Move Semantics - The Complete Guide (Nicolai M. Josuttis)
    All aspects of C++ move semantics with intutive motivation, compelling examples, and tricky details.
    https://leanpub.com/cppmove

Performance
  • C++ High Performance (Viktor Sehr, Björn Andrist)
    C++ is a highly portable language and can be used to write both large-scale applications and performance-critical code. It has evolved over the last few years to become a modern and expressive language. This book will guide you through optimizing the performance of your C++ apps by allowing them to run faster and consume fewer resources on the device they’re running on without compromising the readability of your code base.
    The book begins by helping you measure and identify bottlenecks in a C++ code base. It then moves on by teaching you how to use modern C++ constructs and techniques. You’ll see how this affects the way you write code. Next, you’ll see the importance of data structure optimization and memory management, and how it can be used efficiently with respect to CPU caches. After that, you’ll see how STL algorithm and composable Range V3 should be used to both achieve faster execution and more readable code, followed by how to use STL containers and how to write your own specialized iterators.
    Moving on, you’ll get hands-on experience in making use of modern C++ metaprogramming and reflection to reduce boilerplate code as well as in working with proxy objects to perform optimizations under the hood. After that, you’ll learn concurrent programming and understand lock-free data structures. The book ends with an overview of parallel algorithms using STL execution policies, Boost Compute, and OpenCL to utilize both the CPU and the GPU.

If the world were clear, art would not exist.