The le operator in the last element below is an example of a value comparison operator.
下面最后一个元素中的le运算符就是值比较运算符的一个例子。
std::pair has a comparison operator that does effectively the same comparisons as your version.
pair有一个比较运算符,跟你刚才写的那个一样。
The goal here is to avoid accidentally using the single-equals assignment operator instead of the double-equals comparison operator
目标在于避免意外地使用单等号赋值运算符而非双等号比较运算符
应用推荐