◐ Shell
clean mode source ↗

std::array<T,N>::begin, std::array<T,N>::cbegin - cppreference.com

提供: cppreference.com

<tbody> </tbody> <tbody class="t-dcl-rev "> </tbody><tbody> </tbody> <tbody class="t-dcl-rev "> </tbody><tbody> </tbody> <tbody class="t-dcl-rev "> </tbody><tbody> </tbody>

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() と等しくなります。

引数

(なし)

戻り値

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

計算量

一定。

関連項目