Arena::addressInArena

Return whether a pointer points inside this arena. This returns base <= ptr < (base+size) so only use it for (inclusive) chunk starting addresses.

Synopsis

Declared in <support/lockedpool.h>

bool
addressInArena(void* ptr) const;

Return Value

True when the pointer lies within this arena.

Parameters

NameDescription
ptrPointer to test against the arena's bounds.