Spec-Zone.ru › C++

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

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

Возвращает базовый индекс pos_ текущего элемента. Эквивалентно: return pos_;.

Параметры

(нет)

Пример

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API