W3cubDocs

/C++

std::ranges::enumerate_view<V>::iterator<Const>::index

constexpr difference_type index() const noexcept;
(since C++23)

Returns the underlying index pos_ of the current element. Equivalent to: return pos_;.

Parameters

(none).

Example

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/ranges/enumerate_view/iterator/index