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