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
- tiestr
- an output stream object to tie.
Return Value
A pointer to the stream object tied before the call, or a null pointer in case the stream was not tied.Example
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
Basic template member declaration
(basic_ios<charT,traits>)| 1 2 |
|
