| I/O manipulators | ||||
| Print functions(C++23) | ||||
| C-style I/O | ||||
| Buffers | ||||
(C++23) | ||||
(C++98/26*) | ||||
(C++20) | ||||
| Streams | ||||
| Abstractions | ||||
| File I/O | ||||
| String I/O | ||||
| Array I/O | ||||
(C++23) | ||||
(C++23) | ||||
(C++23) | ||||
(C++98/26*) | ||||
(C++98/26*) | ||||
(C++98/26*) | ||||
| Synchronized Output | ||||
(C++20) | ||||
| Types | ||||
| Error category interface | ||||
(C++11) | ||||
(C++11) |
| Public member functions | ||||
(C++23) | ||||
(C++23) | ||||
basic_spanbuf::swap (C++23) | ||||
(C++23) | ||||
| Protected member functions | ||||
(C++23) | ||||
(C++23) | ||||
(C++23) | ||||
| Non-member functions | ||||
(C++23) |
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 |
| rhs | - | anotherbasic_stringbuf |
(none)
May throw implementation-defined exceptions.
This function is called automatically when swapping stream objects, it is rarely necessary to call it directly.
| This section is incomplete Reason: no example |
assigns abasic_spanbuf object(public member function)[edit] | |
swaps twobasic_ispanstream objects(public member function of std::basic_ispanstream<CharT,Traits>)[edit] | |
swaps twobasic_ospanstream objects(public member function of std::basic_ospanstream<CharT,Traits>)[edit] | |
swaps twobasic_spanstream objects(public member function of std::basic_spanstream<CharT,Traits>)[edit] |