Spec-Zone.ru › C++

std::ranges::enumerate_view<V>::iterator<Const>::operator*

constexpr auto operator*() const;
(с C++23)

Возвращает текущий элемент в enumerate_view.

Эквивалентно: return reference-type(pos_, *current_);.

Параметры

(нет)

Значение результата

Текущий элемент.

Пример

См. также

operator[]
(C++23)
доступ к элементу по индексу
(публичный член-функция)

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

Spec-Zone.ru

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