[#BloombergLP-bslalg-HashTableBucket]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::HashTableBucket
:relfileprefix: ../../
:mrdocs:

POD that refers to the first and last nodes of a hash&hyphen;table bucket&period;

== Synopsis

Declared in `&lt;bslalg&lowbar;hashtablebucket&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct HashTableBucket;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslalg/HashTableBucket/countElements.adoc[`countElements`] 
| Return the number of nodes in this hash bucket&period;
| xref:BloombergLP/bslalg/HashTableBucket/end.adoc[`end`] 
| Return the next node after the end of this bucket&period;
| xref:BloombergLP/bslalg/HashTableBucket/first.adoc[`first`] 
| Return the address of the first element in this hash bucket, or a null pointer value if the bucket is empty&period;
| xref:BloombergLP/bslalg/HashTableBucket/last.adoc[`last`] 
| Return the address of the last element in this hash bucket, or a null pointer value if the bucket is empty&period;
| xref:BloombergLP/bslalg/HashTableBucket/reset.adoc[`reset`] 
| Set `first` and `last` to a null pointer value&period;
| xref:BloombergLP/bslalg/HashTableBucket/setFirst.adoc[`setFirst`] 
| Set the `first` element of this bucket to the specified `node`&period;
| xref:BloombergLP/bslalg/HashTableBucket/setFirstAndLast.adoc[`setFirstAndLast`] 
| Set `first` and `last` to the specified values&period;
| xref:BloombergLP/bslalg/HashTableBucket/setLast.adoc[`setLast`] 
| Set the `last` element of this bucket to the specified `node`&period;
| xref:BloombergLP/bslalg/HashTableBucket/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration&lt;HashTableBucket, IsBitwiseCopyable&gt;`] 
| Declare `HashTableBucket` as bitwise copyable&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslalg/HashTableBucket/d_first_p.adoc[`d&lowbar;first&lowbar;p`] 
| Address of the first node in this bucket, or 0 if empty&period;
| xref:BloombergLP/bslalg/HashTableBucket/d_last_p.adoc[`d&lowbar;last&lowbar;p`] 
| Address of the last node in this bucket, or 0 if empty&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslalg/operator_not_eq-0a.adoc[`operator!&equals;`]
| Return `true` if the specified hash table buckets `lhs` and `rhs` are not equivalent and `false` otherwise&period;
| xref:BloombergLP/bslalg/operator_eq-0ed.adoc[`operator&equals;&equals;`]
| Return `true` if the specified hash table buckets `lhs` and `rhs` are equivalent and `false` otherwise&period;
|===


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