--- a/src/cx/map.h Sat Dec 13 12:09:58 2025 +0100 +++ b/src/cx/map.h Sat Dec 13 12:24:35 2025 +0100 @@ -720,6 +720,22 @@ cx_attr_nonnull CX_EXPORT int cxMapUnionSimple(CxMap *dst, const CxMap *src); + +/** + * Compares the entries of two maps. + * + * @param map the map + * @param other the other map that the first map is compared to + * @retval zero when both maps have the same key sets + * and the values are pairwise equivalent + * @retval negative when the first @p map has fewer keys than the @p other map + * @retval positive when the first @p map has more keys than the @p other map + * @retval non-zero (unspecified whether positive or negative) when the size + * of both maps is equal but a key or a value is different + */ +cx_attr_nonnull +CX_EXPORT int cxMapCompare(const CxMap *map, const CxMap *other); + #ifdef __cplusplus } // extern "C" #endif