|
Console Library 8.0.0
A header-only library that makes C++ simple
|
推迟执行的RAII守卫类。 More...
#include <defer.h>
Public Member Functions | |
| DeferGuard (const F &f) | |
| 构造函数,接受推迟执行的函数。 | |
| DeferGuard (F &&f) | |
| 构造函数,接受推迟执行的函数。 | |
| ~DeferGuard () | |
| 析构函数,执行推迟执行的函数。 | |
Private Attributes | |
| F | func |
| 推迟执行的函数。 | |
推迟执行的RAII守卫类。
| F | 推迟执行的函数类型。 |
|
inline |
构造函数,接受推迟执行的函数。
| f | 推迟执行的函数。 |
|
inline |
构造函数,接受推迟执行的函数。
| f | 推迟执行的函数。 |
|
inline |
析构函数,执行推迟执行的函数。
|
private |
推迟执行的函数。