Files
cppdraft_translate/cppdraft/ios/init.md
2025-10-25 03:02:53 +03:00

1.8 KiB
Raw Blame History

[ios.init]

31 Input/output library [input.output]

31.5 Iostreams base classes [iostreams.base]

31.5.2 Class ios_base [ios.base]

31.5.2.2 Types [ios.types]

31.5.2.2.6 Class ios_base::Init [ios.init]

🔗

namespace std {class ios_base::Init {public: Init(); Init(const Init&) = default; ~Init(); Init& operator=(const Init&) = default; };}

1

#

The class Init describes an object whose construction ensures the construction of the eight objects declared in ([iostream.objects]) that associate file stream buffers with the standard C streams provided for by the functions declared in.

🔗

Init();

2

#

Effects: Constructs and initializes the objects cin, cout, cerr,clog, wcin, wcout, wcerr, and wclog if they have not already been constructed and initialized.

🔗

~Init();

3

#

Effects: If there are no other instances of the class still in existence, callscout.flush(),cerr.flush(),clog.flush(),wcout.flush(),wcerr.flush(),wclog.flush().