Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::basic_ios<CharT,Traits>::basic_ios

      From cppreference.com
      <cpp‎ |io‎ |basic ios
       
       
       
       
      protected:
      basic_ios();
      (1)
      public:
      explicit basic_ios(std::basic_streambuf<CharT, Traits>* sb);
      (2)
      (3)
      private:
      basic_ios(const basic_ios&);
      (until C++11)
      public:
      basic_ios(const basic_ios&)= delete;
      (since C++11)

      Constructs a newstd::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 callinginit(sb). The associated stream buffer is set tosb.
      3) The copy constructor isdeclared private and not defined(until C++11)explicitly defined as deleted(since C++11): I/O streams are notCopyConstructible.

      [edit]Parameters

      sb - stream buffer to associate to

      [edit]Defect reports

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

      DRApplied toBehavior as publishedCorrect behavior
      LWG 1249C++98internal state did not need to be initialized before first usealso needs to be initialized
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/io/basic_ios/basic_ios&oldid=156190"

      [8]ページ先頭

      ©2009-2025 Movatter.jp