共用方式為


ostrstream::freeze

Causes a stream buffer to be unavailable through stream buffer operations.

void freeze( 
   bool _Freezeit = true 
);

Parameters

  • _Freezeit
    A bool indicating whether you want the stream to be frozen.

Remarks

The member function calls rdbuf -> freeze(_Freezeit).

Example

See strstream::freeze for an example that uses freeze.

Requirements

Header: <strstream>

Namespace: std

See Also

Reference

ostrstream Class

iostream Programming

iostreams Conventions