Namespaces
Variants

std:: swap (std::basic_syncbuf)

From cppreference.net
template < class CharT, class Traits, class Allocator >

void swap ( std:: basic_syncbuf < CharT, Traits, Allocator > & lhs,

std:: basic_syncbuf < CharT, Traits, Allocator > & rhs ) ;
(C++20 이후)

std::swap 알고리즘을 std::basic_syncbuf 에 대해 오버로드합니다. lhs 의 상태와 rhs 의 상태를 교환합니다. 효과적으로 lhs. swap ( rhs ) 를 호출합니다.

목차

매개변수

lhs, rhs - std::basic_syncbuf 객체들 중 상태를 교환할 객체들

반환값

(없음)

예제

참고 항목

두 개의 basic_syncbuf 객체를 교환
(public member function)
두 객체의 값을 교환
(function template)