Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
std::basic_ios::set_rdbuf(3)  C++ Standard Libary std::basic_ios::set_rdbuf(3)

NAME
       std::basic_ios::set_rdbuf - std::basic_ios::set_rdbuf

Synopsis
	  protected:							(since
       C++11)
	  void set_rdbuf( std::basic_streambuf<CharT,Traits>* sb );

	  Sets the associated stream buffer to sb without clearing  the	 error
       state.

	  This	member	function  is  protected: it is called by the move con-
       structors of the
	  derived   streams   such   as	  std::basic_ofstream	or    std::ba-
       sic_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 loca-
       tion so that its
	  public member	functions can access it.

Parameters
	  sb - stream buffer to	associate to

Return value
	  (none)

Exceptions
	  Throws nothing.

Example
	   This	section	is incomplete
	   Reason: no example

See also
	  rdbuf	manages	associated stream buffer
		(public	member function)

http://cppreference.com		  2022.07.31	  std::basic_ios::set_rdbuf(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=std::basic_ios::set_rdbuf&sektion=3&manpath=FreeBSD+Ports+15.0>

home | help