BloombergLP::bdlma::ConcurrentFixedPool::indexFromAddress

Return the index of the memory block at the specified address.

Synopsis

Declared in <bdlma_concurrentfixedpool.h>

int
indexFromAddress(void* address) const;

Description

Return an index in the range from 0 to the maximum size of this pool that uniquely identifies the memory block at the specified address. The behavior is undefined unless address corresponds to a memory block allocated from this pool.

Return Value

unique index of the memory block at address

Parameters

NameDescription
addressmemory block allocated from this pool