Util for use with std::visit to avoid a bunch of if constexpr(...)s.
More...
#include <mostlyharmless_Visitor.h>
template<typename... Callable>
struct mostly_harmless::utils::Visitor< Callable >
Util for use with std::visit to avoid a bunch of if constexpr(...)s.
Usage::
std::variant<int, double>
data;
[](int x) { std::cout << "Was int!\n"; },
[](double x) { std::cout << "Was double!\n"; }
}, data);
Contains classes and functions related to data management.
Definition mostlyharmless_DatabaseState.h:16
Util for use with std::visit to avoid a bunch of if constexpr(...)s.
Definition mostlyharmless_Visitor.h:22
- Template Parameters
-
The documentation for this struct was generated from the following file: