Header file range/v3/algorithm/replace_copy.hpp

#include <meta/meta.hpp>

#include <range/v3/range_fwd.hpp>

#include <range/v3/begin_end.hpp>

#include <range/v3/range_concepts.hpp>

#include <range/v3/range_traits.hpp>

#include <range/v3/utility/iterator_concepts.hpp>

#include <range/v3/utility/iterator_traits.hpp>

#include <range/v3/utility/functional.hpp>

#include <range/v3/utility/static_const.hpp>

#include <range/v3/utility/tagged_pair.hpp>

#include <range/v3/algorithm/tagspec.hpp>

namespace ranges
{
    inline namespace v3
    {
        template <typename I, typename O, typename T0, typename T1, typename P = ident>
        using ReplaceCopyable = meta::strict_and<InputIterator<I>, OutputIterator<O, T1 const&>, IndirectlyCopyable<I, O>, IndirectCallableRelation<equal_to, projected<I, P>, T0 const*>>;
        
        struct replace_copy_fn;
        
        inline namespace 
        {
            constexpr auto& replace_copy = static_const<with_braced_init_args<replace_copy_fn>>::value;
        }
    }
}

Class ranges::v3::replace_copy_fn

struct replace_copy_fn
{
    template <typename I, typename S, typename O, typename T0, typename T1, typename P = ident, int _concept_requires_45 = 42, typename std::enable_if<(_concept_requires_45==43)||(ReplaceCopyable<I, O, T0, T1, P>()&&Sentinel<S, I>()), int>::type=0>
    tagged_pair<tag::in(I), tag::out(O)> operator()(I, O, I begin, S end, O out, T0 const& old_value, T1 const& new_value, P proj_ = {}) const;
    
    template <typename Rng, typename O, typename T0, typename T1, typename P = ident, typename I = range_iterator_t<Rng>, int _concept_requires_62 = 42, typename std::enable_if<(_concept_requires_62==43)||(ReplaceCopyable<I, O, T0, T1, P>()&&Range<Rng>()), int>::type=0>
    tagged_pair<tag::in(range_safe_iterator_t<Rng>), tag::out(O)> operator()(range_safe_iterator_t<Rng>, O, Rng&& rng, O out, T0 const& old_value, T1 const& new_value, P proj = {}) const;
};

@{


Variable ranges::v3::replace_copy

constexpr auto& replace_copy = static_const<with_braced_init_args<replace_copy_fn>>::value;

replace_copy_fn