std::span<T,Extent>::end

来自cppreference.com
< cpp‎ | container‎ | span
constexpr iterator end() const noexcept;

返回指向 span 末元素后一元素的迭代器。

此元素表现为占位符;试图访问它导致未定义行为。

range-begin-end.svg

目录

[编辑] 参数

(无)

[编辑] 返回值

指向后随最后元素的迭代器。

[编辑] 复杂度

常数。


[编辑] 示例

Template:cpp/container/begin/examples/span

[编辑] 参阅

(C++20)
返回指向起始的迭代器
(公开成员函数) [编辑]