13#ifndef RANGES_V3_ALGORITHM_REVERSE_COPY_HPP
14#define RANGES_V3_ALGORITHM_REVERSE_COPY_HPP
20#include <range/v3/algorithm/result_types.hpp>
28#include <range/v3/utility/static_const.hpp>
30#include <range/v3/detail/prologue.hpp>
36 template<
typename I,
typename O>
37 using reverse_copy_result = detail::in_out_result<I, O>;
39 RANGES_FUNC_BEGIN(reverse_copy)
42 template(
typename I,
typename S,
typename O)(
45 constexpr reverse_copy_result<I, O> RANGES_FUNC(reverse_copy)(I
first, S end_, O out)
47 I last = ranges::next(first, end_), res = last;
48 for(;
first != last; ++out)
54 template(
typename Rng,
typename O)(
57 constexpr reverse_copy_result<borrowed_iterator_t<Rng>, O>
58 RANGES_FUNC(reverse_copy)(Rng && rng, O out)
60 return (*
this)(begin(rng), end(rng), std::move(out));
63 RANGES_FUNC_END(reverse_copy)
67 using ranges::reverse_copy;
68 using ranges::reverse_copy_result;
73#include <range/v3/detail/epilogue.hpp>
The bidirectional_iterator concept.
The bidirectional_range concept.
The indirectly_copyable concept.
The sentinel_for concept.
The weakly_incrementable concept.
decltype(begin(declval(Rng &))) iterator_t
Definition access.hpp:698
front< Pair > first
Retrieve the first element of the pair Pair.
Definition meta.hpp:2251
Definition adjacent_find.hpp:67