libycxx

variable template

std::ranges::views::elements

Header
<ranges>
Scope
std::ranges::views
cppreference
<ranges> nearest page

Synopsis

template<size_t N>
constexpr /* implementation-defined */ elements = {};

Call signatures

elements 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 requires { std::ranges::elements_view<std::views::all_t<E>, N>{std::declval<E>()}; }
    [[nodiscard]] constexpr auto elements(E&& e);
    (1)