Behavioral patterns
More...
Behavioral patterns
https://refactoring.guru/design-patterns/behavioral-patterns
◆ behavioral_patterns_demo()
void behavioral_patterns_demo |
( |
| ) |
|
Definition at line 594 of file patterns.cpp.
list based implementation without recursion
int handle(Command &cmnd) override
Specific handler can process a command and return non-negative.
void register_handler(Handler &&h, bool front=false)
encapsulates arguments. AKA Intent, operation.
is a virtual command handler of Chain_of_responsibility
is virtual observer of a Subject
forward_list< reference_wrapper< Observer > > observers
◆ mediator_demo()
◆ send()