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

Function ComputeIfAbsent

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

Source from the content-addressed store, hash-verified

961//
962template <class MapContainer, typename Function>
963typename MapContainer::mapped_type* const
964ComputeIfAbsent(MapContainer* container,
965 const typename MapContainer::key_type& key,
966 Function compute_func) {
967 return ComputeIfAbsentReturnAbsense(container, key, compute_func).first;
968};
969
970template <class MapContainer, typename Function>
971typename MapContainer::mapped_type* const

Callers 2

TrackRpcUnlockedMethod · 0.85
TESTFunction · 0.85

Calls 1

Tested by 1

TESTFunction · 0.68