Create a CompactedArray having the specified numElements.

Synopsis

Declared in <bdlc_compactedarray.h>

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

Description

Optionally specify a value to which each element will be set. If value is not specified, TYPE() is used. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

Parameters

Name

Description

numElements

initial number of elements

value

value used to initialize each element

basicAllocator

allocator used to supply memory

Created with MrDocs