📜  三路比较c++代码示例

📅  最后修改于: 2022-03-11 14:44:48.407000             🧑  作者: Mango

代码示例1
lhs <=> rhs //Since C++20 
The expression returns an object that:
- compares <0 if lhs < rhs
- compares >0 if lhs > rhs
- compares ==0 if lhs and rhs are equal/equivalent.