[#BloombergLP-bslma-AllocatorUtil-swap-0f] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/AllocatorUtil.adoc[AllocatorUtil]::swap :relfileprefix: ../../../ :mrdocs: `swap` overloads == Synopses Declared in `<bslma_allocatorutil.h>` Conditionally swap the values at `pa` and `pb` based on `allowed`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_TYPE> static void xref:BloombergLP/bslma/AllocatorUtil/swap-075bea.adoc[swap]( t_TYPE* pa, t_TYPE* pb, xref:bsl/false_type.adoc[bsl::false_type] allowed); ---- [.small]#xref:BloombergLP/bslma/AllocatorUtil/swap-075bea.adoc[_» more..._]# Conditionally swap the values at `pa` and `pb` when `allowed` is `true_type`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_TYPE> static void xref:BloombergLP/bslma/AllocatorUtil/swap-075be4.adoc[swap]( t_TYPE* pa, t_TYPE* pb, xref:bsl/true_type.adoc[bsl::true_type] allowed); ---- [.small]#xref:BloombergLP/bslma/AllocatorUtil/swap-075be4.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *pa* | address of the first object to swap | *pb* | address of the second object to swap | *allowed* | whether swapping is permitted |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#