commit | c0be76fac7435fe38a0e2f10d65ed55909c5afdc | [log] [tgz] |
---|---|---|
author | Luis Hector Chavez <lhchavez@google.com> | Mon Mar 26 13:11:21 2018 -0700 |
committer | Luis Hector Chavez <lhchavez@google.com> | Mon Mar 26 13:30:09 2018 -0700 |
tree | 0cd8a03f13e82ce1d510e993979d429fad5d0831 | |
parent | 7a9d3c70214e83588ab58a75287f5fef06b7691d [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