[#bsl-swap-075] = xref:bsl.adoc[bsl]::swap :relfileprefix: ../ :mrdocs: Exchange the contents of the specified hash sets. == Synopsis Declared in `<bslstp_hashset.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class _Value, class _HashFcn, class _EqualKey, class _Alloc> void swap( xref:bsl/hash_set.adoc[hash_set<_Value, _HashFcn, _EqualKey, _Alloc>]& lhs, xref:bsl/hash_set.adoc[hash_set<_Value, _HashFcn, _EqualKey, _Alloc>]& rhs); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#