std::array<T,N>::begin, std::array<T,N>::cbegin_C++中文网
位置:首页 > C++ 参考手册 >容器库 >std::array > std::array<T,N>::begin, std::array<T,N>::cbegin
| 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 起) | |
返回指向 array 首元素的迭代器。
若 array 为空,则返回的迭代器将等于 end() 。
参数
(无)
返回值
指向首元素的迭代器。
复杂度
常数。
示例
| 本节未完成 原因:暂无示例 |
参阅
| 返回指向容器尾端的迭代器 (公开成员函数) |