We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
remove_cv
1 parent afc0a29 commit 5f8e3c0Copy full SHA for 5f8e3c0
extras/tests/Misc/TypeTraits.cpp
@@ -212,6 +212,14 @@ TEST_CASE("Polyfills/type_traits") {
212
CHECK(is_enum<double>::value == false);
213
}
214
215
+ SECTION("remove_cv") {
216
+ CHECK(is_same<remove_cv_t<const int>, int>::value);
217
+ CHECK(is_same<remove_cv_t<volatile int>, int>::value);
218
+ CHECK(is_same<remove_cv_t<const volatile int>, int>::value);
219
+ CHECK(is_same<remove_cv_t<int>, int>::value);
220
+ CHECK(is_same<remove_cv_t<decltype("toto")>, decltype("toto")>::value);
221
+ }
222
+
223
SECTION("decay") {
224
CHECK(is_same<decay_t<int>, int>::value);
225
CHECK(is_same<decay_t<int&>, int>::value);
0 commit comments