Rotates the elements in a range so that n_first becomes the new first.
Declared in <absl/algorithm/algorithm.h>
template<class ForwardIt>
[[deprecated]]
constexpr
ForwardIt
rotate(
ForwardIt first,
ForwardIt n_first,
ForwardIt last);
Deprecated. Use of this entity is allowed but discouraged.
Performs a left rotation on the range [first, last)] such that the element pointed to by n_first becomes the first element of the range.
An iterator to the new location of the element previously at first.
| Name | Description |
|---|---|
| first | Iterator to the first element of the range. |
| n_first | Iterator to the element that should become the new first. |
| last | Iterator one past the last element of the range. |