Namespaces
Variants
Actions

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

From cppreference.com
< cpp‎ | io‎ | basic spanbuf
 
C++
 
Input/output library
 
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 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.

Contents

[edit] Parameters

rhs - another basic_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

[edit] See also

assigns a basic_spanbuf object
(public member function) [edit]
swaps two basic_ispanstream objects
(public member function of std::basic_ispanstream<CharT,Traits>) [edit]
swaps two basic_ospanstream objects
(public member function of std::basic_ospanstream<CharT,Traits>) [edit]
swaps two basic_spanstream objects
(public member function of std::basic_spanstream<CharT,Traits>) [edit]

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant