construct overloads

Synopses

Declared in <bslma_bslallocator.h>

Default‐construct a TYPE2 object at the specified p.

template<class TYPE2>
static
void
construct(
    allocator_type& m,
    TYPE2* p);

Construct a TYPE2 object at p from the specified arguments.

template<
    class TYPE2,
    class ARG1,
    class... ARGS>
static
void
construct(
    allocator_type& m,
    TYPE2* p,
    ARG1& argument1,
    ARGS&&... arguments);

Construct a TYPE2 object at p using perfect forwarding.

template<
    class TYPE2,
    class ARG1,
    class... ARGS>
static
void
construct(
    allocator_type& m,
    TYPE2* p,
    ARG1&& argument1,
    ARGS&&... arguments);

Parameters

Name

Description

m

allocator used for construction

p

uninitialized storage for the new object

argument1

first constructor argument

arguments

remaining constructor arguments

Created with MrDocs