Quick Links: |
#include <bdlb_variant.h>
Public Member Functions | |
Variant_SwapVisitor (void *buffer) | |
template<class TYPE > | |
void | operator() (TYPE &value) |
Public Attributes | |
void * | d_buffer_p |
This visitor swaps the variant object data that it holds with another variant object data of parameterize TYPE
. It requires that the two variant objects being swapped contain data of the same type, and use the same allocator.
bdlb::Variant_SwapVisitor::Variant_SwapVisitor | ( | void * | buffer | ) | [inline, explicit] |
References BSLS_ASSERT_SAFE.
void bdlb::Variant_SwapVisitor::operator() | ( | TYPE & | value | ) | [inline] |
References bdlb::swap().