std::basic_ios::set_rdbuf
Материал из 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. |
| protected: void set_rdbuf( std::basic_streambuf<CharT,Traits>* sb ); |
||
Устанавливает соответствующий буфер потока
sb, не очищая ее состояние ошибки.Original:
Sets the associated stream buffer to
sb without clearing its error state.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.
Эта функция защищена: она называется по ходу конструкторы производных потоков, таких как std::basic_ofstream или std::basic_istringstream, как заключительный этап после построения базового класса, а после переезда поток буфера: только самое производных поток класса знает, как правильно двигаться Поток буфера, но std::basic_ios должна быть осведомлена о новом месте поток так, чтобы его открытые функции-члены могут получить доступ к нему.
Original:
This member function is protected: it is called by the move constructors of the derived streams such as std::basic_ofstream or std::basic_istringstream, as the final step after constructing the base class and after moving the stream buffer: only the most derived stream class knows how to correctly move the stream buffer, but std::basic_ios needs to be made aware of the stream's new location so that its public member functions can access it.
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.
Содержание |
[править] Параметры
| sb | - | Поток буфера связать с
Original: stream buffer to associate to The text has been machine-translated via Google Translate. 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.
[править] Исключения
(Нет)
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.
[править] Пример
| Этот раздел не завершён Причина: нет примера |
[править] См. также
| управляет работой поток буфера Original: manages associated stream buffer The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (public функция-член) | |