[#BloombergLP-bslstl-variant_swapImpl-0a2] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::variant_swapImpl :relfileprefix: ../../ :mrdocs: `variant_swapImpl` overloads == Synopses Declared in `<bslstl_variant.h>` Swap `lhs` and `rhs` when `t_VARIANT` is not allocator‐aware. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_VARIANT> void xref:BloombergLP/bslstl/variant_swapImpl-0a9.adoc[variant_swapImpl]( xref:bsl/false_type.adoc[bsl::false_type] usesAllocator, t_VARIANT& lhs, t_VARIANT& rhs); ---- [.small]#xref:BloombergLP/bslstl/variant_swapImpl-0a9.adoc[_» more..._]# Swap `lhs` and `rhs` when `t_VARIANT` is allocator‐aware. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_VARIANT> void xref:BloombergLP/bslstl/variant_swapImpl-0b.adoc[variant_swapImpl]( xref:bsl/true_type.adoc[bsl::true_type] usesAllocator, t_VARIANT& lhs, t_VARIANT& rhs); ---- [.small]#xref:BloombergLP/bslstl/variant_swapImpl-0b.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *usesAllocator* | tag indicating `t_VARIANT` is not allocator‐aware | *lhs* | first variant to swap | *rhs* | second variant to swap |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#