David Ribeiro Alves has uploaded a new change for review.

  http://gerrit.cloudera.org:8080/3595

Change subject: Add a EraseKeyReturnSmartPtrValue to map-util
......................................................................

Add a EraseKeyReturnSmartPtrValue to map-util

This adds a new method to map-util to help in erasing key/value pairs for
containers whose value is of smart pointer type.
Instead of returning the value, like EraseKeyReturnValuePtr this uses a smart
pointer out param that it "swaps" the value into, therefore not decreasing
the ref count (if applicable) and avoiding copy/assignment (which is not 
possible
with certain smart pointers, like std::unique_ptr).

Change-Id: I65d17dd26317f77c4c0aa4b8ec00fbe51f8d1ced
---
M src/kudu/gutil/map-util.h
M src/kudu/util/map-util-test.cc
2 files changed, 33 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/95/3595/1
-- 
To view, visit http://gerrit.cloudera.org:8080/3595
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I65d17dd26317f77c4c0aa4b8ec00fbe51f8d1ced
Gerrit-PatchSet: 1
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: David Ribeiro Alves <dral...@apache.org>

Reply via email to