首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

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_basestd::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)

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com