libQuotient
A Qt library for building matrix clients
Quotient::Overloads< FunctorTs > Struct Template Reference

Multiplex several functors in one. More...

#include <util.h>

Inheritance diagram for Quotient::Overloads< FunctorTs >:
Collaboration diagram for Quotient::Overloads< FunctorTs >:

Detailed Description

template<typename... FunctorTs>
struct Quotient::Overloads< FunctorTs >

Multiplex several functors in one.

This is a well-known trick to wrap several lambdas into a single functor class that can be passed to std::visit.

See also
https://en.cppreference.com/w/cpp/utility/variant/visit

Definition at line 255 of file util.h.


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