|
|
@@ -212,6 +212,14 @@ TEST_CASE("Polyfills/type_traits") {
|
|
|
CHECK(is_enum<double>::value == false);
|
|
|
}
|
|
|
|
|
|
+ SECTION("remove_cv") {
|
|
|
+ CHECK(is_same<remove_cv_t<const int>, int>::value);
|
|
|
+ CHECK(is_same<remove_cv_t<volatile int>, int>::value);
|
|
|
+ CHECK(is_same<remove_cv_t<const volatile int>, int>::value);
|
|
|
+ CHECK(is_same<remove_cv_t<int>, int>::value);
|
|
|
+ CHECK(is_same<remove_cv_t<decltype("toto")>, decltype("toto")>::value);
|
|
|
+ }
|
|
|
+
|
|
|
SECTION("decay") {
|
|
|
CHECK(is_same<decay_t<int>, int>::value);
|
|
|
CHECK(is_same<decay_t<int&>, int>::value);
|