overloaded

Reference

template<class ...Lambdas>
struct overloaded : public Lambdas...

Function object that combines all the overloads from the given Lambdas.

Designed primarily for convenience when visiting a variant, see https://en.cppreference.com/w/cpp/utility/variant/visit.

Source code

Tests