02-03-2021, 03:04 PM
Stack Overflow 中相关问题:
https://stackoverflow.com/questions/7648...e-standard
答案是肯定的,这个在C++标准的Associative containers一节中说明。[n4659 26.2.6.1]
https://stackoverflow.com/questions/7648...e-standard
答案是肯定的,这个在C++标准的Associative containers一节中说明。[n4659 26.2.6.1]
引用:11 The fundamental property of iterators of associative containers is that they iterate through the containersin the non-descending order of keys where non-descending is defined by the comparison that was used toconstruct them. For any two dereferenceable iterators i and j such that distance from i to j is positive, the following condition holds:
value_comp(*j, *i) == false