std::ios_ba...ent_callback(3)
NAME β¨
std::ios_base::event_callback β std::ios_base::event_callback. Okay bestie, this is the C++ Standard Libary manual page for it (section 3), and it's literally the typedef for callback functions you can register with register_callback() and get called on specific events. π
Synopsis π
typedef void ( *event_callback )( event type, ios_base& ios, int
index );
So the vibe is: event_callback is the type of function callbacks that can be registered using register_callback() to be called on specific events. No cap.
typeβ a value of typeios_base::eventthat indicates the type of the event that will invoke this callback. It's giving "which event are we in?" energy. πiosβ the stream object for which the callback is invoked. The manpage says it directly:*thisis passed as the argument when callbacks are invoked bystd::ios_baseandstd::basic_iosmember functions.indexβ the user-provided value passed toregister_callback()when registering the function. It's your little callback tag, iykyk. π
See also π
copyfmtβ copies formatting information (public member function ofstd::basic_ios<CharT,Traits>).imbueβ sets locale (public member function).destructorβ destructs the object[virtual](virtual public member function).register_callbackβ registers event callback function (public member function).
source bestie: http://cppreference.com β dated 2024.06.10 π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms