[#memusage-DynamicUsage-01]
= xref:memusage.adoc[memusage]::DynamicUsage
:relfileprefix: ../
:mrdocs:

Dynamic memory used by a pool&hyphen;allocated unordered&lowbar;map, including the pool resource&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class Key,
    class T,
    class Hash,
    class Pred,
    std::size&lowbar;t MAX&lowbar;BLOCK&lowbar;SIZE&lowbar;BYTES,
    std::size&lowbar;t ALIGN&lowbar;BYTES&gt;
static
size&lowbar;t
DynamicUsage(std::unordered&lowbar;map&lt;Key, T, Hash, Pred, PoolAllocator&lt;std::pair&lt;Key const, T&gt;, MAX&lowbar;BLOCK&lowbar;SIZE&lowbar;BYTES, ALIGN&lowbar;BYTES&gt;&gt; const& m);
----

== Return Value

The bytes allocated for the pool chunks plus the bucket array&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *m*
| The pool&hyphen;allocated unordered&lowbar;map to measure&period;
|===


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