![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Core/Utils/Overloaded.h>
Syntactic sugar for easier implementation of visitors of a std::variant or our Utils::Variant. More...
Syntactic sugar for easier implementation of visitors of a std::variant or our Utils::Variant.
Can be used like this:
You can also put a [](const auto& default) { computeDefault(default); }
in the overload set if you would like to implement a default handler instead of an individual handler for each type. However, be aware that it will bind to anything and therefore increase the chance of introducing bugs due to unexpected implicit conversions or when extending the variant at a future time.