docs/Writerside/topics/utils.md

Sun, 26 Oct 2025 13:08:42 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 26 Oct 2025 13:08:42 +0100
changeset 1450
09a73312d5ec
parent 1424
563033aa998c
permissions
-rw-r--r--

add more test coverage for new map functions and fixes some issues

the "what if dst already contains a key" part did not really work
plus the cxMapListDifference() did not fallback to a default allocator

really resolves #746

# Utilities

Useful functions that are not specifically tied to a certain topic or domain are called Utilities.
The most useful of which are the predefined [compare functions](compare.h.md) for various primitive types.

The [hash functions](hash_key.h.md) are usually of lesser interest unless you are using [hash maps](hash_map.h.md),
but they can be also used independently of the hash map context.

When you are working with [data streams](streams.h.md), e.g. `FILE` streams
or any other stream (or buffer) API that uses an `fwrite`-compatible interface,
you will find the stream copy function quite useful.

And last, but not least, if you are interested in unit testing but don't know which testing framework to use:
search no more, because we have got your back with [UCX Test](test.h.md).

mercurial