EchoMap 2026-07-25 6d3977c
An experimental cross-platform digital signal processing application for sound-source localisation.
Loading...
Searching...
No Matches
echomap::variant_helpers::Overloaded< Ts > Struct Template Reference

A helper type for succinctly specifying callable visitors over a variant alternative. More...

#include <VariantHelpers.hpp>

Inheritance diagram for echomap::variant_helpers::Overloaded< Ts >:
[legend]

Detailed Description

template<class... Ts>
struct echomap::variant_helpers::Overloaded< Ts >

A helper type for succinctly specifying callable visitors over a variant alternative.

For example,

// populate v.
[](const A&) { handle_a(a); },
[](const B&) { handle_b(b); },
[](const C&) { handle_c(c); },
}, v);
A helper type for succinctly specifying callable visitors over a variant alternative.
T visit(T... args)

Taken from https://cppreference.com/cpp/utility/variant/visit2.

Template Parameters
TsTypes of callables; deduced implicitly since C++20.

Definition at line 90 of file VariantHelpers.hpp.


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