enum lfds710_hash_a_insert_result

From liblfds.org
Revision as of 21:04, 7 May 2016 by Admin (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Source File

└───liblfds710
    └───inc
        └───liblfds710
                lfds710_hash_addonly.h

Enum

enum lfds710_hash_a_insert_result
{
  LFDS710_HASH_A_INSERT_RESULT_FAILURE_EXISTING_KEY,
  LFDS710_HASH_A_INSERT_RESULT_SUCCESS_OVERWRITE,
  LFDS710_HASH_A_INSERT_RESULT_SUCCESS
};

Values

LFDS710_HASH_A_INSERT_RESULT_FAILURE_EXISTING_KEY

If a hash is initialized with LFDS710_HASH_A_EXISTING_KEY_FAIL then this value can be returned when attempting to insert a new element, and it occurs when an attempt is made to insert into that hash an element with a key which is already present in the hash.

LFDS710_HASH_A_INSERT_RESULT_SUCCESS_OVERWRITE

If a hash is initialized with LFDS710_HASH_A_EXISTING_KEY_OVERWRITE then this value can be returned when attempting to insert a new element, and it occurs when an attempt is made to insert into that hash an element with a key which is already present in the hash.

LFDS710_HASH_A_INSERT_RESULT_SUCCESS

This value is returned when inserting an element to a hash where the key in that element is not yet present in the hash.

Notes

No notes.

See Also