std::ios_base::event_callback
typedef void (*event_callback)(event type, ios_base& ios, int index); | | |
|---|
可以使用register_callback()在特定事件上被召唤。
type是类型的值。ios_base::event它指示将调用此回调的事件的类型。
ios引用调用回调的流对象:*this调用时作为参数传递。std::ios_base和std::basic_ios成员职能。
index是用户提供的值传递给register_callback()注册函数时。
另见
copyfmt | copies formatting information (public member function of std::basic_ios) |
|---|---|
imbue | sets locale (public member function) |
(destructor) virtual | destructs the object (virtual public member function) |
register_callback | registers event callback function (public member function) |
© cppreference.com在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

