|
KUMI v5.0.0
Gorgeous Garnet
|
Returns the Ith element of t if t is a kumi::product_type, an instance of v otherwise. More...
Functions | |
| template<std::size_t I, typename T, typename V> | |
| constexpr decltype(auto) | kumi::function::get_or (T &&t, V &&v) |
Returns the Ith element of t if t is a kumi::product_type, an instance of v otherwise.
|
inlinenodiscardconstexpr |
| I | Compile-time index of the element to access |
| t | Type to inspect |
| v | Fallback value |