Dynamic memory used by a pool‐allocated unordered_map, including the pool resource.
Synopsis
Declared in <memusage.h>
template<
class Key,
class T,
class Hash,
class Pred,
std::size_t MAX_BLOCK_SIZE_BYTES,
std::size_t ALIGN_BYTES>
static
size_t
DynamicUsage(std::unordered_map<Key, T, Hash, Pred, PoolAllocator<std::pair<Key const, T>, MAX_BLOCK_SIZE_BYTES, ALIGN_BYTES>> const& m);
Return Value
The bytes allocated for the pool chunks plus the bucket array.
Parameters
Name |
Description |
m |
The pool‐allocated unordered_map to measure. |
Created with MrDocs