命名空间
变体
操作

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

来自 cppreference.cn
 
 
 
 
constexpr iterator begin() noexcept;
(1) (C++26 起)
constexpr const_iterator begin() const noexcept;
(2) (C++26 起)
constexpr const_iterator cbegin() const noexcept;
(3) (C++26 起)

返回一个指向 `inplace_vector` 首元素的迭代器。

如果 `inplace_vector` 为空,返回的迭代器将等于 end()

range-begin-end.svg

目录

[编辑] 返回值

指向第一个元素的迭代器。

[编辑] 复杂度

常数时间。

[编辑] 示例

Template:cpp/container/begin/examples/inplace vector

[编辑] 参阅

返回指向末尾的迭代器
(public member function) [edit]
(C++11)(C++14)
返回指向容器或数组开头的迭代器
(function template) [edit]