Can the new
operator throw an exception in real life?
And if so, do I have any options for handling such an exception apart from killing my application?
new
operator will throw std::bad_alloc
exception when you run out of the memory ( virtual memory to be precise).
If new
throws an exception then it is a serious error:
std::bad_alloc
exception.