unordered_multiset::swap

unordered_multiset::swap (내용 교환)

swap()은 컨테이너의 내용을 다른 컨테이너와 교환해요. 개별 요소에 대한 이동·복사·교환은 수행되지 않아요.

출처: cppreference

본문

swapstd::unordered_multiset의 내용을 other와 교환해요.

void swap( unordered_multiset& other );

모든 반복자와 참조는 유효하게 유지되고 end() 반복자만 무효화돼요.

복잡도 (Complexity)

상수 시간이에요.

더 알아보기 (Learn more)

cppreference