Protected —>
void init( streambuf* psb );
END Protected
Parameter
psb
A pointer to an existing streambuf object.
Remarks
Associates an object of a streambuf-derived class with this stream and, if necessary, deletes a dynamically created stream buffer object that was previously associated. The init function is useful in derived classes in conjunction with the protected default istream, ostream, and iostream constructors. Thus, an ios-derived class constructor can construct and attach its own predetermined stream buffer object.
ios Overview | Abstract Stream Base Class
See Also istream::istream, ostream::ostream, iostream::iostream