我又查了下,不是数组越界的问题, 是C++中要求容器满足 严格弱序(strict weak ordering)的关系,我的程序在运行时有修改队列中节点权值的操作,因而导致微软实现的检查不能通过,感觉这算是个微软的STL的BUG。
基于60个网页-相关网页
严格弱排序 strict weak ordering
严格的弱序化 strict weak ordering
严格弱序
Strict weak order
以上为机器翻译结果,长、整句建议使用 人工翻译 。
单凭直觉,它(译注:指严格弱序化)意味着按序存放元素,就像使用<比较符将整数排序一样。
Intuitively, my child, it simply means putting the elements in order, just as the < comparison can be used to sort integers in order.
youdao
那么一个严格的弱序化意味着什么呢?
Now what does a strict weak ordering mean?
它定义了一个严格的弱序化(strict weak ordering) !
It imposes a strict weak ordering!
应用推荐
模块上移
模块下移
不移动