score::SubtypeVariant< Base, Args > Class Template Reference
Tools to build a variant type from classes in a same hierarchy. More...
Detailed Description
template<typename Base, typename... Args>
class score::SubtypeVariant< Base, Args >
Tools to build a variant type from classes in a same hierarchy.
This allows to restrict and optimize polymorphism for the case where we already have a base class hierarchy, but we know that we will be applying a particular algorithm only to specific types of this hierarchy.
Public Member Functions | |
SubtypeVariant (Base &b) | |
SubtypeVariant (const Base &b) | |
template<typename F > | |
auto | apply (F &&f) |
The documentation for this class was generated from the following file: