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