Comparator type used by the sorted containers.
More...
|
| typedef int(* | Comparator) (void *a, void *b) |
| | Compare two items.
|
| |
Comparator type used by the sorted containers.
◆ Comparator
| typedef int(* Comparator) (void *a, void *b) |
Compare two items.
Note the sign convention, opposite to qsort().
- Parameters
-
| a | First item. |
| b | Second item. |
- Returns
- Negative if
a > b, positive if b > a, 0 if equal.
◆ uint32_comparator()
| int uint32_comparator |
( |
void * |
a, |
|
|
void * |
b |
|
) |
| |
Comparator for uint32_t items.
- Parameters
-
| a | Pointer to the first uint32_t. |
| b | Pointer to the second uint32_t. |
- Returns
- Negative if
a > b, positive if b > a, 0 if equal.