The current sequential implementation of rotate does only work with RandomAccess Iterators, as the return value is computed using + and -.
This should be extended to support generic ForwardIterators.
Background:
Since C++11 the the rotate function returns the iterator marking the split location after the rotate was performed.
The current sequential implementation of rotate does only work with RandomAccess Iterators, as the return value is computed using + and -. This should be extended to support generic ForwardIterators.
Background: Since C++11 the the rotate function returns the iterator marking the split location after the rotate was performed.