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

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

返回当前元素的底层索引 pos_。等价于:return pos_;

参数

(无)

示例