function object
std::ranges::next
- Header
<iterator>- Scope
std::ranges- cppreference
- std::ranges::next
Synopsis
inline constexpr /* implementation-defined */ next = {};Call signatures
next is a function object; these are its call operators as libycxx declares them, written as the functions the draft declares.
- (1)
template<std::input_or_output_iterator I> constexpr I next(I x); - (2)
template<std::input_or_output_iterator I> constexpr I next(I x, std::iter_difference_t<I> n); - (3)
template<std::input_or_output_iterator I, std::sentinel_for<I> S> constexpr I next(I x, S y_bound); - (4)
template<std::input_or_output_iterator I, std::sentinel_for<I> S> constexpr I next(I x, std::iter_difference_t<I> n, S y_bound);