streambuf::doallocate

Syntax

Protected:
virtual int doallocate();

Remarks

Called by allocate when space is needed. The doallocate function must allocate a reserve area, then call setb to attach the reserve area to the streambuf object. If the reserve area allocation fails, doallocate returns EOF.

Default Implementation

Attempts to allocate a reserve area using operator new.

See Also

streambuf::allocate, streambuf::setb