David Ribeiro Alves has submitted this change and it was merged. Change subject: Add a FindPointeeOrNull method to map-util ......................................................................
Add a FindPointeeOrNull method to map-util This adds a new FindPointeeOrNull to map-util to use with maps having smart pointers as values (like shared_ptr or unique_ptr). The new method returns a raw pointer to the value contained in in the smart pointer, if the key exits or nullptr if it doesn't. Change-Id: I9a5d26bdd39e8d12382eb460cb75e04b645e3b2d Reviewed-on: http://gerrit.cloudera.org:8080/3594 Reviewed-by: David Ribeiro Alves <dral...@apache.org> Reviewed-by: Todd Lipcon <t...@apache.org> Tested-by: Kudu Jenkins --- M src/kudu/gutil/map-util.h M src/kudu/util/map-util-test.cc 2 files changed, 27 insertions(+), 0 deletions(-) Approvals: David Ribeiro Alves: Looks good to me, approved Todd Lipcon: Looks good to me, approved Kudu Jenkins: Verified -- To view, visit http://gerrit.cloudera.org:8080/3594 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: merged Gerrit-Change-Id: I9a5d26bdd39e8d12382eb460cb75e04b645e3b2d Gerrit-PatchSet: 6 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: David Ribeiro Alves <dral...@apache.org> Gerrit-Reviewer: Alexey Serbin <aser...@cloudera.com> Gerrit-Reviewer: David Ribeiro Alves <dral...@apache.org> Gerrit-Reviewer: Kudu Jenkins Gerrit-Reviewer: Todd Lipcon <t...@apache.org>