命名空间
变体
操作

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

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

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

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

range-begin-end.svg

目录

[edit] 返回值

指向首元素的迭代器。

[edit] 复杂度

常数。

[edit] 示例

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

[edit] 参见

返回指向末尾的迭代器
(公共成员函数) [编辑]
(C++11)(C++14)
返回指向容器或数组开头的迭代器
(函数模板) [编辑]