3#ifndef TETL_ALGORITHM_ROTATE_HPP
4#define TETL_ALGORITHM_ROTATE_HPP
16template <
typename ForwardIt>
17constexpr auto rotate(ForwardIt first, ForwardIt nFirst, ForwardIt last) -> ForwardIt
19 if (first == nFirst) {
28 auto nextRead = first;
30 while (read != last) {
31 if (write == nextRead) {
constexpr auto iter_swap(ForwardIt1 a, ForwardIt2 b) -> void
Swaps the values of the elements the given iterators are pointing to.
Definition iter_swap.hpp:19
constexpr auto rotate(ForwardIt first, ForwardIt nFirst, ForwardIt last) -> ForwardIt
Performs a left rotation on a range of elements.
Definition rotate.hpp:17
Definition adjacent_find.hpp:8