libycxx

function object

std::ranges::views::lazy_split

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

Synopsis

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

Call signatures

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

  1. template<class F>
    [[nodiscard]] constexpr auto lazy_split(
        F&& f) noexcept(noexcept(bind-adaptor(*this, static_cast<F &&>(f))))  requires requires { bind-adaptor(*this, static_cast<F&&>(f)); };
    (1)
  2. template<class E, class F>
      requires requires { View(std::declval<E>(), std::declval<F>()); }
    [[nodiscard]] constexpr auto lazy_split(E&& e, F&& f);
    (2)