名前空間
変種
操作

std::array<T,N>::begin, std::array<T,N>::cbegin

提供: cppreference.com
< cpp‎ | container‎ | array
 
 
 
std::array
メンバ関数
要素アクセス
イテレータ
array::beginarray::cbegin
容量
変更
非メンバ関数
(C++20)
(C++20未満)(C++20未満)(C++20未満)(C++20未満)(C++20未満)(C++20)
ヘルパークラス
推定ガイド(C++17)
 
iterator begin() noexcept;
(C++17未満)
constexpr iterator begin() noexcept;
(C++17以上)
const_iterator begin() const noexcept;
(C++17未満)
constexpr const_iterator begin() const noexcept;
(C++17以上)
const_iterator cbegin() const noexcept;
(C++17未満)
constexpr const_iterator cbegin() const noexcept;
(C++17以上)

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

コンテナが空の場合は、返されたイテレータは end() と等しくなります。

range-begin-end.svg

目次

[編集] 引数

(なし)

[編集] 戻り値

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

[編集] 計算量

一定。


[編集]

[編集] 関連項目

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