types/description: add arity_traits specialisation for std::array
This commit is contained in:
parent
3152ed3277
commit
599a932dfe
@ -54,6 +54,13 @@ namespace cruft::types {
|
|||||||
> { };
|
> { };
|
||||||
|
|
||||||
|
|
||||||
|
//-------------------------------------------------------------------------
|
||||||
|
template <std::size_t S, typename T>
|
||||||
|
struct arity_trait<
|
||||||
|
std::array<T,S>
|
||||||
|
> : public std::integral_constant<std::size_t, S> { };
|
||||||
|
|
||||||
|
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
template <typename T>
|
template <typename T>
|
||||||
constexpr auto arity_v = arity_trait<T>::value;
|
constexpr auto arity_v = arity_trait<T>::value;
|
||||||
|
Loading…
Reference in New Issue
Block a user