26 lines
378 B
C++
26 lines
378 B
C++
/*
|
|
* IFunctor.h
|
|
*
|
|
* Created on: 16 àâã. 2017 ã.
|
|
* Author: titov
|
|
*/
|
|
|
|
#ifndef SOURCE_SYSTEM_IFUNCTOR_H_
|
|
#define SOURCE_SYSTEM_IFUNCTOR_H_
|
|
|
|
namespace systemic {
|
|
|
|
template<typename ReturnType, typename ... Args>
|
|
struct IFunctor {
|
|
|
|
virtual ReturnType operator()( Args ... args ) = 0;
|
|
|
|
virtual ~IFunctor() = default;
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* SOURCE_SYSTEM_IFUNCTOR_H_ */
|