The Standard C++ Library iostreams facility uses callback functions to allow a program to respond to certain events. A program registers a callback by providing an ordinary function with an appropriate signature and calling ios_base::register_callback with a pointer to the function and an index into the streams parray. The callback function is then called any time one of the following occurs:
Destruction of a stream; ios_base::~ios_base() is called.
Imbuing a locale; ios_base::imbue() is called.
Copying the stream state; ios_base::cpyfmt() is called.
OEM Edition, ©Copyright 1999, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.