mp_units::contains

Checks whether any of the types Ts is a specialization of the class template T

Synopsis

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

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

Return Value

true if at least one of Ts is a specialization of T, false otherwise

NOTE

The return value should not be discarded.

Template Parameters

NameDescription
TThe class template (taking non-type, auto, parameters) to look for
TsThe types to check