Files
cppdraft_translate/cppdraft/narrow/stream/objects.md
2025-10-25 03:02:53 +03:00

2.4 KiB
Raw Blame History

[narrow.stream.objects]

31 Input/output library [input.output]

31.4 Standard iostream objects [iostream.objects]

31.4.3 Narrow stream objects [narrow.stream.objects]

🔗

istream cin;

1

#

The object cin controls input from a stream buffer associated with the object stdin, declared in .

2

#

After the objectcin is initialized,cin.tie() returns&cout.

Its state is otherwise the same as required forbasic_ios::init.

🔗

ostream cout;

3

#

The object cout controls output to a stream buffer associated with the object stdout, declared in .

🔗

ostream cerr;

4

#

The object cerr controls output to a stream buffer associated with the object stderr, declared in .

5

#

After the objectcerr is initialized,cerr.flags() & unitbuf is nonzero and cerr.tie() returns &cout.

Its state is otherwise the same as required forbasic_ios::init.

🔗

ostream clog;

6

#

The object clog controls output to a stream buffer associated with the object stderr, declared in .