No it uses the <
operator. If a<b
is false and a>b
is also false then it must be that a equals b.
In fact strcmp
cannot be used for std::string
comparisons because strcmp
treats the nul character (''
) as the end of a string, but std::string
can contain nul characters.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…