If T is a kumi::product_type and I is within it's size, returns element_t<I,T>, returns U otherwise.
More...
template<std::size_t I, typename T, typename U>
struct kumi::function::element_or< I, T, U >
If T is a kumi::product_type and I is within it's size, returns element_t<I,T>, returns U otherwise.
- Template Parameters
-
| I | Index of the type to retrieve |
| T | type to access |
| U | fallback type |
Helper type
{
template<std::size_t I, typename T, typename U> using element_or_t = typename element_or<I,T,U>::type;
}
Main KUMI namespace.
Definition algorithm.hpp:11