std::basic_ios::tie
来自cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| std::basic_ostream<CharT,Traits>* tie() const; |
(1) | |
| std::basic_ostream<CharT,Traits>* tie( std::basic_ostream<CharT,Traits>* str ); |
(2) | |
管理绑流。甲并列的流是一个输出流是同步的序列控制的流缓存器(
1) rdbuf()),即,flush()被称为上的并列流之前的任何输入/输出操作*this.Original:
Manages the tied stream. A tied stream is a output stream which is synchronized with the sequence controlled by the stream buffer (
rdbuf()), that is, flush() is called on the tied stream before any input/output operation on *this.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
返回绑流。如果是没有绑流,NULL返回.
2) Original:
Returns the current tied stream. If there is no tied stream, NULL is returned.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
集当前绑流的
str。返回绑流之前的操作。如果是没有绑流,NULL返回.Original:
Sets the current tied stream to
str. Returns the tied stream before the operation. If there is no tied stream, NULL is returned.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
目录 |
[编辑] 参数
| str | - | 一个输出流集的绑流
Original: an output stream to set as the tied stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[编辑] 返回值
在被栓的流,或NULL如果有没有并列流.
Original:
The tied stream, or NULL if there was no tied stream.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 例外
(无)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 注释
默认情况下,标准流
cin,cerr和clog都与cout。同样,其广泛的wcin,wcerr和wclog是绑到wcout.Original:
By default, the standard streams
cin, cerr and clog are tied to cout. Similarly, their wide counterparts wcin, wcerr and wclog are tied to wcout.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 为例
| 本节是不完整的 原因: no example |