BloombergLP::bdlc::CompactedArray_CountedValue::CompactedArray_CountedValue

Create a CompactedArray_CountedValue with value and count.

Synopsis

Declared in <bdlc_compactedarray.h>

CompactedArray_CountedValue(
    TYPE const& value,
    std::size_t count,
    bslma::Allocator* basicAllocator);

Description

Create a CompactedArray_CountedValue having the specified value and reference count. The specified basicAllocator is used to supply memory. The behavior is undefined unless 0 != basicAllocator.

Parameters

NameDescription
valuestored object value
countinitial reference count
basicAllocatorallocator used to supply memory