variable template
std::ranges::views::adjacent
- Header
<ranges>- Draft
- [ranges.syn]
- Scope
std::ranges::views- cppreference
- <ranges> nearest page
Synopsis
template<size_t N>
constexpr /* implementation-defined */ adjacent = {};Call signatures
adjacent is a function object; these are its call operators as libycxx declares them, written as the functions the draft declares.
- (1)
template<class E> requires (N == 0 && std::ranges::forward_range<E>) || requires { std::ranges::adjacent_view<std::views::all_t<E>, N>(std::declval<E>()); } [[nodiscard]] constexpr auto adjacent(E&& e);