-1 > 0u; // true std::cmp_greater(-1, 0u); // false若T 或U 不是有符号或无符号整数类型(包括标准整数类型与扩展整数类型),则为编译时错误。 参数t - 左侧参数 u - 右侧参数 返回值1) 若t 等于u 则为true。2) 若t 不等于 u 则为true。
(std::cmp_less(-1, 1U));static_assert(std::cmp_less_equal(-1, 1U));static_assert(!std::cmp_greater(-1, 1U));static_assert(!std::cmp_greater_equal(-1, 1U));static_assert(-1==0xFFFFFFFFU);//< warning: sign-unsign comparisonstatic_assert(std::cmp_not_equal(-1, 0xFFFFFFFFU...
template<class T> struct greater_equal<std::experimental::propagate_const<T>>; (库基础 TS v2) 为std::experimental::propagate_const<T> 部分特化标准比较函数对象。 令p.t_ 代表std::experimental::propagate_const<T> p 所包装的仿指针对象,则给定 std::experimental::propagate_const<T> 类型的指针...
std::not_equal_to<std::experimental::propagate_const<T>>()(p, q) == std::not_equal_to<T>()(p.t_, q.t_) std::less<std::experimental::propagate_const<T>>()(p, q) == std::less<T>()(p.t_, q.t_) std::greater<std::experimental::propagate_const<T>>()(p, q) =...