Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

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

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

      [edit template]
       
       
       
       
      void swap( basic_spanstream& other);
      (since C++23)

      Exchanges the state of the stream with those ofother.

      This is done by callingstd::basic_iostream<CharT, Traits>::swap(other) and swapping the wrappedstd::basic_spanbuf objects (accessible through*rdbuf()).

      Contents

      [edit]Parameters

      other - stream to exchange the state with

      [edit]Return value

      (none)

      [edit]Exceptions

      May throw implementation-defined exceptions.

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      swaps twobasic_spanbuf objects
      (public member function ofstd::basic_spanbuf<CharT,Traits>)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/io/basic_spanstream/swap&oldid=130853"

      [8]ページ先頭

      ©2009-2025 Movatter.jp