General Utility Library for C++14  2.11
Public Member Functions | List of all members
gul14::OverloadSet< Fct1, Fcts > Struct Template Reference

Detailed Description

template<typename Fct1, typename... Fcts>
struct gul14::OverloadSet< Fct1, Fcts >

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.

Since
GUL version 2.9.2

#include <variant.h>

Inherits Fct1.

Public Member Functions

 OverloadSet (Fct1 f1, Fcts... fs)
 

The documentation for this struct was generated from the following file: