Constructors
Declared in <bdlc_compactedarray.h>
Create an empty CompactedArray.
explicit
CompactedArray(bslma::Allocator* basicAllocator = 0);
» more...
Create a CompactedArray having the same value as original.
CompactedArray(
CompactedArray const& original,
bslma::Allocator* basicAllocator = 0);
» more...
Create a CompactedArray having the specified numElements.
explicit
CompactedArray(
std::size_t numElements,
TYPE const& value = TYPE(),
bslma::Allocator* basicAllocator = 0);
» more...
| Name | Description |
|---|---|
| basicAllocator | allocator used to supply memory |
| original | array to copy |
| numElements | initial number of elements |
| value | value used to initialize each element |