std::basic_syncbuf<CharT,Traits,Allocator>::swap - cppreference.com

From cppreference.com

void swap( basic_syncbuf& other );

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