Swap lhs and rhs when t_VARIANT is allocator-aware.
Declared in <bslstl_variant.h>
template<class t_VARIANT>
void
variant_swapImpl(
bsl::true_type usesAllocator,
t_VARIANT& lhs,
t_VARIANT& rhs);
This component-private function swaps the values of the specified lhs and rhs when the type (template parameter) t_VARIANT is an allocator-aware variant.
| Name | Description |
|---|---|
| usesAllocator | tag indicating t_VARIANT is allocator-aware |
| lhs | first variant to swap |
| rhs | second variant to swap |