13#ifndef RANGES_V3_ALGORITHM_MOVE_HPP
14#define RANGES_V3_ALGORITHM_MOVE_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 move_result = detail::in_out_result<I, O>;
39 RANGES_HIDDEN_DETAIL(
namespace _move CPP_PP_LBRACE())
40 RANGES_FUNC_BEGIN(move)
43 template(typename I, typename S, typename O)(
44 requires input_iterator<I> AND sentinel_for<S, I> AND
45 weakly_incrementable<O> AND indirectly_movable<I, O>)
46 constexpr move_result<I, O> RANGES_FUNC(move)(I
first, S last, O out)
49 *out = iter_move(
first);
54 template(
typename Rng,
typename O)(
55 requires input_range<Rng> AND weakly_incrementable<O> AND
56 indirectly_movable<iterator_t<Rng>, O>)
57 constexpr move_result<borrowed_iterator_t<Rng>, O>
58 RANGES_FUNC(move)(Rng && rng, O out)
60 return (*
this)(begin(rng), end(rng), std::move(out));
64 RANGES_HIDDEN_DETAIL(CPP_PP_RBRACE())
66#ifndef RANGES_DOXYGEN_INVOKED
71 using aux::move_fn::operator();
72 using _move::move_fn::operator();
80 using ranges::move_result;
81 using ranges::RANGES_HIDDEN_DETAIL(_move::) move;
86#include <range/v3/detail/epilogue.hpp>
I P I S j decltype(detail::insert_impl(static_cast< Cont && >(cont), static_cast< P && >(p), static_cast< I && >(i), static_cast< S && >(j), meta::bool_< random_access_reservable< Cont > &&//sized_sentinel_for< S, I > >{})) template(typename Cont, typename I, typename Rng)(AND input_iterator< I > AND range< Rng >) auto insert(Cont &&cont
function template any_of
Definition: insert.hpp:188
RANGES_INLINE_VARIABLE(detail::to_container_fn< detail::from_range< std::vector > >, to_vector) template< template< typename... > class ContT > auto to(RANGES_HIDDEN_DETAIL(detail
For initializing a container of the specified type with the elements of an Range.
Definition: conversion.hpp:399
front< Pair > first
Retrieve the first element of the pair Pair.
Definition: meta.hpp:2251