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.
Synopsis
Declared in <util/overloaded.h>
template<class... Ts>
struct Overloaded
: Ts...
Description
Implementation comes from and example usage can be found at https://en.cppreference.com/w/cpp/utility/variant/visit#Example
Base Classes
Name |
Description |
|
Using Declarations
Name |
Created with MrDocs