Home
last modified time | relevance | path

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

/lib/uefi/
A Ddefer.h32 template <typename F> class ScopeGuard {
34 constexpr ScopeGuard(F &&f) : f_(static_cast<F &&>(f)) {} in ScopeGuard() function
35 constexpr ScopeGuard(ScopeGuard &&that) noexcept in ScopeGuard() function
41 constexpr ScopeGuard(ScopeGuard<Functor> &&that) in ScopeGuard() function
46 ~ScopeGuard() { f_(); } in ~ScopeGuard()
48 ScopeGuard() = delete;
49 ScopeGuard(const ScopeGuard &) = delete;
50 void operator=(const ScopeGuard &) = delete;
51 void operator=(ScopeGuard &&that) = delete;
54 template <typename Functor> friend class ScopeGuard;
[all …]

Completed in 5 milliseconds