std::flat_map<Key,T,Compare,KeyContainer,MappedContainer>:: 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_map
|
void
swap
(
flat_map
&
other
)
noexcept
;
|
(C++23 이후) | |
other
. Effectively calls
ranges::swap(compare, other.compare); ranges::swap(c.keys, other.c.keys); ranges::swap(c.values, other.c.values);
목차 |
매개변수
| other | - | 내용을 교환할 컨테이너 어댑터 |
반환값
(없음)
예외
(없음)
복잡도
기반 컨테이너와 동일합니다 (일반적으로 상수).
예제
|
이 섹션은 불완전합니다
이유: 예제 없음 |
참고 항목
|
(C++23)
|
std::swap
알고리즘을 특수화합니다
(함수 템플릿) |