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

FreeBSD Manual Pages

  
 
  

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

NAME
       std::basic_filebuf::basic_filebuf - std::basic_filebuf::basic_filebuf

Synopsis
	  basic_filebuf();					   (1)
	  basic_filebuf(  const	std::basic_filebuf& rhs	) = delete; (2)	(since
       C++11)
	  basic_filebuf( std::basic_filebuf&& rhs );		   (3)	(since
       C++11)

	  Contructs new	std::basic_filebuf object.

	  1)  Constructs  a  std::basic_filebuf	 object, initializing the base
       class by	calling
	  the default constructor of  std::basic_streambuf.  The  created  ba-
       sic_filebuf is not
	  associated with a file, and is_open()	returns	false.
	  2)  The copy constructor is deleted; std::basic_filebuf is not Copy-
       Constructible
	  3) Move-constructs a std::basic_filebuf object by  moving  all  con-
       tents from another
	  std::basic_filebuf object rhs, including the buffers,	the associated
       file, the
	  locale, the openmode,	the is_open variable, and all other state. Af-
       ter move, rhs is
	  not  associated  with	 a  file  and rhs.is_open()==false. The	member
       pointers	of the base
	  class	std::basic_streambuf of	rhs and	of the base class of *this are
       guaranteed to
	  point	to different buffers (unless null).

Parameters
	  rhs -	another	basic_filebuf

Notes
	  Typically called by the constructor of std::basic_fstream.

Example
	   This	section	is incomplete
	   Reason: no example

See also
	  operator=    assigns a basic_filebuf object
	  (C++11)      (public member function)
	  destructor   destructs a basic_filebuf object	and closes the file if
       it is open
	  [virtual]    (virtual	public member function)

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

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

home | help