[#BloombergLP-bslalg-ArrayPrimitives-emplace-0e] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/ArrayPrimitives.adoc[ArrayPrimitives]::emplace :relfileprefix: ../../../ :mrdocs: Emplace a newly constructed element, shifting subsequent elements. == Synopses Declared in `<bslalg_arrayprimitives.h>` Emplace a newly constructed element, shifting subsequent elements. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class ALLOCATOR, class... ARGS> static void xref:BloombergLP/bslalg/ArrayPrimitives/emplace-02.adoc[emplace]( bsl::allocator_traits<ALLOCATOR>::pointer toBegin, bsl::allocator_traits<ALLOCATOR>::pointer toEnd, ALLOCATOR allocator, ARGS&&... arguments); ---- [.small]#xref:BloombergLP/bslalg/ArrayPrimitives/emplace-02.adoc[_» more..._]# Emplace a newly constructed element, shifting subsequent elements. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class TARGET_TYPE, class... ARGS> static void xref:BloombergLP/bslalg/ArrayPrimitives/emplace-04.adoc[emplace]( TARGET_TYPE* toBegin, TARGET_TYPE* toEnd, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* allocator, ARGS&&... args); ---- [.small]#xref:BloombergLP/bslalg/ArrayPrimitives/emplace-04.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *toBegin* | insertion position within the destination array | *toEnd* | end of the populated destination range | *allocator* | allocator used to supply memory if required | *arguments* | constructor arguments forwarded to the new element | *args* | constructor arguments forwarded to the new element |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#