#include <kumi/functional/monadic.hpp>
If T is a kumi::product_type, returns its number of elements otherwise returns V;.
- Template Parameters
-
| T | type to inspect |
| V | fallback value |
Helper value
template<
typename T, auto V>
inline constexpr std::size_t
size_or_v = size_or<T,V>::value;
constexpr auto size_or_v
If T is a kumi::product_type, returns its number of elements otherwise returns V;.
Definition monadic.hpp:26