ot::Pool::IsPoolEntry() const method
Indicates whether or not a given `Type` object is from the pool.
Syntax
bool IsPoolEntry(const Type &aObject) const; Arguments
aObject
A reference to a `Type` object.
Return value
TRUE if @p aObject is from the pool. FALSE if @p aObject is not from the pool.
![]()
bool IsPoolEntry(const Type &aObject) const { return (&mPool[0] <= &aObject) && (&aObject < GetArrayEnd(mPool)); }