Quick Links:

bal | bbl | bdl | bsl

Public Member Functions | Public Attributes

bdlb::Variant_SwapVisitor Struct Reference

#include <bdlb_variant.h>

List of all members.

Public Member Functions

 Variant_SwapVisitor (void *buffer)
template<class TYPE >
void operator() (TYPE &value)

Public Attributes

void * d_buffer_p

Detailed Description

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.

See Component bdlb_variant


Constructor & Destructor Documentation

bdlb::Variant_SwapVisitor::Variant_SwapVisitor ( void *  buffer  )  [inline, explicit]

References BSLS_ASSERT_SAFE.


Member Function Documentation

template<class TYPE >
void bdlb::Variant_SwapVisitor::operator() ( TYPE &  value  )  [inline]

References bdlb::swap().


Member Data Documentation


The documentation for this struct was generated from the following file: