function object
std::ranges::prev
- Header
<iterator>- Scope
std::ranges- cppreference
- std::ranges::prev
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); - (2)
template<std::bidirectional_iterator I> constexpr I prev(I x, std::iter_difference_t<I> n); - (3)
template<std::bidirectional_iterator I> constexpr I prev(I x, std::iter_difference_t<I> n, I y_bound);