[#BloombergLP-bdlb-swap-01] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::swap :relfileprefix: ../../ :mrdocs: Exchange the values of the specified `a` and `b` objects. This function provides the no‐throw exception‐safety guarantee. == Synopsis Declared in `<bdlb_nullableallocatedvalue_pointerbitspair.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class t_TYPE, unsigned int t_NUM_BITS> void swap( xref:BloombergLP/bdlb/NullableAllocatedValue_PointerBitsPair.adoc[NullableAllocatedValue_PointerBitsPair<t_TYPE, t_NUM_BITS>]& a, xref:BloombergLP/bdlb/NullableAllocatedValue_PointerBitsPair.adoc[NullableAllocatedValue_PointerBitsPair<t_TYPE, t_NUM_BITS>]& b); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#