宇宙飞船操作员有 std::less/std::greater 吗?

Is there a std::less/std::greater for the spaceship operator?

所有基本比较(<<===!=>=>)都有关联函数对象(std::lessstd::less_equalstd::equal_tostd::not_equal_tostd::greater_equalstd::greater)。

飞船操作符<=>有没有类似的功能对象? 如果不是,为什么没有加入标准库?

std::compare_three_way 是用于 three-way 比较的函数对象(又名飞船运算符)。