std::ranges::enumerate_view<V>::iterator<Const>::index
From cppreference.com
< cpp | ranges | enumerate view | iterator
C++
Ranges library
| ||||||||||||||||||||||
| Range primitives | |||||||
| |||||||
| Range concepts | |||||||||||||||||||
| |||||||||||||||||||
| Range factories | |||||||||
| |||||||||
| Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||
| Helper items | |||||||||||||||||
| |||||||||||||||||
std::ranges::enumerate_view
| Member functions | ||||
(C++26) | ||||
| Deduction guides | ||||
| Nested classes | ||||
| Iterator | ||||
enumerate_view::iterator::index | ||||
| Sentinel | ||||
| constexpr difference_type index() const noexcept; |
(since C++23) | |
Returns the underlying index pos_ of the current element. Equivalent to: return pos_;.
[edit] Parameters
(none)
[edit] Example
| This section is incomplete Reason: no example |