General Utility Library for C++14
2.12
|
A function object that works like an overload set of functions.
This variadic class template inherits from an arbitrary number of function objects (typically lambdas) and imports their definitions of operator()
into an overload set for its own operator()
. This is primarily helpful for use with visit(). Constructing an OverloadSet object manually can be cumbersome. The function make_overload_set() can help with that.
#include <variant.h>
Inherits Fct1.
Public Member Functions | |
OverloadSet (Fct1 f1, Fcts... fs) | |