Quick Links: |
#include <bdlb_variant.h>
Public Member Functions | |
Variant_DefaultConstructVisitor (bslma::Allocator *allocator) | |
template<class TYPE > | |
void | operator() (TYPE &value) const |
Public Attributes | |
bslma::Allocator * | d_allocator_p |
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
.
bdlb::Variant_DefaultConstructVisitor::Variant_DefaultConstructVisitor | ( | bslma::Allocator * | allocator | ) | [inline, explicit] |
void bdlb::Variant_DefaultConstructVisitor::operator() | ( | TYPE & | value | ) | const [inline] |
References bslma::ConstructionUtil::construct().