[#memusage-DynamicUsage-0f] = xref:memusage.adoc[memusage]::DynamicUsage :relfileprefix: ../ :mrdocs: Dynamic memory owned by a shared_ptr, including its control block. == Synopsis Declared in `<memusage.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename X> static size_t DynamicUsage(std::shared_ptr<X> const& p); ---- == Return Value The bytes allocated for the pointee and control block, or 0 if empty. == Parameters [cols="1,4"] |=== | Name| Description | *p* | The shared_ptr to measure. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#