std::swap(std::basic_spanbuf)

Header: <spanstream>

Overloads the std::swap algorithm for std::basic_spanbuf. Exchanges the state of lhs with that of rhs. Equivalent to lhs.swap(rhs);.

# Declarations

template< class CharT, class Traits >
void swap( std::basic_spanbuf<CharT, Traits>& lhs,
std::basic_spanbuf<CharT, Traits>& rhs );

(since C++23)

# Parameters

# Return value

(none)

# Example

This section is incompleteReason: no example

# See also