BloombergLP::bslma::ConstructionUtil::construct

construct overloads

Synopses

Declared in <bslma_constructionutil.h>

Default-construct a TARGET_TYPE object at the specified address.

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

Construct a TARGET_TYPE at address from the given arguments.

template<
    class TARGET_TYPE,
    class ALLOCATOR,
    class ARG1,
    class... ARGS>
static
void
construct(
    TARGET_TYPE* address,
    ALLOCATOR const& allocator,
    ARG1&& argument1,
    ARGS&&... arguments);
» more...

Parameters

NameDescription
addressuninitialized storage for the new object
allocatorallocator supplied to the constructor, if applicable
argument1first constructor argument
argumentsremaining constructor arguments