![]() |
General Utility Library for C++17 25.4.1
|
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 std::visit().
A similar class was proposed in B. Stroustrup's "A Tour of C++", 3rd ed., Addison-Wesley, 2023.
#include <OverloadSet.h>
Inherits gul17::Fcts.