Skip to main content
  • Book
  • © 2018

Design Patterns in Modern C++

Reusable Approaches for Object-Oriented Software Design

Apress

Authors:

  • Apply design patterns to modern C++ programming

  • Learn behavioral patterns such as chain of responsibility, command, and iterator

  • Use structural patterns such as adapter, bridge, and decorator

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (25 chapters)

  1. Front Matter

    Pages i-xiii
  2. Introduction

    • Dmitri Nesteruk
    Pages 1-28
  3. Creational Patterns

    1. Front Matter

      Pages 29-32
    2. Builder

      • Dmitri Nesteruk
      Pages 33-47
    3. Factories

      • Dmitri Nesteruk
      Pages 49-61
    4. Prototype

      • Dmitri Nesteruk
      Pages 63-74
    5. Singleton

      • Dmitri Nesteruk
      Pages 75-86
  4. Structural Patterns

    1. Front Matter

      Pages 87-88
    2. Adapter

      • Dmitri Nesteruk
      Pages 89-97
    3. Bridge

      • Dmitri Nesteruk
      Pages 99-105
    4. Composite

      • Dmitri Nesteruk
      Pages 107-118
    5. Decorator

      • Dmitri Nesteruk
      Pages 119-132
    6. Façade

      • Dmitri Nesteruk
      Pages 133-138
    7. Flyweight

      • Dmitri Nesteruk
      Pages 139-147
    8. Proxy

      • Dmitri Nesteruk
      Pages 149-158
  5. Behavioral Patterns

    1. Front Matter

      Pages 159-159
    2. Chain of Responsibility

      • Dmitri Nesteruk
      Pages 161-171
    3. Command

      • Dmitri Nesteruk
      Pages 173-187
    4. Interpreter

      • Dmitri Nesteruk
      Pages 189-203
    5. Iterator

      • Dmitri Nesteruk
      Pages 205-215

About this book

Apply modern C++17 to the implementations of classic design patterns. As well as covering traditional design patterns, this book fleshes out new patterns and approaches that will be useful to C++ developers. The author presents concepts as a fun investigation of how problems can be solved in different ways, along the way using varying degrees of technical sophistication and explaining different sorts of trade-offs.


Design Patterns in Modern C++ also provides a technology demo for modern C++, showcasing how some of its latest features (e.g., coroutines) make difficult problems a lot easier to solve. The examples in this book are all suitable for putting into production, with only a few simplifications made in order to aid readability.


What You Will Learn

  • Apply design patterns to modern C++ programming
  • Use creational patterns of builder, factories, prototype and singleton
  • Implement structural patterns such as adapter, bridge, decorator, facade and more
  • Work with the behavioral patterns such as chain of responsibility, command, iterator, mediator and more
  • Apply functional design patterns such as Monad and more



Who This Book Is For


Those with at least some prior programming experience, especially in C++.


Authors and Affiliations

  • St. Petersburg, Russia

    Dmitri Nesteruk

About the author

Dmitri Nesteruk is a quantitative analyst, developer, course and book author, and an  occasional conference speaker.  His interests lie in software development and integration practices in the areas of computation, quantitative finance and algorithmic trading. His technological interests include C# and C++ programming as well high-performance computing using technologies such as CUDA and FPGAs. He has been a C# MVP since 2009.

Bibliographic Information

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Other ways to access