[ Web Proxy ]
URL:
Viewing: https://ru.cppreference.com/cpp/io/basic_ios/set_rdbuf [Back]  [Original]

std::basic_ios::set_rdbuf cppreference.com
cppreference.com

std::basic_ios::set_rdbuf

cppreference.com

<metanoindex/>

<tbody> </tbody>
protected: void set_rdbuf( std::basic_streambuf<CharT,Traits>* sb );
sb, .
:
Sets the associated stream buffer to sb without clearing its error state.
Google.
. .
: , std::basic_ofstream std::basic_istringstream, , : , , std::basic_ios , - .
:
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.
Google.
. .

sb
:
stream buffer to associate to
Google.
. .

()

()

.


(public -) []

Web Proxy Viewer  |  New URL  |  Original Page