Name

set_unexpected function — Changes the unexpected( ) handler

Synopsis

typedef void (*unexpected_handler)(  );
unexpected_handler set_unexpected(unexpected_handler f)
   throw(  );

The set_unexpected function saves f to be used by calls to unexpected. The previous value of the unexpected handler is returned.

Get C++ In a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.