Typedef rcutils_hash_map_key_cmp_t

Typedef Documentation

typedef int (*rcutils_hash_map_key_cmp_t)(const void*, const void*)

The function signature for a key comparison function.

Param val1:

[in] The first value to compare

Param val2:

[in] The second value to compare

Return:

A negative number if val1 < val2, or

Return:

A positve number if val1 > val2, or

Return:

Zero if val1 == val2.