Namespaces
Variants

std::hive<T,Allocator>::begin, std::hive<T,Allocator>::cbegin

ja.cppreference.net より

 
 
 
 
iterator begin() noexcept;
(1) (C++26以降)
const_iterator begin() const noexcept;
(2) (C++26以降)
const_iterator cbegin() const noexcept;
(3) (C++26以降)

最初の要素を指すイテレータを返します。hive.

もし hive が空の場合、返されるイテレータは end().

戻り値

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

計算量

定数時間。

例

Template:cpp/container/begin/examples/hive

関連項目

終端を指すイテレータを返します
(パブリックメンバ関数)
(C++11)(C++14)
コンテナまたは配列の先頭を指すイテレータを返します
(関数テンプレート)