Source code

A rudimentary implementation of overload.

Used for in-place visitation of std::variant:

variant<int,float,std::string> my_variant;
auto do_something = overload(
    [](int i) { /* do something with int */ },
    [](float f) { /* do something with float */ },
    [](std::string s) { /* do something with string */ }
visit(do_something, my_variant);
template<class ...Fs>
auto tl::overload(Fs&&... fs)

Create a single function object with a call operator overloaded by all function objects in fs….