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

#include <bdlb_variant.h>

Public Member Functions

 Variant_CopyConstructVisitor (void *buffer, bslma::Allocator *allocator)
 
template<class TYPE >
void operator() (const TYPE &value) const
 

Public Attributes

void * d_buffer_p
 
bslma::Allocatord_allocator_p
 

Detailed Description

This visitor, when invoked as a non-modifiable function object on an instance of some template parameter TYPE, will copy-insert that instance to create an instance of the same TYPE in an uninitialized buffer specified at construction of this visitor.

Constructor & Destructor Documentation

◆ Variant_CopyConstructVisitor()

bdlb::Variant_CopyConstructVisitor::Variant_CopyConstructVisitor ( void *  buffer,
bslma::Allocator allocator 
)
inline

Member Function Documentation

◆ operator()()

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

Member Data Documentation

◆ d_allocator_p

bslma::Allocator* bdlb::Variant_CopyConstructVisitor::d_allocator_p

◆ d_buffer_p

void* bdlb::Variant_CopyConstructVisitor::d_buffer_p

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