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

FreeBSD Manual Pages

  
 
  

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

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

Synopsis
	  protected:							 (1)
	  basic_ios();
	  public:							 (2)
	  explicit basic_ios( std::basic_streambuf<CharT, Traits>* sb );
	  private:
       (until C++11)
	  basic_ios( const basic_ios& );				 (3)
	  public:
       (since C++11)
	  basic_ios( const basic_ios& )	= delete;

	  Constructs a new std::basic_ios object.

	  1)  Default  constructor.  The  internal  state  is not initialized.
       init() must be called
	  before the first use of the object or	before	destructor,  otherwise
       the behavior is
	  undefined.
	  2)  Initializes  the internal	state by calling init(sb). The associ-
       ated stream buffer
	  is set to sb.
	  3) The copy constructor is
	  declared private and not defined
	  (until C++11)
	  explicitly defined as	deleted
	  (since C++11): I/O streams are not CopyConstructible.

Parameters
	  sb - stream buffer to	associate to

	  Defect reports

	  The following	behavior-changing defect reports were applied retroac-
       tively to
	  previously published C++ standards.

	     DR	      Applied	 to		   Behavior    as    published
       Correct behavior
	  LWG  1249  C++98	 internal state	did not	need to	be initialized
       also needs to be
			      before		     first		   use
       initialized

http://cppreference.com		  2024.06.10	  std::basic_ios::basic_ios(3)

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

home | help