BloombergLP::bslalg::ArrayPrimitives::moveConstruct

Move-construct elements from a range into an uninitialized array.

Synopses

Declared in <bslalg_arrayprimitives.h>

Move-construct elements from a range into an uninitialized array.

template<class ALLOCATOR>
static
void
moveConstruct(
    bsl::allocator_traits<ALLOCATOR>::pointer toBegin,
    bsl::allocator_traits<ALLOCATOR>::pointer fromBegin,
    bsl::allocator_traits<ALLOCATOR>::pointer fromEnd,
    ALLOCATOR allocator);
» more...

Move-construct elements from a range into an uninitialized array.

template<class TARGET_TYPE>
static
void
moveConstruct(
    TARGET_TYPE* toBegin,
    TARGET_TYPE* fromBegin,
    TARGET_TYPE* fromEnd,
    bslma::Allocator* allocator);
» more...

Parameters

NameDescription
toBeginbeginning of the uninitialized destination range
fromBeginbeginning of the source range
fromEndend of the source range (one past the last element)
allocatorallocator used to supply memory if required