Cpp-standard-library-cpp-ios-event

提供:Dev Guides
移動先:案内検索

C ++ ios_baseライブラリ-イベント

説明

C ++関数 *ios_base
event* は、ios_base :: register_callbackで登録された関数の最初のパラメーターとして使用されます。 この引数は、関数呼び出しをトリガーしたイベントのタイプを識別します。

宣言

以下は、ios_base
eventの宣言です。
enum event;

ios_eventの値は次のようになります-

value event triggered
copyfmt_event on a call to ios::copyfmt (at the moment where all format flags have been copied, but before the exception mask is)
erase_event on a call to the stream destructor (also called at the beginning of ios::copyfmt).
imbue_event on a call to ios_base::imbue (just before the function returns).

このメンバー列挙型は、ios_base内で次のように定義されています-

enum event { erase_event, imbue_event, copyfmt_event };