[#BloombergLP-bslstl-HashTable_Util-initAnchor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/HashTable_Util.adoc[HashTable&lowbar;Util]::initAnchor
:relfileprefix: ../../../
:mrdocs:

Load into the specified `anchor` a (contiguous) array of buckets of the specified `bucketArraySize` using memory supplied by the specified `allocator`&period; The behavior is undefined unless `0 &lt; bucketArraySize` and `0 &equals;&equals; anchor&hyphen;&gt;bucketArraySize()`&period; Note that this operation has no effect on `anchor&hyphen;&gt;listRootAddress()`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;hashtable&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ALLOCATOR&gt;
static
void
initAnchor(
    xref:BloombergLP/bslalg/HashTableAnchor.adoc[bslalg::HashTableAnchor]* anchor,
    std::size&lowbar;t bucketArraySize,
    ALLOCATOR const& allocator);
----


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