'exception' question
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???
The views expressed are those of the author and do not reflect any position taken by the Goverment of the United States of America, National Aeronautics and Space Administration (NASA), Jet Propulsion Laboratory (JPL), or California Institute of Technology (CalTech)