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.
[править] Notes
По умолчанию, стандартные потоки
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.
[править] Пример
| Этот раздел не завершён Причина: нет примера |