ios_base::register_callback

ios_base::register_callback

void register_callback(event_callback pfn, int idx);

The member function pushes the pair {pfn, idx} onto the stored callback stack. When a callback eventev is reported, the functions are called, in reverse order of registry, by the expression (*pfn)(ev, *this, idx).