Can someone quickly tell me what type of exception is thrown when an STL container is full...?


imagine...

int main(void) {
std::vector<int> myVec;

// loop only exited via exception (which exception???)
for ( ; ; ) {
myVec.push_back(42); // the answer
}

return 0;
}

what exception is generated???