std::hive<T,Allocator>::begin, std::hive<T,Allocator>::cbegin
来自 zh.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) |
返回指向容器或数组起始的迭代器 (函数模板) |