libycxx

function object

std::ranges::views::as_input

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

Synopsis

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

Call signatures

as_input 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 (std::ranges::input_range<E> && !std::ranges::common_range<E> && !std::ranges::forward_range<E> &&
                 requires { std::views::all(std::declval<E>()); }) ||
                requires { std::ranges::as_input_view(std::declval<E>()); }
    [[nodiscard]] constexpr auto as_input(E&& e);
    (1)