Helper class for dispatching type-specific lambdas.
More...
#include <VariantUtils.hh>
template<typename... Ts>
struct celeritas::Overload< Ts >
Helper class for dispatching type-specific lambdas.
Example applied to a variant that converts to int or string:
std::visit(
Overload{[](
int a) { cout << a + 2; },
[](std::string
const&
s) { cout <<
'"' <<
s <<
'"'; }},
my_variant);
Helper class for dispatching type-specific lambdas.
Definition VariantUtils.hh:31
The documentation for this struct was generated from the following file: