feat(templates): add TUnwrapReference and the corresponding testing

This commit is contained in:
2022-03-26 19:33:28 +08:00
parent e1871de73b
commit 91755d2196
2 changed files with 8 additions and 0 deletions

View File

@ -75,6 +75,9 @@ void TestReferenceWrapper()
always_check(ArrayA[0] == 2);
always_check(ArrayA[1] == 4);
always_check(ArrayA[2] == 6);
always_check((TIsSame<int32, TUnwrapRefDecay<int32>::Type>::Value));
always_check((TIsSame<int32&, TUnwrapRefDecay<TReferenceWrapper<int32>>::Type>::Value));
}
void TestOptional()