Adaptation of std::array
for Hana.
Comparable
std::array
s are compared as per std::equal
, except that two arrays with different sizes compare unequal instead of triggering an error and the result of the comparison is constexpr
if both arrays are constexpr
. Orderable
std::array
s are ordered with the usual lexicographical ordering, except that two arrays with different size can be ordered instead of triggering an error and the result of the comparison is constexpr
if both arrays are constexpr
. Foldable
std::accumulate
on it, except it can be constexpr
. Iterable
std::array
is equivalent to iterating over it with a normal for
loop.