header_utils
Loading...
Searching...
No Matches
ghassanpl::overloaded< Ts > Struct Template Reference

Can be used to create an object with an overload set of operator() if constructed from multiple lambdas. More...

#include <functional.h>

Detailed Description

template<class... Ts>
struct ghassanpl::overloaded< Ts >

Can be used to create an object with an overload set of operator() if constructed from multiple lambdas.

Example:

std::variant<int, std::string> var;
auto res = std::visit(overloaded {
[](int i) { return std::to_string(i); },
[](std::string const& s) { return s; }
}, var);
Can be used to create an object with an overload set of operator() if constructed from multiple lambd...
Definition functional.h:73

Definition at line 73 of file functional.h.