I’ve used them before to add customization to classes by passing them to the constructor in a way like the strategy pattern
More Related Contents:
- Code in .cpp file [closed]
- Undefined, unspecified and implementation-defined behavior
- Convert Python program to C/C++ code?
- Finding C++ static initialization order problems
- What is the efficient way to count set bits at a position or lower?
- Representing 128-bit numbers in C++
- What can happen if printf is called with a wrong format string?
- How to efficiently display OpenCV video in Qt?
- Is passing a C++ object into its own constructor legal?
- C++ JSON Serialization
- Precise thread sleep needed. Max 1ms error
- C++: Construction and initialization order guarantees
- Automatic perspective correction OpenCV
- Iterative DFS vs Recursive DFS and different elements order
- QML and C++ image interoperability
- Project Euler #8, I don’t understand where I’m going wrong
- Extending enums in C++?
- Will exit() or an exception prevent an end-of-scope destructor from being called?
- track C++ memory allocations
- What is the difference between a macro and a const in C++?
- C++ namespaces advice
- Get signatures of exported functions in a DLL
- static variable in the class declaration or definition?
- Same function with const and without – When and why?
- Getting Clang to work on windows
- Error: C2228: left of ” must have class/struct/union
- C++: Wrapping vector with istream
- What is the maximum memory available to a C++ application on 32-bit Windows?
- Is the whole object freed with a non-virtual destructor and a Base class pointer?
- C++: Fastest method to check if all array elements are equal