enum lfds711_hash_a_existing_key
Jump to navigation
Jump to search
Source File
└───liblfds711 └───inc └───liblfds711 lfds711_hash_addonly.h
Enum
enum lfds711_hash_a_existing_key { LFDS711_HASH_A_EXISTING_KEY_OVERWRITE, LFDS711_HASH_A_EXISTING_KEY_FAIL };
Values
LFDS711_HASH_A_EXISTING_KEY_OVERWRITE
- Indicates that if when linking a new element into a hash, the key in the new element is already present in the hash, that the value of the new element should be written into the existing element.
LFDS711_HASH_A_EXISTING_KEY_FAIL
- Indicates that if when inserting a new element into a hash, the key in the new element is already present in the hash, the insert should fail.
Notes
This enum is passed to the lfds711_hash_a_init_valid_on_current_logical_core function, to indicte how the hash should behave when attempting to insert keys which already exist.