26 lines
378 B
C++
26 lines
378 B
C++
|
|
/*
|
|||
|
|
* IFunctor.h
|
|||
|
|
*
|
|||
|
|
* Created on: 16 <EFBFBD><EFBFBD><EFBFBD>. 2017 <EFBFBD>.
|
|||
|
|
* 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_ */
|