Does ISO C++ standard mandate any sort of destruction order of objects inside STL containers?
- Are
std::list/std::vector/std::mapelements destroyed starting from the beginning or the end of the container? - Can I rely on
std::mapstoring its elements instd::pairs internally so a key in a pair is destroyed before its value (or vice versa)?