[#BloombergLP-bdlc-swap-0b8] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::swap :relfileprefix: ../../ :mrdocs: Exchange the value, hasher, and key‐equality functor of two sets. == Synopsis Declared in `<bdlc_flathashset.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class KEY, class HASH, class EQUAL> void swap( xref:BloombergLP/bdlc/FlatHashSet.adoc[FlatHashSet<KEY, HASH, EQUAL>]& a, xref:BloombergLP/bdlc/FlatHashSet.adoc[FlatHashSet<KEY, HASH, EQUAL>]& b); ---- == Description Exchange the value, the hasher, and the key‐equality functor of the specified `a` and `b` objects. 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 set to exchange | *b* | second set to exchange |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#