名前空間
変種

std::set<Key,Compare,Allocator>::end, std::set<Key,Compare,Allocator>::cend

提供: cppreference.com
 
 
 
 
<tbody> </tbody> <tbody class="t-dcl-rev "> </tbody><tbody> </tbody> <tbody class="t-dcl-rev "> </tbody><tbody> </tbody>
iterator end();
(C++11未満)
iterator end() noexcept;
(C++11以上)
const_iterator end() const;
(C++11未満)
const_iterator end() const noexcept;
(C++11以上)
const_iterator cend() const noexcept;
(C++11以上)

コンテナの最後の要素の次の要素を指すイテレータを返します。

この要素はプレースホルダとしての役割を持ちます。 この要素にアクセスを試みると未定義動作になります。

引数

(なし)

戻り値

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

計算量

一定。

ノート

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

関連項目

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