cpp/io/basic spanbuf/swap

Swaps the state of and.

Calls, swaps the open mode of and , and then makes them use the underlying buffer of each other.

Return value
(none)