Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

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

      From cppreference.com
      <cpp‎ |io‎ |basic ios
       
       
       
       
      protected:
      void swap( basic_ios& other)noexcept;
      (since C++11)

      Exchanges the states of*this andother, except for the associatedrdbuf objects.rdbuf() andother.rdbuf() returns the same values as before the call.

      This swap function is protected: it is called by the swap member functions of the derived stream classes such asstd::basic_ofstream orstd::basic_istringstream, which know how to correctly swap the associated stream buffers.

      [edit]Parameters

      other - thebasic_ios object to exchange the state with

      [edit]See also

      (C++11)
      moves from anotherstd::basic_ios except forrdbuf
      (protected member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/io/basic_ios/swap&oldid=180011"

      [8]ページ先頭

      ©2009-2025 Movatter.jp