#include <finally.h>
Public Member Functions | |
| MAXON_IMPLICIT | FinallyOnce (FinallyOnce &&src) | 
| MAXON_IMPLICIT | FinallyOnce (T &&lambda) | 
| ~FinallyOnce () | |
| MAXON_OPERATOR_MOVE_ASSIGNMENT (FinallyOnce) | |
| void | Disable () | 
| void | Enable () | 
| std::invoke_result< T >::type | operator() () | 
Private Member Functions | |
| MAXON_DISALLOW_COPY_AND_ASSIGN (FinallyOnce) | |
Private Attributes | |
| T | _lambda | 
| Bool | _isEnabled | 
| MAXON_IMPLICIT FinallyOnce | ( | FinallyOnce< T > && | src | ) | 
| MAXON_IMPLICIT FinallyOnce | ( | T && | lambda | ) | 
| ~FinallyOnce | ( | ) | 
      
  | 
  private | 
| MAXON_OPERATOR_MOVE_ASSIGNMENT | ( | FinallyOnce< T > | ) | 
| void Disable | ( | ) | 
Disables the invocation of the lambda.
| void Enable | ( | ) | 
Enables the invocation of the lambda.
| std::invoke_result<T>::type operator() | ( | ) | 
      
  | 
  private | 
      
  | 
  private |