mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:07:35 +00:00
AK: Add and use the RemoveCVReference<T> type trait
This commit is contained in:
parent
c8270dbe2e
commit
745a1dbb5d
3 changed files with 16 additions and 4 deletions
|
@ -105,3 +105,11 @@ TEST_CASE(UnderlyingType)
|
|||
|
||||
STATIC_EXPECT_EQ(Type, u8);
|
||||
}
|
||||
|
||||
TEST_CASE(RemoveCVReference)
|
||||
{
|
||||
using TestTypeList = TypeList<int, int&, int const&, int volatile&, int const volatile&, int&&, int const&&, int volatile&&, int const volatile&&>;
|
||||
using ResultTypeList = TypeList<int, int, int, int, int, int, int, int, int>;
|
||||
|
||||
EXPECT_EQ_WITH_TRAIT(RemoveCVReference, TestTypeList, ResultTypeList);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue