|
ios::tiepublic member function
ostream* tie ( ) const; ostream* tie ( ostream* tiestr ); Get/set the tied stream The first function version returns a pointer to the tied output stream.The second function version ties the object to tiestr and returns a pointer to the object previously tied. The tied stream is another output stream object which is flushed before each i/o operation in this stream object. By default, the standard objects cin, cerr and clog are tied to cout, and their wide character counterparts (wcin, wcerr and wclog) to wcout. Parameters
Return ValueA pointer to the stream object tied before the call, or a null pointer in case the stream was not tied.Example
Basic template member declaration(basic_ios<charT,traits>)
|