std::basic_syncbuf::swap

From cppreference.com
< cpplrm; | iolrm; | basic syncbuf
void swap( basic_syncbuf& other ) noexcept;

Exchanges the contents of the sync stream buffer with those of other.

Parameters

other - sync stream buffer to exchange contents with

Return value

(none)

Example