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

Typedefs

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

Functions

template<typename I , typename S , typename O , typename C = equal_to, typename P = identity>
requires input_iterator<I> && sentinel_for<S, I> && indirect_relation<C, projected<I, P>> && weakly_incrementable<O> && indirectly_copyable<I, O> && (forward_iterator<I> || forward_iterator<O> || indirectly_copyable_storable<I, O>)
constexpr unique_copy_result< I, O > ranges::unique_copy (I first, S last, O out, C pred=C{}, P proj=P{})
 template function unique_copy More...
 
template<typename Rng , typename O , typename C = equal_to, typename P = identity>
requires input_range<Rng> && indirect_relation<C, projected<iterator_t<Rng>, P>> && weakly_incrementable<O> && indirectly_copyable<iterator_t<Rng>, O> && (forward_iterator<iterator_t<Rng>> || forward_iterator<O> || indirectly_copyable_storable<iterator_t<Rng>, O>)
constexpr unique_copy_result< borrowed_iterator_t< Rng >, O > ranges::unique_copy (Rng &&rng, O out, C pred=C{}, P proj=P{})
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.