Bitcoin Core 28.99.0
P2P Digital Currency
|
Overloaded helper for std::visit. More...
#include <overloaded.h>
Overloaded helper for std::visit.
This helper and std::visit in general are useful to write code that switches on a variant type. Unlike if/else-if and switch/case statements, std::visit will trigger compile errors if there are unhandled cases.
Implementation comes from and example usage can be found at https://en.cppreference.com/w/cpp/utility/variant/visit#Example
Definition at line 16 of file overloaded.h.