void swap( basic_spanbuf& rhs ); | (since C++23) |
Swaps the state of *this
and rhs
.
Calls std::basic_streambuf<Char, Traits>::swap(rhs)
, swaps the open mode of *this
and rhs
, and then makes them use the underlying buffer of each other.
rhs | - | another basic_stringbuf |
(none).
May throw implementation-defined exceptions.
This function is called automatically when swapping stream objects, it is rarely necessary to call it directly.
(C++23) | assigns a basic_spanbuf object (public member function) |
(C++23) | swaps two basic_ispanstream objects (public member function of std::basic_ispanstream<CharT,Traits> ) |
(C++23) | swaps two basic_ospanstream objects (public member function of std::basic_ospanstream<CharT,Traits> ) |
(C++23) | swaps two basic_spanstream objects (public member function of std::basic_spanstream<CharT,Traits> ) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/io/basic_spanbuf/swap