18 lines
590 B
C++
18 lines
590 B
C++
#ifndef DELEGATES_H_
|
|
#define DELEGATES_H_
|
|
|
|
#include <functional>
|
|
#include <string>
|
|
|
|
using runnable = std::function<void()>;
|
|
using stringconsumer = std::function<void(const std::string&)>;
|
|
using wstringsupplier = std::function<std::wstring()>;
|
|
using wstringconsumer = std::function<void(const std::wstring&)>;
|
|
using doublesupplier = std::function<double()>;
|
|
using doubleconsumer = std::function<void(double)>;
|
|
using boolsupplier = std::function<bool()>;
|
|
using boolconsumer = std::function<void(bool)>;
|
|
using wstringchecker = std::function<bool(const std::wstring&)>;
|
|
|
|
#endif // DELEGATES_H_
|