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

Public Member Functions

template<typename I , typename S , typename O , typename BOp = minus, typename P = identity>
adjacent_difference_result< I, O > operator() (I first, S last, O result, BOp bop=BOp{}, P proj=P{}) const
 
template<typename I , typename S , typename O , typename S2 , typename BOp = minus, typename P = identity>
adjacent_difference_result< I, O > operator() (I first, S last, O result, S2 end_result, BOp bop=BOp{}, P proj=P{}) const
 
template<typename Rng , typename ORef , typename BOp = minus, typename P = identity, typename I = iterator_t<Rng>, typename O = uncvref_t<ORef>>
adjacent_difference_result< borrowed_iterator_t< Rng >, O > operator() (Rng &&rng, ORef &&result, BOp bop=BOp{}, P proj=P{}) const
 
template<typename Rng , typename ORng , typename BOp = minus, typename P = identity, typename I = iterator_t<Rng>, typename O = iterator_t<ORng>>
adjacent_difference_result< borrowed_iterator_t< Rng >, borrowed_iterator_t< ORng > > operator() (Rng &&rng, ORng &&result, BOp bop=BOp{}, P proj=P{}) const
 

Member Function Documentation

◆ operator()() [1/4]

template<typename I , typename S , typename O , typename BOp = minus, typename P = identity>
adjacent_difference_result<I, O> ranges::adjacent_difference_fn::operator() ( first,
last,
result,
BOp  bop = BOp{},
proj = P{} 
) const
Precondition
requires sentinel_for<S, I> && differenceable<I, O, BOp, P>

◆ operator()() [2/4]

template<typename I , typename S , typename O , typename S2 , typename BOp = minus, typename P = identity>
adjacent_difference_result<I, O> ranges::adjacent_difference_fn::operator() ( first,
last,
result,
S2  end_result,
BOp  bop = BOp{},
proj = P{} 
) const
Precondition
requires sentinel_for<S, I> && sentinel_for<S2, O> && differenceable<I, O, BOp, P>

◆ operator()() [3/4]

template<typename Rng , typename ORef , typename BOp = minus, typename P = identity, typename I = iterator_t<Rng>, typename O = uncvref_t<ORef>>
adjacent_difference_result<borrowed_iterator_t<Rng>, O> ranges::adjacent_difference_fn::operator() ( Rng &&  rng,
ORef &&  result,
BOp  bop = BOp{},
proj = P{} 
) const
Precondition
requires range<Rng> && differenceable<I, O, BOp, P>

◆ operator()() [4/4]

template<typename Rng , typename ORng , typename BOp = minus, typename P = identity, typename I = iterator_t<Rng>, typename O = iterator_t<ORng>>
adjacent_difference_result<borrowed_iterator_t<Rng>, borrowed_iterator_t<ORng> > ranges::adjacent_difference_fn::operator() ( Rng &&  rng,
ORng &&  result,
BOp  bop = BOp{},
proj = P{} 
) const
Precondition
requires range<Rng> && range<ORng> && differenceable<I, O, BOp, P>

References ranges::aux::move.