feat(templates): add type traits to determine if it is TAny etc

This commit is contained in:
2022-03-31 17:36:48 +08:00
parent 54ab72224f
commit 5f4b0d8c22
6 changed files with 33 additions and 24 deletions

View File

@ -40,6 +40,9 @@ private:
template <typename T>
TReferenceWrapper(T&) -> TReferenceWrapper<T>;
template <typename T> struct TIsTReferenceWrapper : FFalse { };
template <typename T> struct TIsTReferenceWrapper<TReferenceWrapper<T>> : FTrue { };
template <typename T> struct TUnwrapReference { using Type = T; };
template <typename T> struct TUnwrapReference<TReferenceWrapper<T>> { using Type = T&; };