close
名前空間
変種

std::set<Key,Compare,Allocator>::rend, std::set<Key,Compare,Allocator>::crend

提供: cppreference.com
 
 
 
 
<tbody> </tbody> <tbody class="t-dcl-rev "> </tbody><tbody> </tbody> <tbody class="t-dcl-rev "> </tbody><tbody> </tbody>
reverse_iterator rend();
(C++11未満)
reverse_iterator rend() noexcept;
(C++11以上)
const_reverse_iterator rend() const;
(C++11未満)
const_reverse_iterator rend() const noexcept;
(C++11以上)
const_reverse_iterator crend() const noexcept;
(C++11以上)

逆順の set の最後の要素の次の要素を指す逆イテレータを返します。 これは非逆順の set}} の最初の要素の前の要素に対応します。 この要素はプレースホルダとして振る舞い、アクセスを試みると未定義動作になります。

Image

引数

(なし)

戻り値

最後の要素の次の要素を指す逆イテレータ。

計算量

定数。

ノート

iteratorconst_iterator はどちらも定数イテレータである (実際には同じ型かもしれない) ため、これらのメンバ関数のいずれによって返されたイテレータを通してもコンテナの要素を変更することはできません。

関連項目

先頭を指す逆イテレータを返します
(パブリックメンバ関数) [edit]