Namespaces
Variants

std::flat_set<Key,Compare,KeyContainer>:: swap

From cppreference.net

void swap ( flat_set & 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, other.c);

목차

매개변수

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

반환값

(없음)

예외

(없음)

복잡도

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

예제

참고 항목

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