I am trying to find an online link to see the safety of exceptions from multiple std containers.
In the case of std::vector , does the previous push_back call keep state? I would suggest that a vector has all of its objects still valid (no destructors called). What guarantees do std::vector offer after push_back throws a std::bad_alloc ?
source share