strstreambuf::freeze

void freeze( int n = 1 );

Parameter

n

A 0 value permits automatic deletion of the current array and its automatic growth (if it is dynamic); a nonzero value prevents deletion.

Remarks

If a strstreambuf object has a dynamic array, memory is usually deleted on destruction and size adjustment. The freeze function provides a way to prevent 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.

strstreambuf OverviewStream Buffer Classes

See Also   strstreambuf::str