20 lines
481 B
C++
20 lines
481 B
C++
#ifndef FF4EF0DA_D455_437D_A5ED_BA7A7994B9CB
|
|
#define FF4EF0DA_D455_437D_A5ED_BA7A7994B9CB
|
|
|
|
namespace Util
|
|
{
|
|
/*
|
|
*******************************************************************************
|
|
* CLASS DECLARE
|
|
*******************************************************************************
|
|
*/
|
|
template <class T, class... TArgs> class SimpleFactory
|
|
{
|
|
public:
|
|
static T* create(TArgs... args)
|
|
{
|
|
return new T(args...);
|
|
}
|
|
};
|
|
}
|
|
#endif
|