命名空间
变体
操作

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

来自 cppreference.cn
 
 
范围库
范围适配器
 
 
constexpr difference_type index() const noexcept;
(自 C++23 起)

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

[编辑] 参数

(无)

[编辑] 示例