QueueG.insertSorted

Inserts data into queue using func to determine the new position. Since 2.4

class QueueG
void
insertSorted

Parameters

data void*

the data to insert

func GCompareDataFunc

the GCompareDataFunc used to compare elements in the queue. It is called with two elements of the queue and user_data. It should return 0 if the elements are equal, a negative value if the first element comes before the second, and a positive value if the second element comes before the first.

userData void*

user data passed to func.

Meta