ModernDesignPatterns
ModernDesignPatterns copied to clipboard
Design Patterns in Modern C++
Modern Design Patterns
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.
Patterns
The patterns included in this repo are:
- [x] Strategy & Prototype Pattern
- [x] Observer Pattern
- [x] Factory Pattern
- [x] Abstract Factory Pattern
- [x] Singleton Pattern
Building
To build the project (Unix):
$ mkdir build && cd build/
$ cmake ../
$ make
cmake
and a GCC version that supports C++17 are required for this.
Contributing
If there are any better alternatives or bugs I would like to hear it.