Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
overload< Ts > Struct Template Reference

Overload pattern. More...

#include <src/utils/variant_helpers.h>

Inheritance diagram for overload< Ts >:
Collaboration diagram for overload< Ts >:

Detailed Description

template<class... Ts>
struct overload< Ts >

Overload pattern.

Usage: auto result = std::visit (overload { [] (int x) { return x * 2; }, [] (const std::string &str) { return str.size (); }, [] (const std::vector<int> &vec) { return vec.size (); } }, var);

Definition at line 181 of file variant_helpers.h.


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