DescriptionAdd WrapUnique helper to wrap a raw pointer in a std::unique_ptr.
This is the equivalent of make_scoped_ptr in a post-scoped_ptr world. It
is not called MakeUniquePtr because C++14 adds a std::make_unique helper
with different semantics.
BUG=554522
Committed: https://crrev.com/2ba07d1f31f04391c83a53a2e49387de58b1ac2d
Cr-Commit-Position: refs/heads/master@{#365079}
Patch Set 1 #
Total comments: 6
Patch Set 2 : Comment changes and stuff #Patch Set 3 : Address comments and add comments. #
Messages
Total messages: 13 (3 generated)
|