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

Synopsis of methods

constexpr view< replace_fnreplace {}
 

Public Types

template<typename Rng , typename Val1 , typename Val2 , typename V1 = detail::decay_t<unwrap_reference_t<Val1>>, typename V2 = detail::decay_t<unwrap_reference_t<Val2>>>
using Concept = meta::and_< InputRange< Rng >, Same< V1, V2 >, EqualityComparable< V1, range_value_type_t< Rng > >, Common< detail::decay_t< unwrap_reference_t< Val2 const & > >, range_value_type_t< Rng > >, CommonReference< unwrap_reference_t< Val2 const & >, range_reference_t< Rng > >, CommonReference< unwrap_reference_t< Val2 const & >, range_rvalue_reference_t< Rng > >>
 

Public Member Functions

template<typename Rng , typename Val1 , typename Val2 , requires = (Concept<Rng, Val1, Val2>())>
replace_view< all_t< Rng >, detail::decay_t< Val1 >, detail::decay_t< Val2 > > operator() (Rng &&rng, Val1 &&old_value, Val2 &&new_value) const