[#BloombergLP-bdlb-Variant_DefaultConstructVisitor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::Variant&lowbar;DefaultConstructVisitor
:relfileprefix: ../../
:mrdocs:

This visitor, when invoked as a non&hyphen;modifiable function object on an instance of some template parameter `TYPE`, will create a default instance of `TYPE`&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;variant&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct Variant&lowbar;DefaultConstructVisitor;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlb/Variant_DefaultConstructVisitor/2constructor.adoc[`Variant&lowbar;DefaultConstructVisitor`]         [.small]#[constructor]#
| Create a default&hyphen;construct visitor that uses the specified `allocator` to supply memory&period;
| xref:BloombergLP/bdlb/Variant_DefaultConstructVisitor/operator_call.adoc[`operator()`] 
| Default&hyphen;construct the specified `value` in place using the allocator supplied at construction of this visitor&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlb/Variant_DefaultConstructVisitor/d_allocator_p.adoc[`d&lowbar;allocator&lowbar;p`] 
| Allocator used to default&hyphen;construct the visited type&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
