cpp / latest / io / basic_syncbuf / swap.html /

std::basic_syncbuf<CharT,Traits,Allocator>::swap

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

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/io/basic_syncbuf/swap