|
xrpld
|
#include <scope.h>
Public Member Functions | |
| ~ScopeSuccess () noexcept(noexcept(exitFunction_())) | |
| ScopeSuccess (ScopeSuccess &&rhs) noexcept(std::is_nothrow_move_constructible_v< EF >||std::is_nothrow_copy_constructible_v< EF >) | |
| ScopeSuccess & | operator= (ScopeSuccess &&)=delete |
| template<class EFP> | |
| ScopeSuccess (EFP &&f, std::enable_if_t< !std::is_same_v< std::remove_cv_t< EFP >, ScopeSuccess > &&std::is_constructible_v< EF, EFP > > *=0) noexcept(std::is_nothrow_constructible_v< EF, EFP >||std::is_nothrow_constructible_v< EF, EFP & >) | |
| void | release () noexcept |
Private Attributes | |
| EF | exitFunction_ |
| bool | executeOnDestruction_ {true} |
| int | uncaughtOnCreation_ {std::uncaught_exceptions()} |
|
noexcept |
|
noexcept |
|
explicitnoexcept |
|
delete |
|
noexcept |
|
private |
|
private |
|
private |