|
proxygen
|
#include <ScopeGuard.h>
Public Member Functions | |
| ScopeGuardImpl (FunctionType &fn) noexcept(std::is_nothrow_copy_constructible< FunctionType >::value) | |
| ScopeGuardImpl (const FunctionType &fn) noexcept(std::is_nothrow_copy_constructible< FunctionType >::value) | |
| ScopeGuardImpl (FunctionType &&fn) noexcept(std::is_nothrow_move_constructible< FunctionType >::value) | |
| ScopeGuardImpl (ScopeGuardImpl &&other) noexcept(std::is_nothrow_move_constructible< FunctionType >::value) | |
| ~ScopeGuardImpl () noexcept(InvokeNoexcept) | |
Public Member Functions inherited from folly::detail::ScopeGuardImplBase | |
| void | dismiss () noexcept |
Private Member Functions | |
| template<typename Fn > | |
| ScopeGuardImpl (Fn &&fn, ScopeGuardImplBase &&failsafe) | |
| void * | operator new (std::size_t)=delete |
| void | execute () noexcept(InvokeNoexcept) |
Static Private Member Functions | |
| static ScopeGuardImplBase | makeFailsafe (std::true_type, const void *) noexcept |
| template<typename Fn > | |
| static auto | makeFailsafe (std::false_type, Fn *fn) noexcept-> ScopeGuardImpl< decltype(std::ref(*fn)), InvokeNoexcept > |
Private Attributes | |
| FunctionType | function_ |
Additional Inherited Members | |
Protected Member Functions inherited from folly::detail::ScopeGuardImplBase | |
| ScopeGuardImplBase () noexcept | |
Static Protected Member Functions inherited from folly::detail::ScopeGuardImplBase | |
| static void | warnAboutToCrash () noexcept |
| static ScopeGuardImplBase | makeEmptyScopeGuard () noexcept |
| template<typename T > | |
| static const T & | asConst (const T &t) noexcept |
Protected Attributes inherited from folly::detail::ScopeGuardImplBase | |
| bool | dismissed_ |
Definition at line 58 of file ScopeGuard.h.
|
inlineexplicitnoexcept |
Definition at line 60 of file ScopeGuard.h.
|
inlineexplicitnoexcept |
Definition at line 68 of file ScopeGuard.h.
|
inlineexplicitnoexcept |
Definition at line 76 of file ScopeGuard.h.
|
inlinenoexcept |
Definition at line 84 of file ScopeGuard.h.
References folly::detail::ScopeGuardImplBase::dismissed_, and folly::exchange().
|
inlinenoexcept |
Definition at line 95 of file ScopeGuard.h.
References folly::detail::ScopeGuardImplBase::dismissed_.
|
inlineexplicitprivate |
Definition at line 114 of file ScopeGuard.h.
References folly::detail::ScopeGuardImplBase::dismiss().
|
inlineprivatenoexcept |
Definition at line 121 of file ScopeGuard.h.
References folly::detail::ScopeGuardImplBase::warnAboutToCrash().
|
inlinestaticprivatenoexcept |
Definition at line 102 of file ScopeGuard.h.
References folly::detail::ScopeGuardImplBase::makeEmptyScopeGuard().
|
inlinestaticprivatenoexcept |
Definition at line 107 of file ScopeGuard.h.
|
privatedelete |
|
private |
Definition at line 134 of file ScopeGuard.h.