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

Insert the specified `link`, having the specified (non&hyphen;adjusted) `hashCode`, into the specified `anchor`, into the bucket with index `computeBucketIndex(hashCode, anchor&hyphen;&gt;bucketArraySize())`, after the last node in the bucket&period; The behavior is undefined unless `anchor` is well&hyphen;formed (see `isWellFormed`) for some combination of `KEY&lowbar;CONFIG` and `HASHER` such that `link` refers to a node of type `BidirectionalNode&lt;KEY&lowbar;CONFIG&colon;&colon;ValueType&gt;` and `HASHER(extractKey&lt;KEY&lowbar;CONFIG&gt;(link))` returns `hashCode`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
insertAtBackOfBucket(
    xref:BloombergLP/bslalg/HashTableAnchor.adoc[HashTableAnchor]* anchor,
    xref:BloombergLP/bslalg/BidirectionalLink.adoc[BidirectionalLink]* link,
    std::size&lowbar;t hashCode);
----


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