C++ features by examples
|
Classes | |
struct | Singleton_demo |
struct | Factory_method_demo |
struct | Sample_product |
struct | Sample_factory_method_demo |
struct | Abstract_factory |
struct | Sample_factory |
struct | Prototype |
is the factory of himself More... | |
struct | Builder |
Macros | |
#define | SINGLETON(Singleton) |
Functions | |
void | creational_patterns_demo () |
https://refactoring.guru/design-patterns/creational-patterns
#define SINGLETON | ( | Singleton | ) |
The singleton will be automatically safely instantiated on the first call.
Define constructor body after the define
Definition at line 186 of file patterns.cpp.
void creational_patterns_demo | ( | ) |
Definition at line 272 of file patterns.cpp.