| 718 * @retval non-zero when an allocation error occurred |
718 * @retval non-zero when an allocation error occurred |
| 719 */ |
719 */ |
| 720 cx_attr_nonnull |
720 cx_attr_nonnull |
| 721 CX_EXPORT int cxMapUnionSimple(CxMap *dst, const CxMap *src); |
721 CX_EXPORT int cxMapUnionSimple(CxMap *dst, const CxMap *src); |
| 722 |
722 |
| |
723 |
| |
724 /** |
| |
725 * Compares the entries of two maps. |
| |
726 * |
| |
727 * @param map the map |
| |
728 * @param other the other map that the first map is compared to |
| |
729 * @retval zero when both maps have the same key sets |
| |
730 * and the values are pairwise equivalent |
| |
731 * @retval negative when the first @p map has fewer keys than the @p other map |
| |
732 * @retval positive when the first @p map has more keys than the @p other map |
| |
733 * @retval non-zero (unspecified whether positive or negative) when the size |
| |
734 * of both maps is equal but a key or a value is different |
| |
735 */ |
| |
736 cx_attr_nonnull |
| |
737 CX_EXPORT int cxMapCompare(const CxMap *map, const CxMap *other); |
| |
738 |
| 723 #ifdef __cplusplus |
739 #ifdef __cplusplus |
| 724 } // extern "C" |
740 } // extern "C" |
| 725 #endif |
741 #endif |
| 726 |
742 |
| 727 #endif // UCX_MAP_H |
743 #endif // UCX_MAP_H |