Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>strstreambuf::freeze</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
strstreambuf::freeze

Usage

   #include <sstream.hpp>
   void strstreambuf::freeze(int = 1);

Description

   If the argument is nonzero, deletion of the current memory area by
   dynamic allocation, or by the strstreambuf destructor is inhibited. Put
   operations to a frozen strstreambuf are an error, though the effect is
   not defined. A zero argument to freeze unfreezes the strstreambuf.

Example 

   strstreambuf d;

   d.sputn("some arbitrary source",21);
   d.freeze();
   d.sputn("xxxxxxxxxxxxxxxxxxxxxxxxxxx", 32);
       // will not cause further allocation, d will
       // end up with just "some arbitrary
       // sourcexxxxxxxxxxx" (the default allocation)

Return Value

   None.





Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson