Yes, because it uses std::less
, which is required to result in a total order even if <
doesn't. (<
would be allowed to treat different pointers from distinct sequences as equal, which would result in an odd behaviour of map
etc if you insert pointers from different sequences).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…