BloombergLP::bslalg::ScalarPrimitives::copyConstruct

copyConstruct overloads

Synopses

Declared in <bslalg_scalarprimitives.h>

Copy-construct a TARGET_TYPE at address from original.

template<class TARGET_TYPE>
static
void
copyConstruct(
    TARGET_TYPE* address,
    TARGET_TYPE const& original,
    bslma::Allocator* allocator);
» more...

Same as the preceding overload, ignoring allocator.

template<class TARGET_TYPE>
static
void
copyConstruct(
    TARGET_TYPE* address,
    TARGET_TYPE const& original,
    void* allocator);
» more...

Parameters

NameDescription
addressaddress of uninitialized storage
originalobject to copy from
allocatorallocator to use if the type uses an allocator