BloombergLP::bslalg::HashTableImpUtil::insertAtFrontOfBucket

Insert the specified link, having the specified (non-adjusted) hashCode, into the specified anchor, at the front of the bucket with index computeBucketIndex(hashCode, anchor->bucketArraySize()). The behavior is undefined unless anchor is well-formed (see isWellFormed) for some combination of KEY_CONFIG and HASHER such that link refers to a node of type BidirectionalNode<KEY_CONFIG::ValueType> and HASHER(extractKey<KEY_CONFIG>(link)) returns hashCode.

Synopsis

Declared in <bslalg_hashtableimputil.h>

static
void
insertAtFrontOfBucket(
    HashTableAnchor* anchor,
    BidirectionalLink* link,
    std::size_t hashCode);