◐ Shell
clean mode source ↗

std::swap(std::basic_syncbuf) - cppreference.com

提供: cppreference.com

<tbody> </tbody>

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

(C++20以上)

std::swap アルゴリズムを std::basic_syncbuf に対して特殊化します。 lhsrhs の状態を交換します。 実質的に lhs.swap(rhs) を呼びます。

引数

lhs, rhs - 状態を入れ替える std::basic_syncbuf オブジェクト

戻り値

(なし)

関連項目