Namespaces
Variants

std::flat_map<Key,T,Compare,KeyContainer,MappedContainer>:: swap

From cppreference.net

void swap ( flat_map & other ) noexcept ;
(C++23 이후)
Exchanges the contents of the container adaptor with those of other . Effectively calls
ranges::swap(compare, other.compare);
ranges::swap(c.keys, other.c.keys);
ranges::swap(c.values, other.c.values);

목차

매개변수

other - 내용을 교환할 컨테이너 어댑터

반환값

(없음)

예외

(없음)

복잡도

기반 컨테이너와 동일합니다 (일반적으로 상수).

예제

참고 항목

std::swap 알고리즘을 특수화합니다
(함수 템플릿)