Namespaces
Variants

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

From cppreference.net

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 起)

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

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

range-begin-end.svg

目录

返回值

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

复杂度

常量。

示例

参见

返回指向末尾的迭代器
(公开成员函数)
(C++11) (C++14)
返回指向容器或数组起始位置的迭代器
(函数模板)