commit | 4f10c19b0cdff68f94c10c96f1f195861764300c | [log] [tgz] |
---|---|---|
author | dcheng <dcheng@chromium.org> | Tue Dec 15 05:07:14 2015 +0900 |
committer | Qijiang Fan <fqj@google.com> | Fri Jun 05 02:03:54 2020 +0900 |
tree | a2367d5dc4285eb0a4d6bc87dae41231b977b55c | |
parent | 744b85ae1dc715b4fe46c4bd22c69bb3a179e832 [diff] |
Add 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 Review URL: https://codereview.chromium.org/1513423002 Cr-Commit-Position: refs/heads/master@{#365079} CrOS-Libchrome-Original-Commit: 2ba07d1f31f04391c83a53a2e49387de58b1ac2d