[#CCoinsMap]
= CCoinsMap
:mrdocs:

PoolAllocator&apos;s MAX&lowbar;BLOCK&lowbar;SIZE&lowbar;BYTES parameter here uses sizeof the data, and adds the size of 4 pointers&period; We do not know the exact node size used in the std&colon;&colon;unordered&lowbar;node implementation because it is implementation defined&period; Most implementations have an overhead of 1 or 2 pointers, so nodes can be connected in a linked list, and in some cases the hash value is stored as well&period; Using an additional sizeof(void&ast;)&ast;4 for MAX&lowbar;BLOCK&lowbar;SIZE&lowbar;BYTES should thus be sufficient so that all implementations can allocate the nodes from the PoolAllocator&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
using CCoinsMap = std::unordered&lowbar;map&lt;COutPoint, CCoinsCacheEntry, SaltedCoinsCacheHasher, std::equal&lowbar;to&lt;COutPoint&gt;, PoolAllocator&lt;CoinsCachePair, sizeof(CoinsCachePair) &plus; sizeof(void &ast;) &ast; 4&gt;&gt;;
----


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