std::flat_set<Key,Compare,KeyContainer>:: swap
From cppreference.net
C++
Containers library
|
(C++17)
|
||||
| Sequence | ||||
|
(C++11)
|
||||
|
(C++26)
|
||||
|
(C++26)
|
||||
|
(C++11)
|
||||
| Associative | ||||
| Unordered associative | ||||
|
(C++11)
|
||||
|
(C++11)
|
||||
|
(C++11)
|
||||
|
(C++11)
|
||||
| Adaptors | ||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(C++23)
|
||||
| Views | ||||
|
(C++20)
|
||||
|
(C++23)
|
||||
| Tables | ||||
| Iterator invalidation | ||||
| Member function table | ||||
| Non-member function table |
std::flat_set
|
void
swap
(
flat_set
&
other
)
noexcept
;
|
(C++23부터) | |
other
. Effectively calls
ranges::swap(compare, other.compare); ranges::swap(c, other.c);
목차 |
매개변수
| other | - | 내용을 교환할 컨테이너 어댑터 |
반환값
(없음)
예외
(없음)
복잡도
기반 컨테이너와 동일합니다 (일반적으로 상수).
예제
|
이 섹션은 불완전합니다
이유: 예제가 없음 |
참고 항목
|
(C++23)
|
std::swap
알고리즘을 특수화함
(함수 템플릿) |