📜  三路比较运算符c++代码示例

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

代码示例1
//Since C++20
    lhs <=> rhs  
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.