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.

Synopsis

Declared in <bdlc_compactedarray.h>

template<class TYPE>
struct CompactedArray_CountedValue;

Member Functions

Name

Description

CompactedArray_CountedValue [constructor]

Constructors

~CompactedArray_CountedValue [destructor]

Destroy this object.

operator=

Assign to this object the underlying object value and reference count of the specified rhs object, and return a reference providing modifiable access to this object.

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 underlying object value of the specified lhs is not the same as the underlying object value of the specified rhs, and false otherwise. Note that the reference counts are intentionally ignored.

operator<

Return true if the underlying object value of the specified lhs is less than the value of the specified rhs, and false otherwise. Note that the reference count is intentionally ignored.

operator==

Return true if the underlying object value of the specified lhs is the same as the underlying object value of the specified rhs, and false otherwise. Note that the reference counts are intentionally ignored.

Created with MrDocs