BloombergLP::bslstl::variant_swapImpl

Swap lhs and rhs when t_VARIANT is not allocator-aware.

Synopsis

Declared in <bslstl_variant.h>

template<class t_VARIANT>
void
variant_swapImpl(
    bsl::false_type usesAllocator,
    t_VARIANT& lhs,
    t_VARIANT& rhs);

Description

This component-private function swaps the values of the specified lhs and rhs when the type (template parameter) t_VARIANT is a non-allocator-aware variant.

Parameters

NameDescription
usesAllocatortag indicating t_VARIANT is not allocator-aware
lhsfirst variant to swap
rhssecond variant to swap