Returns the first of the non-type template arguments V1, V2, Vs... whose type matches T
Declared in <mp-units/ext/type_traits.h>
template<
typename T,
auto V1,
auto V2,
auto Vs...>
[[nodiscard]]
consteval
auto
get();
The value of the first argument whose type matches T
The return value should not be discarded.
| Name | Description |
|---|---|
| T | The type to look for among the types of V1, V2, Vs... |
| V1 | The first non-type template argument to check |
| V2 | The second non-type template argument to check |
| Vs | The remaining non-type template arguments to check |