...
Invalid iterator ranges can result from comparison functions that return true for equal values. See STL32-C. Use a Valid Ordering Rule and Meyers 01.
Non-Compliant Code Example
...
Rule | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
STL31-C | 3 (high) | 2 (probable) | 1 (high) | P6 | L2 |
References
Wiki Markup |
---|
\[[Sutter 05|AA. C++ References#Sutter 05]\] Item 83: Use a checked STL implementation. |
...
\[[Meyers 01|AA. C++ References#Meyers 01]\] Item 21: Always have comparison functions return false for equal values. \[[ISO/IEC 14882-2003|AA. C++ References#ISO/IEC 14882-2003]\] Section 24: Iterators Library. |