[#BloombergLP-bdlc-CompactedArray_CountedValue]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::CompactedArray&lowbar;CountedValue
:relfileprefix: ../../
:mrdocs:

Reference&hyphen;counted stored value used by `CompactedArray`&period;

== Synopsis

Declared in `&lt;bdlc&lowbar;compactedarray&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
struct CompactedArray&lowbar;CountedValue;
----

== Description

This `struct` represents a reference&hyphen;counted value&period; Note that comparison of `d&lowbar;count` is intentionally omitted from the free equality&hyphen;comparison operators of this class&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlc/CompactedArray_CountedValue/2constructor-00.adoc[`CompactedArray&lowbar;CountedValue`]         [.small]#[constructor]#
| Constructors
| xref:BloombergLP/bdlc/CompactedArray_CountedValue/2destructor.adoc[`&#126;CompactedArray&lowbar;CountedValue`] [.small]#[destructor]#
| Destroy this object&period;
| xref:BloombergLP/bdlc/CompactedArray_CountedValue/operator_assign.adoc[`operator&equals;`] 
| Assign to this object the value and reference count of `rhs`&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlc/CompactedArray_CountedValue/d_count.adoc[`d&lowbar;count`] 
| Reference count of the stored object&period;
| xref:BloombergLP/bdlc/CompactedArray_CountedValue/d_value.adoc[`d&lowbar;value`] 
| Footprint of the stored object value&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlc/operator_not_eq-007.adoc[`operator!&equals;`]
| Return `true` if the values stored in `lhs` and `rhs` differ&period;
| xref:BloombergLP/bdlc/operator_lt-0a9.adoc[`operator&lt;`]
| Return `true` if the value stored in `lhs` is less than `rhs`&period;
| xref:BloombergLP/bdlc/operator_eq-02.adoc[`operator&equals;&equals;`]
| Return `true` if the values stored in `lhs` and `rhs` are equal&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
