end
指定されたコンテナーの最後の要素の後ろにある要素への反復子を取得します。
template<class Container>
auto end(Container& cont)
-> decltype(cont.end());
template<class Container>
auto end(const Container& cont)
-> decltype(cont.end());
template<class Ty, class Size>
Ty *end(Ty (&array)[Size]);
パラメーター
cont
コンテナー。array
Ty 型のオブジェクトの配列。
戻り値
最初の 2 つのテンプレート関数は cont.end() を返します (最初は非定数で、2 番目は定数です)。
3 番目のテンプレート関数は array + Size を返します。
解説
コード例については、「begin」を参照してください。
必要条件
ヘッダー:<iterator>
名前空間: std