BloombergLP::bdlc::CompactedArray_CountedValue

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

NameDescription
CompactedArray_CountedValue [constructor]Constructors
~CompactedArray_CountedValue [destructor]Destroy this object.
operator= Assign to this object the value and reference count of rhs.

Data Members

NameDescription
d_count Reference count of the stored object.
d_value Footprint of the stored object value.

Non-Member Functions

NameDescription
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.