Partager via


basic_ostream::basic_ostream

Constructs a basic_ostream object.

explicit basic_ostream(
      basic_streambuf<_Elem, _Tr> *_Strbuf,
    bool _Isstd = false
);

Parameters

  • _Strbuf
    An object of type basic_steambuf.

  • _Isstd
    true if this is a standard stream; otherwise, false.

Remarks

The constructor initializes the base class by calling init(_Strbuf).

Example

See the example for basic_ofstream::basic_ofstream to learn more about output streams.

Requirements

Header: <ostream>

Namespace: std

See Also

Concepts

basic_ostream Class

basic_ostream Members

iostream Programming

iostreams Conventions