ot::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.
Arguments
aElement
A reference to an element in the array.
Return value
The index of @p aElement in the array.