Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

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

      From cppreference.com
      <cpp‎ |io‎ |basic ios
       
       
       
       
      protected:
      void set_rdbuf(std::basic_streambuf<CharT,Traits>* sb);
      (since C++11)

      Sets the associated stream buffer tosb without clearing the error state.

      This member function is protected: it is called by the move constructors of the derived streams such asstd::basic_ofstream orstd::basic_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, butstd::basic_ios needs to be made aware of the stream's new location so that its public member functions can access it.

      Contents

      [edit]Parameters

      sb - stream buffer to associate to

      [edit]Return value

      (none)

      [edit]Exceptions

      Throws nothing.

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      manages associated stream buffer
      (public member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/io/basic_ios/set_rdbuf&oldid=130894"

      [8]ページ先頭

      ©2009-2025 Movatter.jp