Copy the elements of type allocator_traits<ALLOCATOR>::value_type in the range beginning at the specified fromBegin location and ending immediately before the specified fromEnd location into the uninitialized array beginning at the specified toBegin location, using the specified allocator to supply memory (if required). If a constructor throws an exception during this operation, the output array is left in an uninitialized state. The behavior is undefined unless toBegin refers to space sufficient to hold fromEnd ‐ fromBegin elements.

Synopsis

Declared in <bslalg_arrayprimitives.h>

template<
    class ALLOCATOR,
    class FWD_ITER,
    class SENTINEL>
static
void
copyConstruct(
    bsl::allocator_traits<ALLOCATOR>::pointer toBegin,
    FWD_ITER fromBegin,
    SENTINEL fromEnd,
    ALLOCATOR allocator);

Created with MrDocs