[#BloombergLP-bdlb-Variant_CopyConstructVisitor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::Variant_CopyConstructVisitor :relfileprefix: ../../ :mrdocs: 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. == Synopsis Declared in `<bdlb_variant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Variant_CopyConstructVisitor; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlb/Variant_CopyConstructVisitor/2constructor.adoc[`Variant_CopyConstructVisitor`] [.small]#[constructor]# | Create a copy‐construct visitor targeting the specified `buffer` using the specified `allocator`. | xref:BloombergLP/bdlb/Variant_CopyConstructVisitor/operator_call.adoc[`operator()`] | Copy‐construct a `TYPE` into the buffer supplied at construction. |=== == Data Members [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlb/Variant_CopyConstructVisitor/d_allocator_p.adoc[`d_allocator_p`] | Allocator used for construction. | xref:BloombergLP/bdlb/Variant_CopyConstructVisitor/d_buffer_p.adoc[`d_buffer_p`] | Destination buffer for copy construction. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#