MCPcopy Create free account
hub / github.com/couchbase/fleece / insert

Method insert

Fleece/Support/ConcurrentMap.hh:72–72  ·  view source on GitHub ↗

Inserts a value for a key. Returns the value, as well as a new copy of the key in memory owned by the map. If the key already exists, the existing value is not changed, and the existing value is returned as well as the managed copy of the key (as from `find`.) If the hash table or key storage is full and the key can't be inserted, returns an empty

Source from the content-addressed store, hash-verified

70 If the hash table or key storage is full and the key can't be inserted, returns an empty
71 slice. */
72 result insert(slice key, value_t value) {return insert(key, value, hashCode(key));}
73 result insert(slice key, value_t value, hash_t);
74
75 /** Removes the value for a key. Returns true if removed, false if not found.

Callers

nothing calls this directly

Calls 1

insertFunction · 0.85

Tested by

no test coverage detected