MCPcopy Create free account
hub / github.com/apache/impala / InsertIfNotPresent

Function InsertIfNotPresent

be/src/gutil/map-util.h:377–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375// inserted; returns false if the key was already present.
376template <class Collection>
377bool InsertIfNotPresent(Collection* const collection,
378 const typename Collection::value_type& vt) {
379 return collection->insert(vt).second;
380}
381
382// Same as above except the key and value are passed separately.
383template <class Collection>

Callers 10

HandleIncomingCallMethod · 0.85
RegisterServiceMethod · 0.85
TESTFunction · 0.85
PopulateDescriptorSetMethod · 0.85
RegisterUnlockedMethod · 0.85
GetTagsMethod · 0.85
ResolveAddressesMethod · 0.85
ParseAddressListFunction · 0.85
InsertOrDieFunction · 0.85
InsertOrDieNoPrintFunction · 0.85

Calls 1

insertMethod · 0.45

Tested by 2

TESTFunction · 0.68
RegisterUnlockedMethod · 0.68