[#BloombergLP-bslalg-ScalarPrimitives-copyConstruct-09] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/ScalarPrimitives.adoc[ScalarPrimitives]::copyConstruct :relfileprefix: ../../../ :mrdocs: `copyConstruct` overloads == Synopses Declared in `<bslalg_scalarprimitives.h>` Copy‐construct a `TARGET_TYPE` at `address` from `original`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TARGET_TYPE> static void xref:BloombergLP/bslalg/ScalarPrimitives/copyConstruct-02.adoc[copyConstruct]( TARGET_TYPE* address, TARGET_TYPE const& original, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* allocator); ---- [.small]#xref:BloombergLP/bslalg/ScalarPrimitives/copyConstruct-02.adoc[_» more..._]# Same as the preceding overload, ignoring `allocator`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TARGET_TYPE> static void xref:BloombergLP/bslalg/ScalarPrimitives/copyConstruct-01.adoc[copyConstruct]( TARGET_TYPE* address, TARGET_TYPE const& original, void* allocator); ---- [.small]#xref:BloombergLP/bslalg/ScalarPrimitives/copyConstruct-01.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *address* | address of uninitialized storage | *original* | object to copy from | *allocator* | allocator to use if the type uses an allocator |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#