![]() |
Scarab
v2.11.1
Project 8 C++ Utility Library
|
#include <common.h>
Public Types | |
| using | type = conditional_t< found, typename pack_element< index, Ts... >::type, Default > |
Static Public Attributes | |
| static constexpr auto | found = constexpr_sum(Predicate<Ts>::value...) |
| static constexpr auto | index = found ? constexpr_first<Predicate, Ts...>() : 0 |
Return the one and only type which matches the predicate, or Default if none match. If more than one type matches the predicate, fail at compile-time.
Definition at line 560 of file detail/common.h.
| using type = conditional_t<found, typename pack_element<index, Ts...>::type, Default> |
Definition at line 565 of file detail/common.h.
|
static |
Definition at line 561 of file detail/common.h.
|
static |
Definition at line 564 of file detail/common.h.
1.8.13