libycxx

function object

std::ranges::views::filter

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

Synopsis

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

Call signatures

filter is a function object; these are its call operators as libycxx declares them, written as the functions the draft declares.

  1. template<class P>
    [[nodiscard]] constexpr auto filter(
        P&& p) noexcept(noexcept(bind-adaptor(*this, static_cast<P &&>(p))))  requires requires { bind-adaptor(*this, static_cast<P&&>(p)); };
    (1)
  2. template<class E, class P>
      requires requires { std::ranges::filter_view(
        std::declval<E>(),
        std::declval<P>()); }
    [[nodiscard]] constexpr auto filter(E&& e, P&& p);
    (2)