...
Invalid iterator ranges can result from comparison functions that return true for equal values. See STL32ARR40-CPP. Use a Valid Ordering Rule and Meyers 01.
...
ARR32-CPP. Do not use iterators invalidated by container modification 14. Templates and the STL (STL) STL32ARR40-CPP. Use a Valid Ordering Rule