Recursively measure the dynamic memory used by the pointee of a shared pointer.
Declared in <core_memusage.h>
template<typename X>
static
size_t
RecursiveDynamicUsage(std::shared_ptr<X> const& p);
The number of bytes of dynamically allocated memory, or 0 when the pointer is null.
| Name | Description |
|---|---|
| p | Shared pointer whose control block, pointee, and nested allocations are measured. |