共用方式為


nounitbuf

Causes output to be buffered and processed on when the buffer is full.

ios_base& nounitbuf( 
   ios_base& _Str 
);

Parameters

  • _Str
    A reference to an object of type ios_base, or to a type that inherits from ios_base.

Return Value

A reference to the object from which _Str is derived.

Remarks

unitbuf causes the buffer to be processed when it is not empty.

The manipulator effectively calls _Str.unsetf(ios_base::unitbuf), and then returns _Str.

Requirements

Header: <ios>

Namespace: std

See Also

Reference

iostream Programming

iostreams Conventions