DeepRead
Cover of Modern C++ Design

Modern C++ Design

Andrei Alexandrescu · 2001

Programming and computer science › C and C++

#582 most recommended

About the book

The book covers generic programming and template metaprogramming in C++, with a focus on designing reusable library components. Its subjects include typelists, policy-based class design, smart pointers, object factories, functors, and multimethods, which it implements in the Loki library. The material targets C++ as standardized before C++11. The central claim is that splitting a component's behavior into orthogonal policies, combined through templates, lets library authors build flexible abstractions without paying runtime cost. The book argues that compile-time computation over types, such as typelists, can replace much hand-written repetition and runtime dispatch. It presents generic design as a practical discipline that yields expressive, type-safe code rather than a set of isolated tricks.

Written by Claude from what it knows of this book.

What Hacker News says 42% recommend · 9% critical

01020200720102015202020262014 peak · 13
This bookAverage book in C and C++

In the commenters’ own words

What Open Library readers say 5.00 from 1 rating

  1. 51
  2. 40
  3. 30
  4. 20
  5. 10
  • 3 want to read
  • 0 reading
  • 3 have read

Only 1 rating: treat the average as a hint.

Open Library’s page for the book

What Wikipedia says

  • published 2001
  • 323 pages
  • articles in 4 languages

Read the Wikipedia article

Reddit communities — coming later

The threads it came up in

Details

First published
2001
ISBN
9780201704310
Editions known
2 at Open Library
Open Library
OL8021674W

C[plus plus] (Computer program language)

Explore in the mosaic

Read next: its neighbours on the mosaic