阅读背景:

如何最好地重载operator <> <=> =但只写一个或两个比较函数?

来源:互联网 

I have a class with an attribute of type std::string. I'd like to provide some comparison operator functions like <, >, ==, <=, and >= for the class by comparing the attribute. I have a class with an attribute of type std::s




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: