C++ Safely and Efficiently Casting std::weak_ordering to int

前端 未结 0 670
栀梦
栀梦 2021-02-13 10:42

C++20 is introducing a new comparison type: std::weak_ordering.

It allows for representing less than, equal to, or greater than.

However, some older functions use

相关标签:
回答
  • 消灭零回复
提交回复
热议问题