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

Name

Description

T

The type to look for among the types of Vs

Vs

The non‐type template arguments whose types are checked against T

Created with MrDocs