MCPcopy Create free account
hub / github.com/NetSys/bess / Insert

Method Insert

core/utils/cuckoo_map.h:213–216  ·  view source on GitHub ↗

Insert/update a key value pair On success returns a pointer to the inserted entry, nullptr otherwise. NOTE: when Insert() returns nullptr, the copy/move constructor of `V` may not be called.

Source from the content-addressed store, hash-verified

211 // NOTE: when Insert() returns nullptr, the copy/move constructor of `V` may
212 // not be called.
213 Entry* Insert(const K& key, const V& value, const H& hasher = H(),
214 const E& eq = E()) {
215 return DoEmplace(key, hasher, eq, value);
216 }
217
218 Entry* Insert(const K& key, V&& value, const H& hasher = H(),
219 const E& eq = E()) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected