Does standard say anything about this situation? or it is an undefined
behavior?
Thanks
------------------------------
map<int, inttest;
test[1] = 1;
test[2] = 2;
test[3] = 3;
test.erase(test.find(1), test.find(2)); // basically this is an
invalid range to erase.
map<int, int>::iterator pos = test.begin();
test.erase(pos, --pos); // another example of invalid range.
----------------------------