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