BloombergLP::bdlc::PackedIntArray::PackedIntArray

Create a PackedIntArray of the specified length.

Synopsis

Declared in <bdlc_packedintarray.h>

explicit
PackedIntArray(
    std::size_t numElements,
    TYPE value = 0,
    bslma::Allocator* basicAllocator = 0);

Description

Create a PackedIntArray having the specified numElements. Optionally specify a value to which each element will be set. If value is not specified, 0 is used. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

Parameters

NameDescription
numElementsnumber of elements in the new array
valueinitial value for each element
basicAllocatorallocator used to supply memory