mp_units::contains

Checks whether the type T matches the type of any of the non-type template arguments Vs

Synopsis

Declared in <mp-units/ext/type_traits.h>

template<
    typename T,
    auto Vs...>
[[nodiscard]]
consteval
bool
contains();

Return Value

true if T matches the type of at least one of Vs, false otherwise

NOTE

The return value should not be discarded.

Template Parameters

NameDescription
TThe type to look for among the types of Vs
VsThe non-type template arguments whose types are checked against T