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.
- an output stream object to tie.
Return ValueA pointer to the stream object tied before the call, or a null pointer in case the stream was not tied.
Basic template member declaration(basic_ios<charT,traits>)