Namespaces
Variants

std:: swap (std::basic_stringbuf)

From cppreference.net
헤더 파일에 정의됨 <sstream>
template < class CharT, class Traits, class Alloc >

void swap ( std:: basic_stringbuf < CharT,Traits,Alloc > & lhs,

std:: basic_stringbuf < CharT,Traits,Alloc > & rhs ) ;
(C++11부터)
(C++20까지)
template < class CharT, class Traits, class Alloc >

void swap ( std:: basic_stringbuf < CharT,Traits,Alloc > & lhs,
std:: basic_stringbuf < CharT,Traits,Alloc > & rhs )

noexcept ( noexcept ( lhs. swap ( rhs ) ) ) ;
(C++20부터)

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

목차

매개변수

lhs, rhs - std::basic_stringbuf 객체들의 상태를 교환할

반환값

(없음)

예제

참고 항목

(C++11)
두 개의 basic_stringbuf 객체를 교환
(public member function)
두 객체의 값을 교환
(function template)