Range-v3
Range algorithms, views, and actions for the Standard Library
replace_copy_if.hpp File Reference

Typedefs

template<typename I , typename O >
using ranges::replace_copy_if_result = detail::in_out_result< I, O >
 

Functions

template<typename I , typename S , typename O , typename C , typename T , typename P = identity>
requires input_iterator<I> && sentinel_for<S, I> && output_iterator<O, T const &> && indirect_unary_predicate<C, projected<I, P>> && indirectly_copyable<I, O>
constexpr replace_copy_if_result< I, O > ranges::replace_copy_if (I first, S last, O out, C pred, T const &new_value, P proj={})
 function template replace_copy_if
 
template<typename Rng , typename O , typename C , typename T , typename P = identity>
requires input_range<Rng> && output_iterator<O, T const &> && indirect_unary_predicate<C, projected<iterator_t<Rng>, P>> && indirectly_copyable<iterator_t<Rng>, O>
constexpr replace_copy_if_result< borrowed_iterator_t< Rng >, O > ranges::replace_copy_if (Rng &&rng, O out, C pred, T const &new_value, P proj={})
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.