Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

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

      From cppreference.com
      <cpp‎ |io‎ |basic spanbuf
       
       
       
      std::basic_spanbuf
      Public member functions
      basic_spanbuf::operator=
      (C++23)
      Protected member functions
      Non-member functions
       
      basic_spanbuf& operator=( basic_spanbuf&& rhs);
      (1)(since C++23)
      basic_spanbuf& operator(const basic_spanbuf&)= delete;
      (2)(since C++23)
      1) Move assignment operator. Equivalent toauto tmp{std::move(rhs)}; this->swap(tmp);return*this;. After move assignment,*this holds the staterhs held before move assignment. It is implementation-defined whetherrhs still hold the underlying buffer after move assignment.
      2) The copy assignment operator is deleted;basic_spanbuf is notCopyAssignable.

      Contents

      [edit]Parameters

      rhs - anotherbasic_spanbuf that will be moved from

      [edit]Return value

      *this

      [edit]Exceptions

      May throw implementation-defined exceptions.

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      constructs abasic_spanbuf object
      (public member function)[edit]
      swaps twobasic_spanbuf objects
      (public member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/io/basic_spanbuf/operator%3D&oldid=160456"

      [8]ページ先頭

      ©2009-2025 Movatter.jp