EchoMap 2026-07-25 6d3977c
An experimental cross-platform digital signal processing application for sound-source localisation.
Loading...
Searching...
No Matches
echomap::variant_helpers::VariantAlternative Concept Reference

Constrains a type to be one of the alternatives of a std::variant. More...

#include <VariantHelpers.hpp>

Concept definition

template<typename T, typename Variant>
constexpr bool is_variant_alternative_v
Whether a type is an alternative of a std::variant.
Constrains a type to be one of the alternatives of a std::variant.

Detailed Description

Constrains a type to be one of the alternatives of a std::variant.

The comparison is exact after removing cv-qualifiers and references from T. Derived types, implicitly convertible types, and constructible types do not satisfy the concept unless they are explicitly listed as alternatives.

Template Parameters
TThe type to test.
VariantThe variant type whose alternatives should be inspected.

Definition at line 67 of file VariantHelpers.hpp.