Common Design Patterns In Modern C++
This repository contains samples of common design patterns written in modern C++.
This is intended for learning purposes of new C++ features and a starting point for implementing a pattern in your system.
Every subfolder contains another README.md with detailed explanation.
The patterns included in this repo are:
- Strategy & Prototype Pattern
- Observer Pattern
- Factory Pattern
- Abstract Factory Pattern
- Singleton Pattern
To build the project (Unix):
$ mkdir build && cd build/
$ cmake ../
$ make
cmake
and a GCC version that supports C++17 are required for this.
If there are any better alternatives or bugs I would like to hear it.