The Microsoft Input/Output Stream Classes (iostream.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
strstreambuf::freeze
strstreambuf                                Up Contents Index Back
──The Microsoft iostream Classes────────────────────────────────────────────
 
  void freeze( int n = 1 );
 
  Parameter   Description
 
  <n>         A 0 value permits automatic deletion of the current array
              and also its automatic growth (if it is dynamic); a nonzero
              value prevents deletion.
 
  Remarks
 
  If a strstreambuf object has a dynamic array, then memory is usually
  deleted on destruction and size adjustment. The freeze function provides
  a means of preventing that automatic deletion. Once an array is frozen,
  no further input or output is permitted. The results of such operations
  are undefined.
 
  The freeze function can also unfreeze a frozen buffer.
 
  See Also
 
  strstreambuf::str
 
 
                                     -♦-