function object
std::ranges::views::indices
- Header
<ranges>- Draft
- [ranges.syn]
- Scope
std::ranges::views- cppreference
- <ranges> nearest page
Synopsis
inline constexpr /* implementation-defined */ indices = {};Call signatures
indices is a function object; these are its call operators as libycxx declares them, written as the functions the draft declares.
- (1)
template<class E> requires integer-like<std::remove_cvref_t<E>> && requires { iota_fn{}(std::remove_cvref_t<E>(0), std::declval<E>()); } [[nodiscard]] constexpr auto indices( E&& e) noexcept(noexcept(iota_fn{}(std::remove_cvref_t<E>(0), static_cast<E &&>(e))));