home *** CD-ROM | disk | FTP | other *** search
- In compilers that conform to the ANSI C++ WORKING PAPER, the new
- operator will not return zero if the requested memory cannot be
- allocated. Instead an exception will occur. The effect of the
- exception is to transfer control to an exception handler. The
- code you see here may replace the two lines of code above.
- The call of the new operator is in the block of code beginning
- with the keyword try. The exception handler is the block of
- code beginning with the keyword catch.
-