commit | 4e3682c4091a12b83e9f9163609ae9835097a3ca | [log] [tgz] |
---|---|---|
author | Luis Hector Chavez <lhchavez@google.com> | Mon Mar 26 13:11:21 2018 -0700 |
committer | Luis Hector Chavez <lhchavez@google.com> | Tue Mar 27 00:38:06 2018 +0000 |
tree | 4471431063dc647b255a787a8f7fca5ecf901ddd | |
parent | cb69a1c0528830e3ca880d56635b77aec1292a91 [diff] |
Allow android::base::ScopeGuard in STL containers This change lets android::base::ScopeGuard be useful in STL containers (e.g. std::vector<android::base::ScopeGuard<std::function<void()>>>). It also provides perfect forwarding for android::base::make_scope_guard. Bug: 34764308 Test: libbase_test Change-Id: I7d1e5494b0f0695763cff0700efdb9ec18ae85c8 Merged-In: I7d1e5494b0f0695763cff0700efdb9ec18ae85c8 (cherry picked from commit b77035b89a3e95358a1aac9e28cd61c8b256e7ae)