kblib 0.2.3
General utilities library for modern C++
kblib::detail_algorithm Namespace Reference

Functions

template<class ForwardIt >
constexpr auto shift_backward (ForwardIt first, ForwardIt n_first, ForwardIt last) noexcept(noexcept(*first=std::move(*first))) -> void
 Implementation function for insertion_sort_copy. Like std::move(begin, end, d_begin) but using the interface of rotate and supporting backward overlapping, but not forward overlapping. More...
 

Function Documentation

◆ shift_backward()

template<class ForwardIt >
constexpr auto kblib::detail_algorithm::shift_backward ( ForwardIt  first,
ForwardIt  n_first,
ForwardIt  last 
) -> void
constexprnoexcept

Implementation function for insertion_sort_copy. Like std::move(begin, end, d_begin) but using the interface of rotate and supporting backward overlapping, but not forward overlapping.

Parameters
firstStart of range to assign to
n_firstStart of range to read from
lastEnd of range to read from

Definition at line 1714 of file algorithm.h.