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