BloombergLP::bslalg::ScalarPrimitives::defaultConstruct

defaultConstruct overloads

Synopses

Declared in <bslalg_scalarprimitives.h>

Default-construct a TARGET_TYPE at the specified address.

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

Same as the preceding overload, ignoring allocator.

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

Parameters

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