KUMI v4.0.0
Flawless Fluorite
Loading...
Searching...
No Matches
kumi::function::size_or< T, V > Struct Template Reference

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

#include <kumi/functional/monadic.hpp>

Detailed Description

template<typename T, auto V>
struct kumi::function::size_or< T, V >

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;