#pragma once #include "CoreTypes.h" #include "Concepts/Common.h" #include "Templates/Templates.h" #include "TypeTraits/TypeTraits.h" NAMESPACE_REDCRAFT_BEGIN NAMESPACE_MODULE_BEGIN(Redcraft) NAMESPACE_MODULE_BEGIN(Utility) template concept CSwappable = requires(T& A, T& B) { Swap(A, B); }; template concept CSwappableWith = CCommonReferenceWith && requires(T&& A, U&& B) { Swap(Forward(A), Forward(A)); Swap(Forward(B), Forward(B)); Swap(Forward(A), Forward(B)); Swap(Forward(B), Forward(A)); }; NAMESPACE_MODULE_END(Utility) NAMESPACE_MODULE_END(Redcraft) NAMESPACE_REDCRAFT_END