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

Overload pattern. More...

#include <src/utils/variant_helpers.h>

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

Detailed Description

template<class... Ts>
struct zrythm::utils::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 215 of file variant_helpers.h.


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