function object
std::ranges::views::filter
- Header
<ranges>- Draft
- [ranges.syn]
- 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)); }; - (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);