[#CuckooCache-cache-setup]
= xref:CuckooCache.adoc[CuckooCache]::xref:CuckooCache/cache.adoc[cache]::setup
:relfileprefix: ../../
:mrdocs:

setup initializes the container to store no more than new&lowbar;size elements and no less than 2 elements&period;

== Synopsis

Declared in `&lt;cuckoocache&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
uint32&lowbar;t
setup(uint32&lowbar;t new&lowbar;size);
----

== Description

setup should only be called once&period; TestOnlyReset() is the exception&period;

== Return Value

the maximum number of elements storable

== Parameters

[cols="1,4"]
|===
| Name| Description
| *new&lowbar;size*
| the desired number of elements to store
|===


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