KUMI v4.0.0
Flawless Fluorite
Loading...
Searching...
No Matches

◆ size_or_v

template<typename T, auto V>
auto kumi::function::size_or_v = V
inlineconstexpr

#include <kumi/functional/monadic.hpp>

If T is a kumi::product_type, returns its number of elements otherwise returns V;.

Template Parameters
Ttype to inspect
Vfallback 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