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