【发布时间】:2021-01-07 11:16:27
【问题描述】:
所有基本比较(<、<=、==、!=、>=、>)都有一个关联的函数对象(std::less、std::less_equal、std::equal_to, std::not_equal_to, std::greater_equal, std::greater)。
宇宙飞船算子<=>有类似的函数对象吗?
如果没有,为什么没有加入标准库?
【问题讨论】:
标签: c++ c++20 comparison-operators spaceship-operator