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

Public Member Functions

template<typename C , typename P = identity>
constexpr auto operator() (C pred, P proj=P{}) const
 
template<typename Rng , typename C = equal_to, typename P = identity>
Rng operator() (Rng &&rng, C pred=C{}, P proj=P{}) const
 

Member Function Documentation

◆ operator()() [1/2]

template<typename C , typename P = identity>
constexpr auto ranges::actions::unique_fn::operator() ( pred,
proj = P{} 
) const
constexpr
Precondition
requires (!range<C>)

◆ operator()() [2/2]

template<typename Rng , typename C = equal_to, typename P = identity>
Rng ranges::actions::unique_fn::operator() ( Rng &&  rng,
pred = C{},
proj = P{} 
) const
Precondition
requires forward_range<Rng> && erasable_range<Rng &, iterator_t<Rng>, sentinel_t<Rng>> && sortable<iterator_t<Rng>, C, P>