Templates
The sup/templates package provides template functions and classes.
- Key Features:
Support for decorator patterns with ownership semantics.
- Main Components:
OwningDecorator: A decorator that owns the decorated object.DecorateWith: A utility function to create decorated objects.
Example:
auto decorated = sup::templates::DecorateWith<MyDecorator>(std::make_unique<MyObject>());