libycxx

function object

std::ranges::views::common

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

Synopsis

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

Call signatures

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