ot::Heap::Array::IndexOf() const method
Returns the index of an element in the array. The @p aElement MUST be from the array, otherwise the behavior of this method is undefined.
Syntax
IndexType IndexOf(const Type &aElement) const; Arguments
aElement
A reference to an element in the array.
Return value
The index of @p aElement in the array.