Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

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

      From cppreference.com
      <cpp‎ |io‎ |basic spanbuf
       
       
       
      std::basic_spanbuf
      Public member functions
      basic_spanbuf::swap
      (C++23)
      Protected member functions
      Non-member functions
       
      void swap( basic_spanbuf& rhs);
      (since C++23)

      Swaps the state of*this andrhs.

      Callsstd::basic_streambuf<Char, Traits>::swap(rhs), swaps the open mode of*this andrhs, and then makes them use the underlying buffer of each other.

      Contents

      [edit]Parameters

      rhs - anotherbasic_stringbuf

      [edit]Return value

      (none)

      [edit]Exceptions

      May throw implementation-defined exceptions.

      [edit]Notes

      This function is called automatically when swapping stream objects, it is rarely necessary to call it directly.

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      assigns abasic_spanbuf object
      (public member function)[edit]
      swaps twobasic_ispanstream objects
      (public member function ofstd::basic_ispanstream<CharT,Traits>)[edit]
      swaps twobasic_ospanstream objects
      (public member function ofstd::basic_ospanstream<CharT,Traits>)[edit]
      swaps twobasic_spanstream objects
      (public member function ofstd::basic_spanstream<CharT,Traits>)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/io/basic_spanbuf/swap&oldid=160613"

      [8]ページ先頭

      ©2009-2025 Movatter.jp