Checks whether the type T is present in the type pack T1, Ts...
Declared in <mp-units/ext/type_traits.h>
template<
typename T,
typename T1,
typename... Ts>
[[nodiscard]]
consteval
bool
contains();
true if T is the same as T1 or one of Ts, false otherwise
The return value should not be discarded.
| Name | Description |
|---|---|
| T | The type to look for |
| T1 | The first type of the pack to search |
| Ts | The remaining types of the pack to search |