Namespaces
Variants
Views
Actions

std::ios_base::event_callback

From cppreference.com
< cpp‎ | io‎ | ios base
Revision as of 09:57, 31 January 2013 by Cubbi (Talk | contribs)

typedef void (*event_callback)(event type, ios_base& ios, int index);

The type of function callbacks that can be registered using Template:rlpf to be called on specific events.

type is a value of type ios_base::event which indicates the type of the event that will invoke this callback.

ios refers to the stream object for which the callback is invoked: *this is passed as the argument when callbacks are invoked by std::ios_base and std::basic_ios member functions.

index is the user-provided value passed to Template:rlpf when registering the function.

See also

Template:cpp/io/basic ios/dcl list copyfmtTemplate:cpp/io/ios base/dcl list imbueTemplate:cpp/io/ios base/dcl list destructorTemplate:cpp/io/ios base/dcl list register callback