You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
428 B
26 lines
428 B
#pragma once
|
|
#include <fstream>
|
|
#include <functional>
|
|
#include <iostream>
|
|
#include <list>
|
|
#include <map>
|
|
#include <memory>
|
|
#include <set>
|
|
#include <sstream>
|
|
#include <string>
|
|
#include <vector>
|
|
namespace iflytop {
|
|
using namespace std;
|
|
|
|
class Autodo {
|
|
function<void()> autoRun;
|
|
|
|
public:
|
|
Autodo(function<void()> autoRun) : autoRun(autoRun) {}
|
|
~Autodo() {
|
|
if (autoRun) autoRun();
|
|
}
|
|
|
|
private:
|
|
};
|
|
} // namespace iflytop
|