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

Method insert

Fleece/Support/StringTable.hh:54–54  ·  view source on GitHub ↗

Adds a key and its value, or finds an existing key (and doesn't change it). Returns a reference to the entry, and a flag that's true if it's newly added.

Source from the content-addressed store, hash-verified

52 /// Adds a key and its value, or finds an existing key (and doesn't change it).
53 /// Returns a reference to the entry, and a flag that's true if it's newly added.
54 insertResult insert(key_t key, value_t value) {return insert(key, value, hashCode(key));}
55 insertResult insert(key_t key, value_t value, hash_t);
56
57 /// Faster version of \ref insert that only inserts new keys.

Callers

nothing calls this directly

Calls 1

insertFunction · 0.85

Tested by

no test coverage detected