MCPcopy Create free account
hub / github.com/beefytech/Beef / TryAdd

Method TryAdd

BeefySysLib/util/Dictionary.h:497–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495 }
496
497 bool TryAdd(const TKey& key, const TValue& value)
498 {
499 TValue* valuePtr;
500 if (!Insert(key, false, NULL, &valuePtr))
501 return false;
502 new (valuePtr) TValue(value);
503 return true;
504 }
505
506 bool TryAdd(const TKey& key, TKey** keyPtr, TValue** valuePtr)
507 {

Callers

nothing calls this directly

Calls 1

InsertFunction · 0.85

Tested by

no test coverage detected