std::move_iterator<Iter>::operator[]_C++中文网

/*unspecified*/ operator[]( difference_type n ) const;

(C++11 起)
(C++17 前)

constexpr /*unspecified*/ operator[]( difference_type n ) const;

(C++17 起)

返回在指定相相对位置的引用。

参数

n - 相对于当前位置的位置。

返回值

到在相对位置元素的右值引用,即 std::move(base()[n])

示例

本节未完成
原因:暂无示例

参阅

(C++20 中弃用)

访问指向的元素
(公开成员函数)