std::ranges::view_interface<D>::cend
来自cppreference.com
< cpp | ranges | view interface
| constexpr auto cend(); |
(1) | (C++23 起) |
| constexpr auto cend() const requires ranges::range<const D>; |
(2) | (C++23 起) |
cend() 成员函数的默认实现返回针对常量迭代器的范围哨位。
2) 同 (1) ,除了 derived 为 static_cast<const D&>(*this)。
参数
(无)
返回值
针对常量迭代器的范围哨位。
注解
标准库中的所有范围适配器及范围工厂和 std::ranges::subrange 都使用 cend 的默认实现。
示例
| 本节未完成 原因:暂无示例 |
参阅
| (C++11)(C++14) |
返回指向容器或数组结尾的迭代器 (函数模板) |
| (C++20) |
返回指示只读范围结尾的哨位 (定制点对象) |