[#RecursiveDynamicUsage]
= RecursiveDynamicUsage
:mrdocs:

Recursively measure the dynamic memory used by the pointee of a shared pointer&period;

== Synopsis

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

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

== Return Value

The number of bytes of dynamically allocated memory, or 0 when the pointer is null&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p*
| Shared pointer whose control block, pointee, and nested allocations are measured&period;
|===


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