function object
std::ranges::shift_left
- Header
<algorithm>- Draft
- [alg.shift]
- Scope
std::ranges- cppreference
- std::ranges::shift_left
Synopsis
inline constexpr /* implementation-defined */ shift_left = {};Call signatures
shift_left is a function object; these are its call operators as libycxx declares them, written as the functions the draft declares.
- (1)
template<std::ranges::forward_range R> requires std::permutable<iterator_t<R>> constexpr borrowed_subrange_t<R> shift_left( R&& r, std::ranges::range_difference_t<R> n); - (2)
template<std::permutable I, std::sentinel_for<I> S> constexpr std::ranges::subrange<I> shift_left( I first, S last, std::iter_difference_t<I> n); - (3)
template< class ExecutionPolicy, sized-random-access-range R> requires execution-policy<ExecutionPolicy> && std::permutable<std::ranges::iterator_t<R>> decltype(auto) shift_left( ExecutionPolicy&&, R&& r, std::ranges::range_difference_t<R> n) noexcept; - (4)
template< class ExecutionPolicy, std::random_access_iterator I, std::sized_sentinel_for<I> S> requires execution-policy<ExecutionPolicy> && std::permutable<I> decltype(auto) shift_left( ExecutionPolicy&&, I first, S last, std::iter_difference_t<I> n) noexcept;