2022-02-03 08:45:34 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "CoreTypes.h"
|
|
|
|
|
|
|
|
NAMESPACE_REDCRAFT_BEGIN
|
|
|
|
NAMESPACE_MODULE_BEGIN(Redcraft)
|
|
|
|
NAMESPACE_MODULE_BEGIN(Utility)
|
|
|
|
|
|
|
|
struct FNoncopyable
|
|
|
|
{
|
2022-02-03 14:25:02 +00:00
|
|
|
FNoncopyable() = default;
|
2022-02-03 08:45:34 +00:00
|
|
|
FNoncopyable(const FNoncopyable&) = delete;
|
|
|
|
FNoncopyable& operator=(const FNoncopyable&) = delete;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct FNonmovable
|
|
|
|
{
|
2022-02-03 14:25:02 +00:00
|
|
|
FNonmovable() = default;
|
2022-04-05 09:00:33 +00:00
|
|
|
FNonmovable(FNonmovable&&) = delete;
|
|
|
|
FNonmovable& operator=(FNonmovable&&) = delete;
|
2022-02-03 08:45:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct FSingleton : public FNoncopyable, public FNonmovable { };
|
|
|
|
|
|
|
|
NAMESPACE_MODULE_END(Utility)
|
|
|
|
NAMESPACE_MODULE_END(Redcraft)
|
|
|
|
NAMESPACE_REDCRAFT_END
|