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

Dynamic memory owned by a unique&lowbar;ptr&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename X&gt;
static
size&lowbar;t
DynamicUsage(std::unique&lowbar;ptr&lt;X&gt; const& p);
----

== Return Value

The bytes allocated for the pointee, or 0 if empty&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p*
| The unique&lowbar;ptr to measure&period;
|===


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