Reference‐counted stored value used by CompactedArray.

Synopsis

Declared in <bdlc_compactedarray.h>

template<class TYPE>
struct CompactedArray_CountedValue;

Description

This struct represents a reference‐counted value. Note that comparison of d_count is intentionally omitted from the free equality‐comparison operators of this class.

Member Functions

Name

Description

CompactedArray_CountedValue [constructor]

Constructors

~CompactedArray_CountedValue [destructor]

Destroy this object.

operator=

Assign to this object the value and reference count of rhs.

Data Members

Name

Description

d_count

Reference count of the stored object.

d_value

Footprint of the stored object value.

Non-Member Functions

Name

Description

operator!=

Return true if the values stored in lhs and rhs differ.

operator<

Return true if the value stored in lhs is less than rhs.

operator==

Return true if the values stored in lhs and rhs are equal.

Created with MrDocs