Constructors
Declared in <bdlc_packedintarray.h>
Create an empty PackedIntArray.
explicit
PackedIntArray(bslma::Allocator* basicAllocator = 0);
» more...
Create a PackedIntArray with the value of original.
PackedIntArray(
PackedIntArray const& original,
bslma::Allocator* basicAllocator = 0);
» more...
Create a PackedIntArray of the specified length.
explicit
PackedIntArray(
std::size_t numElements,
TYPE value = 0,
bslma::Allocator* basicAllocator = 0);
» more...
| 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 |