[#BloombergLP-bdlb-Variant_DefaultConstructVisitor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::Variant_DefaultConstructVisitor :relfileprefix: ../../ :mrdocs: 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`. == Synopsis Declared in `<bdlb_variant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Variant_DefaultConstructVisitor; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlb/Variant_DefaultConstructVisitor/2constructor.adoc[`Variant_DefaultConstructVisitor`] [.small]#[constructor]# | Create a default‐construct visitor that uses the specified `allocator` to supply memory. | xref:BloombergLP/bdlb/Variant_DefaultConstructVisitor/operator_call.adoc[`operator()`] | Default‐construct the specified `value` in place using the allocator supplied at construction of this visitor. |=== == Data Members [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlb/Variant_DefaultConstructVisitor/d_allocator_p.adoc[`d_allocator_p`] | Allocator used to default‐construct the visited type. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#