Adaptation of std::integer_sequence
for Hana.
Comparable
std::integer_sequence
s are equal if and only if they have the same number of elements, and if corresponding elements compare equal. The types of the elements held in both integer_sequence
s may be different, as long as they can be compared. Foldable
integer_sequence
is equivalent to folding a sequence of std::integral_constant
s with the corresponding types. Iterable
integer_sequence
is equivalent to iterating over a sequence of the corresponding std::integral_constant
s. Searchable
integer_sequence
is equivalent to searching through the corresponding sequence of std::integral_constant
s.