std::basic_ios::tie
Aus 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) | |
Verwaltet die gefesselt Stream. A gebunden Stream ein Ausgabestrom, die mit der Sequenz, die durch den Strompuffer (
1) rdbuf()
), dh flush() wird, auf das gekoppelte Strom vor jedem Eingangs / Ausgangs-Operation auf *this genannt gesteuert synchronisiert ist .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.
Liefert die aktuelle gebunden Stream. Wenn kein Strom verbunden ist NULL zurückgegeben .
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.
Setzt die aktuelle gebunden Stream
str
. Gibt die gefesselt Stream vor der Operation. Wenn kein Strom verbunden ist NULL zurückgegeben .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.
Inhaltsverzeichnis |
[Bearbeiten] Parameter
str | - | ein Ausgabe-Stream als gebundene Strom gesetzt
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. |
[Bearbeiten] Rückgabewert
Das gebundene Datenstrom oder NULL wenn es keine gebunden Stroms .
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.
[Bearbeiten] Ausnahmen
(None)
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.
[Bearbeiten] Notes
Standardmäßig werden die Standard-Streams
cin
, cerr
und clog
werden cout
gebunden. Ebenso ihre breite Kollegen wcin
, wcerr
und wclog
werden wcout
gebunden .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.
[Bearbeiten] Beispiel
This section is incomplete Reason: no example |