Returns the element at the specified position in the heap.
Documentation
Returns the element at the specified position in the heap.
This method has a time complexity of O(1).
Parameters:
heap - The heap to use
index - Index of the element to return
Returns:
void * retptr != (void*)-1: The element at the specified position, may be NULL.
void * retptr == (void*)-1: An error, see pbl_errno:
PBL_ERROR_OUT_OF_BOUNDS - Index is out of range (index < 0 || index >= size()).