Inserts the element into the heap and maintains the heap condition of the heap.

Inserts the element into the heap and maintains the heap condition of the heap.This function has a time complexity of O(Log N), with N being the number of elements in the heap.

**Parameters:****heap**- The heap to use**element**- Element to be inserted to the heap**Returns:**- int rc >= 0: The size of the heap.

int rc < 0: An error, see pbl_errno:

PBL_ERROR_OUT_OF_MEMORY - Out of memory.

This page was generated with the help of DOC++.