libycxx

function object

std::ranges::views::iota

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

Synopsis

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

Call signatures

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

  1. template<class Wp>
      requires requires { std::ranges::iota_view<std::decay_t<Wp>>(std::declval<Wp>()); }
    [[nodiscard]] constexpr auto iota(
        Wp&& value) noexcept(noexcept(std::ranges::iota_view<std::decay_t<Wp>>(static_cast<Wp &&>(value))));
    (1)
  2. template<class Wp, class B>
      requires requires { std::ranges::iota_view(
        std::declval<Wp>(),
        std::declval<B>()); }
    [[nodiscard]] constexpr auto iota(
        Wp&& value,
        B&& y_bound) noexcept(noexcept(std::ranges::iota_view(static_cast<Wp &&>(value), static_cast<B &&>(y_bound))));
    (2)