libycxx

function object

std::ranges::prev

Scope
std::ranges

Synopsis

inline constexpr /* implementation-defined */ prev = {};

Call signatures

prev is a function object; these are its call operators as libycxx declares them, written as the functions the draft declares.

  1. template<std::bidirectional_iterator I>
    constexpr I prev(I x);
    (1)
  2. template<std::bidirectional_iterator I>
    constexpr I prev(I x, std::iter_difference_t<I> n);
    (2)
  3. template<std::bidirectional_iterator I>
    constexpr I prev(I x, std::iter_difference_t<I> n, I y_bound);
    (3)