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

#include <bdlb_variant.h>

Public Member Functions

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

Public Attributes

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 create a default instance of TYPE.

Constructor & Destructor Documentation

◆ Variant_DefaultConstructVisitor()

bdlb::Variant_DefaultConstructVisitor::Variant_DefaultConstructVisitor ( bslma::Allocator allocator)
inlineexplicit

Member Function Documentation

◆ operator()()

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

Member Data Documentation

◆ d_allocator_p

bslma::Allocator* bdlb::Variant_DefaultConstructVisitor::d_allocator_p

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