Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

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

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

      Exchanges the state with another input/output stream object. Effectively callsbasic_istream<CharT,Traits>::swap(other).

      This member function is protected: it is called by the swap member functions of the derived stream classesstd::basic_stringstream andstd::basic_fstream, which know how to correctly swap the associated stream buffers.


      [edit]Parameters

      other - another stream to exchange the state with

      [edit]Return value

      *this

      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/io/basic_iostream/swap&oldid=63323"

      [8]ページ先頭

      ©2009-2025 Movatter.jp