Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

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

      From cppreference.com
      <cpp‎ |io‎ |basic iostream
       
       
       
       
      basic_iostream& operator=(const basic_iostream& other)= delete;
      (1)
      protected:
      basic_iostream& operator=( basic_iostream&& other);
      (2)(since C++11)

      Assigns another stream object.

      1) Copy assignment is not allowed.
      2) Move assigns another stream object. Effectively callsswap(rhs). This move assignment operator is protected: it is called by the move assignment operators of the derived stream classesstd::basic_stringstream andstd::basic_fstream which know how to properly move-assign the associated stream buffers.

      [edit]Parameters

      other - another stream to assign state of

      [edit]Return value

      *this

      [edit]See also

      constructs the object
      (public member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/io/basic_iostream/operator%3D&oldid=62730"

      [8]ページ先頭

      ©2009-2025 Movatter.jp