Constructors

Synopses

Declared in <bdlc_packedintarray.h>

Create an empty PackedIntArray.

explicit
PackedIntArray(bslma::Allocator* basicAllocator = 0);

Create a PackedIntArray with the value of original.

PackedIntArray(
    PackedIntArray const& original,
    bslma::Allocator* basicAllocator = 0);

Create a PackedIntArray of the specified length.

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

Parameters

Name

Description

basicAllocator

allocator used to supply memory

original

array to copy

numElements

number of elements in the new array

value

initial value for each element

Created with MrDocs