types/description: add arity_traits specialisation for std::array

This commit is contained in:
Danny Robson 2019-12-16 16:16:15 +11:00
parent 3152ed3277
commit 599a932dfe

View File

@ -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>
constexpr auto arity_v = arity_trait<T>::value;