BloombergLP::bslalg::ScalarPrimitives::moveConstruct

moveConstruct overloads

Synopses

Declared in <bslalg_scalarprimitives.h>

Move-construct a TARGET_TYPE at address from original.

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

Same as the preceding overload, ignoring allocator.

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

Parameters

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