Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Examples

std Namespace Reference


Classes

class  bad_exception
 If an exception is thrown which is not listed in a function's exception specification, one of these may be thrown. More...

class  exception
 This is the base class for all exceptions thrown by the standard library, and by certain language expressions. Base class for all library exceptions. More...


Typedefs

typedef void(* terminate_handler )()
 If you write a replacement terminate handler, it must be of this type.

typedef void(* unexpected_handler )()
 If you write a replacement unexpected handler, it must be of this type.


Functions

terminate_handler set_terminate (terminate_handler) throw ()
 Takes a new handler function as an argument, returns the old function.

void terminate () __attribute__((__noreturn__))
 The runtime will call this function if exception handling must be abandoned for any reason.

unexpected_handler set_unexpected (unexpected_handler) throw ()
 Takes a new handler function as an argument, returns the old function.

void unexpected () __attribute__((__noreturn__))
 The runtime will call this function if an exception is thrown which violates the function's exception specification.

bool uncaught_exception () throw ()
 [18.6.4]/1: "Returns true after completing evaluation of a throw-expression until either completing initialization of the exception-declaration in the matching handler or entering unexpected() due to the throw; or after entering terminate() for any reason other than an explicit call to terminate().


Typedef Documentation

typedef void(* std::terminate_handler)()
 

If you write a replacement terminate handler, it must be of this type.

Definition at line 72 of file exception.

typedef void(* std::unexpected_handler)()
 

If you write a replacement unexpected handler, it must be of this type.

Definition at line 74 of file exception.


Function Documentation

terminate_handler set_terminate terminate_handler   )  throw ()
 

Takes a new handler function as an argument, returns the old function.

unexpected_handler set_unexpected unexpected_handler   )  throw ()
 

Takes a new handler function as an argument, returns the old function.

void terminate  ) 
 

The runtime will call this function if exception handling must be abandoned for any reason.

bool uncaught_exception  )  throw ()
 

[18.6.4]/1: "Returns true after completing evaluation of a throw-expression until either completing initialization of the exception-declaration in the matching handler or entering unexpected() due to the throw; or after entering terminate() for any reason other than an explicit call to terminate().

[Note: This includes stack unwinding [15.2]. end note]"

2: "When uncaught_exception() is true, throwing an exception can result in a call of terminate() (15.5.1)."

void unexpected  ) 
 

The runtime will call this function if an exception is thrown which violates the function's exception specification.


Generated on Fri Oct 3 18:41:22 2003 for taptedDevTools by doxygen 1.3.4