pub unsafe extern "C" fn aws_hash_table_put(
    map: *mut aws_hash_table,
    key: *const c_void,
    value: *mut c_void,
    was_created: *mut c_int
) -> c_int
Expand description

Inserts a new element at key, with the given value. If another element exists at that key, the old element will be overwritten; both old key and value objects will be destroyed.

If was_created is non-NULL, *was_created is set to 0 if an existing element was found, or 1 is a new element was created.

Returns AWS_OP_SUCCESS if an item was found or created. Raises AWS_ERROR_OOM if hash table expansion was required and memory