You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #ifndef DEFER_H
- #define DEFER_H
-
- #include <functional>
- using namespace std;
-
- class Defer
- {
- public:
- Defer(function<void ()> deleter);
- ~Defer();
- private:
- function<void ()> mDeleter;
- };
-
- #endif // DEFER_H
|