libycxx

function object

std::ranges::views::counted

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

Synopsis

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

Call signatures

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

  1. template<class E, class F>
      requires counted-ok<E, F>
    [[nodiscard]] constexpr auto counted(E&& e, F&& f);
    (1)