Sequence.searchIter

Like g_sequence_search(), but uses a GSequenceIterCompareFunc instead of a GCompareDataFunc as the compare function. If you are simply searching for an existing element of the sequence, consider using g_sequence_lookup_iter(). Since 2.14

class Sequence
searchIter

Parameters

data void*

data for the new item

iterCmp GSequenceIterCompareFunc

the GSequenceIterCompare function used to compare iterators in the sequence. It is called with two iterators pointing into seq. It should return 0 if the iterators are equal, a negative value if the first iterator comes before the second, and a positive value if the second iterator comes before the first.

cmpData void*

user data passed to iter_cmp

Return Value

a GSequenceIter pointing to the position in seq where data would have been inserted according to iter_cmp and cmp_data.

Meta