- pointer to a streambuf object, which is set as the associated stream buffer for the object.
Return ValueNone (constructor).
This code uses a filebuf object (derived from streambuf) to open the file test.txt. The buffer is then passed as parameter to the ostream constructor, associating it to the stream.
Objects of class ostream are seldom constructed directly. Generally some derived class is used (like the standard ones ofstream and ostringstream).
Basic template member declaration( basic_ostream<charT,traits> )
|ios::init||Initialize object [protected] (protected member function)|