function object
std::ranges::views::chunk_by
- Header
<ranges>- Draft
- [ranges.syn]
- Scope
std::ranges::views- cppreference
- <ranges> nearest page
Synopsis
inline constexpr /* implementation-defined */ chunk_by = {};Call signatures
chunk_by 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 chunk_by( 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::chunk_by_view( std::declval<E>(), std::declval<P>()); } [[nodiscard]] constexpr auto chunk_by(E&& e, P&& p);