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

Function EraseKeyReturnValuePtr

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

Source from the content-addressed store, hash-verified

780// first value.
781template <class Collection>
782typename Collection::mapped_type EraseKeyReturnValuePtr(
783 Collection* const collection,
784 const typename Collection::key_type& key) {
785 auto it = collection->find(key);
786 if (it == collection->end()) {
787 return typename Collection::mapped_type();
788 }
789 typename Collection::mapped_type v = std::move(it->second);
790 collection->erase(it);
791 return v;
792}
793
794// Inserts all the keys from map_container into key_container, which must
795// support insert(MapContainer::key_type).

Callers 5

HandleCallResponseMethod · 0.85
UnregisterServiceMethod · 0.85
TESTFunction · 0.85

Calls 4

moveFunction · 0.85
eraseMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by 1

TESTFunction · 0.68