libycxx

function object

std::ranges::views::as_const

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

Synopsis

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

Call signatures

as_const 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 (kind<E>() != 0)
    [[nodiscard]] constexpr auto as_const(E&& e);
    (1)