Skip to content

The actual memory footprint of static_map is larger than my estimation #650

Answered by PointKernel
Gibyeng asked this question in Q&A
Discussion options

You must be logged in to vote

The alignment of your key and payload types can be one factor, while another is that cuco hash tables ensure the requested capacity serves as a lower bound. They select the smallest prime number greater than the requested capacity as the actual capacity. see

* @note The actual capacity of a container (map/set) should be exclusively determined by the return
* value of this utility since the output depends on the requested low-bound size, the probing
* scheme, and the storage. This utility is used internally during container constructions while for
* container ref constructions, it would be users'…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@PointKernel
Comment options

Answer selected by Gibyeng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants