Dynamic memory owned by a shared_ptr, including its control block.

Synopsis

Declared in <memusage.h>

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

Name

Description

p

The shared_ptr to measure.

Created with MrDocs