std::ios_base::register_callback

From Cppreference

Jump to: navigation, search
void register_callback( event_callback function, int index );

Registers a function which will be called on specific events, which are triggered by imbue(), copyfmt() or ~ios_base()

[edit] Parameters

function - the function which will be called on event
index - custom parameter which will be passed to the function

[edit] Return value

(none)

[edit] Example