命名空间
变体
操作

std::inplace_vector<T,N>::end, std::inplace_vector<T,N>::cend

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

返回指向 inplace_vector 中最后一个元素之后位置的迭代器。

此元素充当占位符;尝试访问它将导致未定义行为。

range-begin-end.svg

目录

[edit] 返回值

指向最后一个元素之后的迭代器。

[edit] 复杂度

常数时间。

[edit] 示例

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

[edit] 参见

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