function object
std::ranges::copy_backward
- Header
<algorithm>- Draft
- [alg.copy]
- Scope
std::ranges- cppreference
- std::ranges::copy_backward
Synopsis
inline constexpr /* implementation-defined */ copy_backward = {};Call signatures
copy_backward is a function object; these are its call operators as libycxx declares them, written as the functions the draft declares.
- (1)
template<std::ranges::bidirectional_range R, std::bidirectional_iterator I> requires std::indirectly_copyable<iterator_t<R>, I> constexpr std::ranges::copy_backward_result<borrowed_iterator_t<R>, I> copy_backward( R&& r, I result); - (2)
template< std::bidirectional_iterator I1, std::sentinel_for<I1> S1, std::bidirectional_iterator I2> requires std::indirectly_copyable<I1, I2> constexpr std::ranges::copy_backward_result<I1, I2> copy_backward( I1 first, S1 last, I2 result);