Range-v3
Range algorithms, views, and actions for the Standard Library
ranges::replace_if_fn Struct Reference

Public Member Functions

template<typename I , typename S , typename C , typename T , typename P = identity>
auto operator() (I begin, S end, C pred, T const &new_value, P proj=P{}) const -> I requires input_iterator< I > &&sentinel_for< S, I > &&indirect_unary_predicate< C, projected< I, P >> &&writable< I, T const & >
 
template<typename Rng , typename C , typename T , typename P = identity>
auto operator() (Rng &&rng, C pred, T const &new_value, P proj=P{}) const -> safe_iterator_t< Rng > requires input_range< Rng > &&indirect_unary_predicate< C, projected< iterator_t< Rng >, P >> &&writable< iterator_t< Rng >, T const & >