Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

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

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

      [edit template]
       
       
       
       
      basic_spanstream& operator=( basic_spanstream&& other);
      (1)(since C++23)
      basic_spanstream& operator=(const basic_spanstream&)= delete;
      (2)(since C++23)
      1) Move assigns theother to*this, effectively move-assigning both thestd::basic_iostream base class subobject and the wrappedstd::basic_spanbuf.
      2) Copy assignment operator is deleted.basic_spanstream is not copy assignable.

      Note that move assignment operator of the base class swaps all stream state variables (except forrdbuf()) between*this andother.

      It is implementation-defined whether thestd::basic_spanbuf wrapped inother still holds an underlying buffer after the move assignment.

      Contents

      [edit]Parameters

      other - another stream to move from

      [edit]Return value

      *this

      [edit]Exceptions

      May throw implementation-defined exceptions.

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      assigns abasic_spanbuf object
      (public member function ofstd::basic_spanbuf<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_spanstream/operator%3D&oldid=130849"

      [8]ページ先頭

      ©2009-2025 Movatter.jp