[#BloombergLP-bdlc-swap-061] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::swap :relfileprefix: ../../ :mrdocs: Exchange the value of `a` with that of `b`. == Synopsis Declared in `<bdlc_flathashmap.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class KEY, class VALUE, class HASH, class EQUAL> void swap( xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap<KEY, VALUE, HASH, EQUAL>]& a, xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap<KEY, VALUE, HASH, EQUAL>]& b); ---- == Description This function provides the no‐throw exception‐safety guarantee if the two objects were created with the same allocator and the basic guarantee otherwise. == Parameters [cols="1,4"] |=== | Name| Description | *a* | first map to exchange | *b* | second map to exchange |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#