Delen 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_streambuf.

  • _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

Reference

basic_ostream Class

iostream Programming

iostreams Conventions

Other Resources

basic_ostream Members

Change History

Date

History

Reason

March 2009

Corrected typo; added link to basic_streambuf.

Customer feedback.