...
Invalid iterator ranges can result from comparison functions that return true for equal values. See STL32-CCPP. Use a Valid Ordering Rule and Meyers 01.
...
STL30-C. Use Valid Iterators 14. Templates and the STL (TPL) STL32-CCPP. Use a Valid Ordering Rule