MapMustRehashWithPolicy
Description
Aborting variant of MapRehashWithPolicy. Calls LOG_FATAL on allocation failure.
Success
Returns to the caller.
Failure
Does not return - aborts via LOG_FATAL / Abort.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Memory.h:162:
do { \
if (!MapRehashWithPolicy((m), (n), (policy_value))) { \
LOG_FATAL("MapMustRehashWithPolicy failed"); \
} \
} while (0)- In
Map.Ops.c:245:
bool result = (MapTombstones(&map) == 1);
MapMustRehashWithPolicy(&map, MapPairCount(&map), MapPolicyQuadratic);
// Policy is now quadratic (copied in by value).
Last updated on