NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
载入中...
搜索中...
未找到
sized_sentinel_for 概念参考

检查哨兵是否支持大小计算 更多...

#include <concepts.hpp>

概念定义

template<typename Sentinel, typename Iterator>
input_iterator<Iterator> && sentinel_for<Sentinel, Iterator> && requires(const Iterator& i, const Sentinel& s) {
} && requires(const Iterator& i, const Sentinel& s) {
{ i + (s - i) } -> same_as<Iterator>;
}
检查类型是否为输入迭代器
检查两个类型是否完全相同
检查类型是否为迭代器的哨兵
检查哨兵是否支持大小计算

详细描述

检查哨兵是否支持大小计算

模板参数
Sentinel哨兵类型
Iterator迭代器类型

支持通过哨兵计算迭代器距离的大小感知哨兵。

在文件 concepts.hpp407 行定义.