命名空间
变体
操作

std::indirectly_comparable

来自 cppreference.cn
< cpp‎ | iterator
 
 
迭代器库
迭代器概念
迭代器原语
算法概念和实用工具
间接可调用概念
常用算法要求
indirectly_comparable
(C++20)
(C++20)
(C++20)
(C++20)
实用工具
(C++20)
迭代器适配器
范围访问
(C++11)(C++14)
(C++14)(C++14)  
(C++11)(C++14)
(C++14)(C++14)  
(C++17)(C++20)
(C++17)
(C++17)
 
定义于头文件 <iterator>
template< class I1, class I2, class Comp,

          class Proj1 = std::identity, class Proj2 = std::identity >
concept indirectly_comparable =

    std::indirect_binary_predicate<Comp, std::projected<I1, Proj1>, std::projected<I2, Proj2>>;
(自 C++20 起)

indirectly_comparable 概念指定了跨两个独立范围比较值的基本算法要求。

[编辑] 语义要求

仅当其包含的所有概念都被建模时,indirectly_comparable 才会被建模。

[编辑] 参见

指定可调用类型在被调用时,如果使用解引用两个 indirectly_readable 类型的结果,则满足 predicate
(concept) [编辑]