Closed ryanhaining closed 7 years ago
Maybe add a plainer iteration type which with an operator implicit type conversion which strips out the extra metadata?
I was thinking of providing get
for the yielded type. If I don't care about compatibility I could have it yield pair
, which I should've done in the first place, seems a little late for that change now though.
Turns out all I needed was tuple_size
and tuple_element
. std::get(std::pair)
took care of the rest.
Currently this is invalid with c++17
because the object returned by enumerate's iterator's
operator*
is a subclass of pair with more data members. In some way, the above should work.