[#BloombergLP-bdlc-swap-05] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::swap :relfileprefix: ../../ :mrdocs: Exchange the contents of the two maps. == Synopsis Declared in `<bdlc_flathashmap.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class K, class V, class H, class E> void swap( xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap<K, V, H, E>]& a, xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap<K, V, H, E>]& b); ---- [NOTE] ==== This function is a https://en.cppreference.com/w/cpp/language/friend[hidden friend] of xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap], declared only inside that class: it can be found only through argument-dependent lookup. ==== == Parameters [cols="1,4"] |=== | Name| Description | *a* | first map | *b* | second map |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#