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

FreeBSD Manual Pages

  
 
  

home | help
std::basic_...ic_streambuf(3) C++ Standard Libarystd::basic_...ic_streambuf(3)

NAME
       std::basic_streambuf::basic_streambuf	-    std::basic_streambuf::ba-
       sic_streambuf

Synopsis
	  protected:				       (1)
	  basic_streambuf();
	  protected:				       (2) (since C++11)
	  basic_streambuf(const	basic_streambuf& rhs);

	  1)  Constructs  the  basic_streambuf	object,	 initializes  the  six
       pointer members
	  (eback(),  gptr(),  egptr(),	pbase(),  pptr(), and epptr()) to null
       pointer values, and
	  the locale member to std::locale(), a	copy of	the global C++	locale
       at the time of
	  construction.
	  2)  Constructs  a copy of rhs, initializing the six pointers and the
       locale object
	  with the copies of the values	held by	rhs. Note that this is a shal-
       low copy: the
	  pointers of the newly-constructed basic_streambuf are	pointing  into
       the same
	  character array as the pointers of rhs.

	  Both constructors are	protected, and are only	called by the concrete
       streambuf
	  classes,   such   as	std::basic_filebuf,  std::basic_stringbuf,  or
       std::strstreambuf.

Parameters
	  rhs -	a streambuf object to copy

Notes
	  Until	C++11, it was unspecified whether basic_streambuf  or  any  of
       its derived
	  classes  is CopyConstructible	(LWG issue 421), and different C++ li-
       brary
	  implementations provided different options.

Example
	   This	section	is incomplete
	   Reason: no example

See also
	  constructor	constructs a basic_filebuf object
			(public	  member    function	of    std::basic_file-
       buf<CharT,Traits>)
			constructs a basic_stringbuf object
	  constructor	(public	member function	of
			std::basic_stringbuf<CharT,Traits,Allocator>)
	  constructor	constructs a strstreambuf object
			(public	member function	of std::strstreambuf)

http://cppreference.com		  2022.07.31	 std::basic_...ic_streambuf(3)

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

home | help