BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlb::Variant_SwapVisitor Struct Reference

#include <bdlb_variant.h>

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.

Constructor & Destructor Documentation

◆ Variant_SwapVisitor()

bdlb::Variant_SwapVisitor::Variant_SwapVisitor ( void *  buffer)
inlineexplicit

Member Function Documentation

◆ operator()()

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

Member Data Documentation

◆ d_buffer_p

void* bdlb::Variant_SwapVisitor::d_buffer_p

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