MapInitWithValueCompareAndPolicy
MapInitWithValueCompareAndPolicy
Description
Initialize map with key/value comparators and an explicit probing policy.
Parameters
| Name | Direction | Description |
|---|---|---|
hash_fn |
in | Hash callback for keys. |
compare_fn |
in | Key comparator. |
value_compare_fn |
in | Value comparator used by pair-level APIs. |
policy |
in | Probing policy for this map. |
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Init.h:217:
(TYPE_OF(m) MapInitWithPolicy((hash_fn), (compare_fn), (policy_value)))
# define MapInitWithValueCompareAndPolicyT(m, hash_fn, compare_fn, value_compare_fn, policy_value) \
(TYPE_OF(m) MapInitWithValueCompareAndPolicy((hash_fn), (compare_fn), (value_compare_fn), (policy_value)))
# define MapInitWithDeepCopyT(m, hash_fn, compare_fn, key_ci, key_cd, value_ci, value_cd) \
(TYPE_OF(m) MapInitWithDeepCopy((hash_fn), (compare_fn), (key_ci), (key_cd), (value_ci), (value_cd)))- In
Init.h:277:
((TYPE_OF(m))MapInitWithPolicy((hash_fn), (compare_fn), (policy_value)))
# define MapInitWithValueCompareAndPolicyT(m, hash_fn, compare_fn, value_compare_fn, policy_value) \
((TYPE_OF(m))MapInitWithValueCompareAndPolicy((hash_fn), (compare_fn), (value_compare_fn), (policy_value)))
# define MapInitWithDeepCopyT(m, hash_fn, compare_fn, key_ci, key_cd, value_ci, value_cd) \
((TYPE_OF(m))MapInitWithDeepCopy((hash_fn), (compare_fn), (key_ci), (key_cd), (value_ci), (value_cd)))
Last updated on