BloombergLP::bdlc::PackedIntArrayImp::PackedIntArrayImp

Constructors

Synopses

Declared in <bdlc_packedintarray.h>

Create an empty PackedIntArrayImp.

explicit
PackedIntArrayImp(bslma::Allocator* basicAllocator = 0);
» more...

Create a PackedIntArrayImp with the value of original.

PackedIntArrayImp(
    PackedIntArrayImp const& original,
    bslma::Allocator* basicAllocator = 0);
» more...

Create a PackedIntArrayImp of the specified length.

explicit
PackedIntArrayImp(
    std::size_t numElements,
    ElementType value = 0,
    bslma::Allocator* basicAllocator = 0);
» more...

Parameters

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