C++20草案中的宇宙飞船运算符(spaceship operator)

C++20草案中的宇宙飞船运算符(<=>,spaceship operator) Herb Sutter提议的新三路运算符<=>已经被合入C++20草案中。web 宇宙飞船运算符(hh)形式如lhs<=>rhs。 好比a与b是整型,那么a<=>b返回std::strong_ordering类型的纯右值(prvalue,不能取地址那种):less 若是a<b,(a<=>b)返回std::strong
相关文章
相关标签/搜索