Home
last modified time | relevance | path

Searched refs:ScopeGuard (Results 1 – 1 of 1) sorted by relevance

/bionic/libc/private/
DScopeGuard.h24 class ScopeGuard {
26 ScopeGuard(F f) : f_(f), active_(true) {} in ScopeGuard() function
28 ScopeGuard(ScopeGuard&& that) : f_(that.f_), active_(that.active_) { in ScopeGuard() function
32 ~ScopeGuard() { in ~ScopeGuard()
45 DISALLOW_IMPLICIT_CONSTRUCTORS(ScopeGuard);
49 ScopeGuard<T> make_scope_guard(T f) { in make_scope_guard()
50 return ScopeGuard<T>(f); in make_scope_guard()