4#ifndef TETL_ALGORITHM_SHIFT_LEFT_HPP
5#define TETL_ALGORITHM_SHIFT_LEFT_HPP
7#include <etl/_algorithm/move.hpp>
8#include <etl/_concepts/emulation.hpp>
9#include <etl/_iterator/iterator_traits.hpp>
22template <
typename ForwardIt>
33 if constexpr (
etl::detail::RandomAccessIterator<ForwardIt>) {
34 if (n >= last - first) {
47 first =
etl::move(start, last, first);
constexpr auto shift_left(ForwardIt first, ForwardIt const last, typename iterator_traits< ForwardIt >::difference_type n) -> ForwardIt
Shifts the elements in the range [first, last) by n positions.
Definition shift_left.hpp:23
Definition adjacent_find.hpp:9
iterator_traits is the type trait class that provides uniform interface to the properties of LegacyIt...
Definition iterator_traits.hpp:48