Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::basic_fstream<CharT,Traits>::operator=

      From cppreference.com
      <cpp‎ |io‎ |basic fstream

      [edit template]
       
       
       
       
      basic_fstream& operator=( basic_fstream&& other);
      (since C++11)

      Move assigns the file streamother to*this, effectively move-assigning both thestd::basic_iostream base class and the associatedstd::basic_filebuf.

      other is left with no associated file. Note that the base class move assignment swaps all stream state variables (except forrdbuf) between*this andother.

      Contents

      [edit]Parameters

      other - file stream to move

      [edit]Return value

      *this

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      (C++11)
      swaps two file streams
      (public member function)[edit]
      (C++11)
      assigns abasic_filebuf object
      (public member function ofstd::basic_filebuf<CharT,Traits>)[edit]
      (C++11)
      move-assigns anotherbasic_iostream
      (protected member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/io/basic_fstream/operator%3D&oldid=160451"

      [8]ページ先頭

      ©2009-2025 Movatter.jp