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
;
|
(seit C++23) | |
other
. Effectively calls
ranges::swap(compare, other.compare); ranges::swap(c.keys, other.c.keys); ranges::swap(c.values, other.c.values);
Inhaltsverzeichnis |
Parameter
| other | - | Container-Adaptor, mit dem die Inhalte ausgetauscht werden sollen |
Rückgabewert
(keine)
Exceptions
(keine)
Komplexität
Gleich wie zugrunde liegender Container (typischerweise konstant).
Beispiel
|
Dieser Abschnitt ist unvollständig
Grund: Kein Beispiel |
Siehe auch
|
(C++23)
|
spezialisiert den
std::swap
Algorithmus
(Funktionsschablone) |