[#BloombergLP-bdlcc-StripedUnorderedContainerImpl_Bucket]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::StripedUnorderedContainerImpl&lowbar;Bucket
:relfileprefix: ../../
:mrdocs:

This class represents a bucket of the hash map&period; This class template represents the head of in the singly&hyphen;linked list of `(KEY, VALUE)` elements in a hash map&period;

== Synopsis

Declared in `&lt;bdlcc&lowbar;stripedunorderedcontainerimpl&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class KEY,
    class VALUE&gt;
class StripedUnorderedContainerImpl&lowbar;Bucket;
----

== Enums

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_Bucket/BucketScope.adoc[`BucketScope`] 
| Enumeration to differentiate between processing all elements with the same key, or just the first one (and typically the only one)&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_Bucket/2constructor-0f.adoc[`StripedUnorderedContainerImpl&lowbar;Bucket`]         [.small]#[constructor]#
| Constructors
| xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_Bucket/2destructor.adoc[`&#126;StripedUnorderedContainerImpl&lowbar;Bucket`] [.small]#[destructor]#
| Destroy this object&period;
| xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_Bucket/addNode.adoc[`addNode`] 
| Add the specified `nodePtr` node at the end of this bucket&period;
| xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_Bucket/allocator.adoc[`allocator`] 
| Return the allocator used by `StripedUnorderedContainerImpl&lowbar;Bucket` to allocate memory&period;
| xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_Bucket/clear.adoc[`clear`] 
| Empty `StripedUnorderedContainerImpl&lowbar;Bucket` and delete all nodes&period;
| xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_Bucket/empty.adoc[`empty`] 
| Return `true` if this bucket contains no elements, and `false` otherwise&period;
| xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_Bucket/head.adoc[`head`] 
| Return the head (node) of this bucket list&period;
| xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_Bucket/headAddress.adoc[`headAddress`] 
| Return the address of the head (node) of this bucket list&period;
| xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_Bucket/incrementSize.adoc[`incrementSize`] 
| Increment the `size` attribute of this bucket by the specified `amount`&period;
| xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_Bucket/setHead.adoc[`setHead`] 
| Set the address of the head of this bucket list to the specified `value`&period;
| xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_Bucket/setSize.adoc[`setSize`] 
| Set the `size` attribute of this bucket to the specified `value`&period;
| xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_Bucket/setTail.adoc[`setTail`] 
| Set the pointer of the tail of this bucket list to the specified `value`&period;
| xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_Bucket/setValue-0e.adoc[`setValue`] 
| `setValue` overloads
| xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_Bucket/size.adoc[`size`] 
| Return the current number of elements in this bucket&period;
| xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_Bucket/tail.adoc[`tail`] 
| Return address of the tail (node) of this bucket list&period;
| xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_Bucket/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration&lt;StripedUnorderedContainerImpl&lowbar;Bucket, UsesBslmaAllocator&gt;`] 
| Declare that this type uses a `bslma` allocator&period;
|===



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