memusage::DynamicUsage

Dynamic memory used by a vector's element buffer.

Synopsis

Declared in <memusage.h>

template<
    typename T,
    typename Allocator>
static
size_t
DynamicUsage(std::vector<T, Allocator> const& v);

Return Value

The bytes allocated for the vector's capacity.

Parameters

NameDescription
vThe vector to measure.