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

Name

Description

T

The class template (taking non‐type, auto, parameters) to look for

Ts

The types to check

Created with MrDocs