std::ios_base::register_callback
来自cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| void register_callback( event_callback function, int index ); |
||
注册一个函数会被调用特定的事件,这些事件所引发的
imbue(),basic_ios::copyfmt()或~ios_base()Original:
Registers a function which will be called on specific events, which are triggered by
imbue(), basic_ios::copyfmt() or ~ios_base()The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 参数
| function | - | 将被调用的函数的事件
Original: the function which will be called on event
The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||
| index | - | 自定义参数将被传递给函数
Original: custom parameter which will be passed to the function The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[编辑] 返回值
(无)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 为例
(无)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.