€37.48

These promotions will be applied to this item:

Some promotions may be combined; others are not eligible to be combined with other offers. For details, please see the Terms & Conditions associated with these promotions.

Price includes VAT
You've subscribed to ! We will pre-order your items within 24 hours of when they become available. When new books are released, we'll charge your default payment method for the lowest price available during the pre-order period.
Update your device or payment method, cancel individual pre-orders or your subscription at
Your Memberships and Subscriptions

How it works

  1. Choose your delivery options
  2. Send now or schedule for later
  3. Add your personal message
  4. Recipients can read on any device

These Kindle Books can only be redeemed by recipients in your country. Redemption links and Kindle Books cannot be resold.

Added to

Sorry, there was a problem.

There was an error retrieving your Wish Lists. Please try again.

Sorry, there was a problem.

List unavailable.
Kindle app logo image

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet or computer – no Kindle device required.

Read instantly on your browser with Kindle for Web.

Using your mobile phone camera - scan the code below and download the Kindle app.

QR code to download the Kindle App

  • Modern C++ Design: Generic Programming and Design Patterns Applied (C++ In-Depth) (English Edition)

Follow the author

Follow to get new release updates, special offers (including promotional offers), and improved recommendations.
Something went wrong. Please try your request again later.

Modern C++ Design: Generic Programming and Design Patterns Applied (C++ In-Depth) (English Edition) 1st Edition, Kindle Edition

4.6 out of 5 stars (156)

Modern C++ Design, Andrei Alexandrescu opens new vistas for C++ programmers. Displaying extraordinary creativity and programming virtuosity, Alexandrescu offers a cutting-edge approach to design that unites design patterns, generic programming, and C++, enabling programmers to achieve expressive, flexible, and highly reusable code.

This book introduces the concept of generic components–reusable design templates that produce boilerplate code for compiler consumption–all within C++. Generic components enable an easier and more seamless transition from design to application code, generate code that better expresses the original design intention, and support the reuse of design structures with minimal recoding.

The author describes the specific C++ techniques and features that are used in building generic components and goes on to implement industrial strength generic components for real-world applications. Recurring issues that C++ developers face in their day-to-day activity are discussed in depth and implemented in a generic way. These include:

  • Policy-based design for flexibility
  • Partial template specialization
  • Typelists–powerful type manipulation structures
  • Patterns such as Visitor, Singleton, Command, and Factories
  • Multi-method engines

For each generic component, the book presents the fundamental problems and design options, and finally implements a generic solution.

In addition, an accompanying Web site, http://www.awl.com/cseng/titles/0-201-70431-5, makes the code implementations available for the generic components in the book and provides a free, downloadable C++ library, called Loki, created by the author. Loki provides out-of-the-box functionality for virtually any C++ project.

Get a value-added service! Try out all the examples from this book at www.codesaw.com. CodeSaw is a free online learning tool that allows you to experiment with live code from your book right in your browser.

Due to its large file size, this book may take longer to download
This title is only available on select devices and the latest version of the Kindle app. Please refer to the supported device list before purchase. Available on these devices

See all supported devices

Kindle E-Readers

  • Kindle Voyage (7th Generation)
  • Kindle Paperwhite (6th Generation)
  • Kindle (8th Generation)
  • Kindle Paperwhite (7th Generation)
  • Kindle (11th Generation, 2024 Release)
  • Kindle Oasis (9th Generation)
  • Kindle Colorsoft (1st Generation)
  • Kindle Scribe Colorsoft (1st Generation)
  • Kindle Paperwhite (5th Generation)
  • Kindle Oasis (8th Generation)
  • Kindle Scribe (3rd Generation)
  • Kindle Paperwhite (12th Generation)
  • Kindle Paperwhite (10th Generation)
  • Kindle (7th Generation)
  • Kindle Scribe (2024 Release)
  • Kindle Scribe (1st Generation, 2022 Release)
  • Kindle Touch (4th Generation)
  • Kindle Oasis (10th Generation)
  • Kindle (10th Generation)

Kindle Fire Tablets

  • Fire HD 8 (8th Generation)
  • Fire HD 8 (12th Generation)
  • Fire HD 8 (12th Generation)
  • Fire HD 10 Plus
  • Fire HD 8 (12th Generation)
  • Fire HD 10 (9th Generation)
  • Fire 7 (9th Generation)
  • Fire HD 8 (10th Generation)
  • Fire HD 10 (11th Generation)
  • Fire Max 11 (13th Generation)
  • Fire 7 (12th Generation)
  • Fire 10 HD (13th Gen.)

Free Kindle Reading Apps

  • Kindle for Android Tablets
  • Kindle for Android
  • Kindle for iPhone
  • Kindle for iPad
  • Kindle for PC
  • Kindle for Web
  • Kindle for Mac

Shop this series

 See full series
There are 8 books in this series.
  • Kindle Price:
    €89.18includes VAT
    -
    includes VAT
    By clicking on the above button, you agree to Amazon's Terms of conditions and to our Terms of Use
    Sold by: Amazon Media EU S.à r.l.

Safety and product resources

Images and contacts

Product description

Review

Select Guide Rating

From the Back Cover

Modern C++ Designis an important book. Fundamentally, it demonstrates ‘generic patterns’ or ‘pattern templates’ as a powerful new way of creating extensible designs in C++–a new way to combine templates and patterns that you may never have dreamt was possible, but is. If your work involves C++ design and coding, you should read this book. Highly recommended.
–Herb Sutter

What’s left to say about C++ that hasn’t already been said? Plenty, it turns out.
–From the Foreword by John Vlissides

In Modern C++ Design, Andrei Alexandrescu opens new vistas for C++ programmers. Displaying extraordinary creativity and programming virtuosity, Alexandrescu offers a cutting-edge approach to design that unites design patterns, generic programming, and C++, enabling programmers to achieve expressive, flexible, and highly reusable code.

This book introduces the concept of generic components–reusable design templates that produce boilerplate code for compiler consumption–all within C++. Generic components enable an easier and more seamless transition from design to application code, generate code that better expresses the original design intention, and support the reuse of design structures with minimal recoding.

The author describes the specific C++ techniques and features that are used in building generic components and goes on to implement industrial strength generic components for real-world applications. Recurring issues that C++ developers face in their day-to-day activity are discussed in depth and implemented in a generic way. These include:

  • Policy-based design for flexibility
  • Partial template specialization
  • Typelists–powerful type manipulation structures
  • Patterns such as Visitor, Singleton, Command, and Factories
  • Multi-method engines

For each generic component, the book presents the fundamental problems and design options, and finally implements a generic solution.

In addition, an accompanying Web site, http://www.awl.com/cseng/titles/0-201-70431-5, makes the code implementations available for the generic components in the book and provides a free, downloadable C++ library, called Loki, created by the author. Loki provides out-of-the-box functionality for virtually any C++ project.

Get a value-added service! Try out all the examples from this book at www.codesaw.com. CodeSaw is a free online learning tool that allows you to experiment with live code from your book right in your browser.



0201704315B11102003

Product details

  • ASIN ‏ : ‎ B00AU3JUHG
  • Publisher ‏ : ‎ Addison-Wesley Professional
  • Accessibility ‏ : ‎ Learn more
  • Publication date ‏ : ‎ 13 Feb. 2001
  • Edition ‏ : ‎ 1st
  • Language ‏ : ‎ English
  • File size ‏ : ‎ 30.2 MB
  • Screen Reader ‏ : ‎ Supported
  • Enhanced typesetting ‏ : ‎ Enabled
  • X-Ray ‏ : ‎ Not Enabled
  • Word Wise ‏ : ‎ Not Enabled
  • Print length ‏ : ‎ 353 pages
  • ISBN-13 ‏ : ‎ 978-0133387612
  • Page Flip ‏ : ‎ Enabled
  • Part of series ‏ : ‎ C++ In-Depth
  • Reading age ‏ : ‎ 18 years and up
  • Best Sellers Rank: 1,108,548 in Kindle Store (See Top 100 in Kindle Store)
  • Customer reviews:
    4.6 out of 5 stars (156)

About the author

Follow authors to get new release updates, plus improved recommendations.
Andrei Alexandrescu
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

Andrei Alexandrescu coined the colloquial term "modern C++", used today to describe a collection of important C++ styles and idioms. His eponymous book on the topic, Modern C++ Design: Generic Programming and Design Patterns Applied (Addison-Wesley, 2001), revolutionized C++ programming and produced a lasting influence not only on subsequent work on C++, but also on other languages and systems. With Herb Sutter, Andrei is also the coauthor of C++ Coding Standards: 101 Rules, Guidelines, and Best Practices (Addison-Wesley, 2004). Through Andrei's varied work on libraries and applications, as well as his research in machine learning and natural language processing, he has garnered a solid reputation in both industrial and academic circles. Since 2006, he has been second-in-command to Walter Bright, the D programming language inventor and initial implementer. Andrei has been the key designer of many important features of D and has authored a large part of D's standard library, positioning him to write an authoritative book on the new language, appropriately entitled, The D Programming Language. Andrei holds a Ph.D. in Computer Science from the University of Washington and a B.Sc. in Electrical Engineering from University "Politehnica" Bucharest. He works as a Research Scientist for Facebook.

Customer reviews

4.6 out of 5 stars
156 global ratings

Top reviews from Germany

  • Reviewed in Germany on 2 April 2017
    Format: PaperbackVerified Purchase
    in diesem Sachbuch werden viele spezielle Techniken vermittelt (so zB. generische Policies über Templates), die selbst einem erfahrenem C++ Entwickler noch einiges abverlangen werden. Meiner Meinung nach eine verpflichtende Lektüre für jeden C++ Entwickler, wer denkt C++ als Programmiersprache verstanden zu haben wird in diesem Buch von Herrn Alexandrescu eines besseren belehrt werden und das auf einen sehr angenehme Art (jeder der schon einmal einen Vortrag von Herrn Alexandrescu beiwohnen durfte und seine hurmorvolle Art kennt, wird hier positiv Überrascht sein).
    4 people found this helpful
    Report
  • Reviewed in Germany on 25 January 2023
    Format: PaperbackVerified Purchase
    Nothing to say, just love the book if your into C++
    One person found this helpful
    Report
  • Reviewed in Germany on 7 March 2013
    Format: PaperbackVerified Purchase
    One of my favorite books in my collection. This was the first time I heard of policy-based class designs, which I use now frequently where they fit. Who ever is writing C++ code should have read this book.
    One person found this helpful
    Report
  • Reviewed in Germany on 11 March 2010
    Format: Paperback
    Das Buch ist ein Muss, will man sich als C++ Programmierer weiter entwickeln und mit Template (Meta)programmierung auseinander setzen. Loki ist heute sicher durch Boost obsolet, aber zum Erlernen der vorstellten Techniken sicher hilfreich.
    2 people found this helpful
    Report
  • Reviewed in Germany on 25 July 2002
    Format: Paperback
    Endlich wieder einmal ein Buch für fortgeschrittene C++ Programmierer. Ähnlich wie seinerzeit Scott Meyers (Effective C++) erläutert Alexandrescu grundlegend neue Aspekte der Umsetzung von Design Pattern mit Hilfe von C++ Templates. Er fängt dort an, wo alle anderen C++ Bücher aufhören. Viel weiter als das GoF Buch geht er mit Singleton, Smart Pointers, Factories und Visitor. Im Anhang erklärt er wichtige Aspekte zu Multithreading.
    16 people found this helpful
    Report
  • Reviewed in Germany on 3 January 2016
    Format: Kindle EditionVerified Purchase
    Die Sonderzeichen im Code werden oft nicht korrekt formatiert.
    Z.B. zeigt der Kindle Reader
    static void Check(T)* {}
    wobei
    static void Check(T*) {}
    gemeint ist.
    Code im Fließtext:
    ...an lvalue of type T. *SmartPtr calls Check, ...
    gemeint ist vrmtl.
    ...an lvalue of type T*. SmartPtr calls Check, ...

    Und zahllose weitere Beispiele bei denen auch nicht immer so klar ist was genau falsch gelaufen ist in der Kindle Formatierung.
    6 people found this helpful
    Report

Top reviews from other countries

Translate all reviews to English
  • krishna kumar thakur
    5.0 out of 5 stars Must read, reread and read again.
    Reviewed in India on 24 June 2019
    One of the best c++ book. Though its not suitable for begineers but if someone really want to know template, its for them. It require you have some idea on template, but you'll find yourself thinking in templates. Genious template tricks. If read carefully you'll learn design, best c++ practice, and patterns. Just get template idea before reading this book. Andrie is genious.
  • Mic
    5.0 out of 5 stars Un joyau d'astuces
    Reviewed in France on 21 December 2009
    Format: PaperbackVerified Purchase
    Si vous cherchez à savoir ce qu'est la métaprogrammation en C++ ce livre est définitivement fait pour vous.

    Vous n'aurez besoin pour le lire que de savoir les règles de base concernant les templates en C++ (et être à l'aise avec), et Alexandrescu vous guide vers la compréhension de ses constructions toutes plus étonnantes et remarquables les unes que les autres.
    C'est une véritable façon de programmer "at compile-time" qu'il offre au programmeur.

    Ces méthodes ne sont cependant pas très utilisées en environnement de production (utilisation lourde des macros, temps de compilation rallongés, maintenabilité discutable) et on admirera donc plus la beauté des objets que leur éventuelle réelle utilité.

    C'est en tout cas un moyen étonnant de voir comment les règles d'apparence inoffensives des templates C++ offrent finalement un pouvoir d'expressivité très riche.
    Report
  • Ayon Md Farhabi Helal
    5.0 out of 5 stars Didn’t expect much but Surprised by the Quality
    Reviewed in Japan on 26 October 2019
    Format: PaperbackVerified Purchase
    I wanted some books to review my C++ skills and suddenly found out this deal. The price was in such a sweet spot that I couldn’t ignore it. To be honest, I was not expecting much. Anything readable would be acceptable for me. But I was amazed when I got it in my hands. The book was in a great condition for its price. I would love to buy again from them.
  • Ankur
    5.0 out of 5 stars Exceptional material
    Reviewed in the United States on 25 November 2010
    Format: PaperbackVerified Purchase
    The material presented in this book is mainly for library writers and senior developers who are in charge of software design. Having said that, the material here is unlike you'll find in any other book. Author discusses design and implementation of reusable components like a (very sophisticated) singleton, visitor, generalized functors, smart pointers, etc. I found discussions on smart pointers and singleton to be particularly enlightening. Its amazing how a simple design pattern like singleton could have so many intricacies.
    But the chapter which blew me away was that of typelists, and what author achieves by using simple metaprogramming constructs (although I would be the first one to admit that a mere mortal software developer like myself would not be using typelists everyday, but its still fun to learn about them).

    This book is very different from whatever material I had read earlier on C++. Do read this book once you are familiar with topics like templates, common design patterns and smart pointers.
  • Onorato Vaticone
    5.0 out of 5 stars A must-read book!
    Reviewed in Italy on 17 May 2014
    Format: Kindle EditionVerified Purchase
    You really have to read this book! It's much more than "modern C++ design".
    . . . . . .

Report an issue


Does this item contain inappropriate content?
Do you believe that this item violates a copyright?
Does this item contain quality or formatting issues?