You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just realised in the base() documentation that The base iterator refers to the element that is next (from the std::reverse_iterator::iterator_type perspective) to the element the reverse_iterator is currently pointing to.
The above will thus not work as expected, I need to check if there's a better solution.
Something like:
(it.base() - 1).value() = 1;
would work but is very cumbersome and unintuitive.
It's possible provide the value() method for reverse_iterator?
Thanks
The text was updated successfully, but these errors were encountered: