名稱空間
變體
操作

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

來自 cppreference.com
 
 
 
 
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]