basedOpinionated utility library |
git clone git://git.dimitrijedobrota.com/based.git |
Log | Files | Refs | README | LICENSE | HACKING | CONTRIBUTING | CODE_OF_CONDUCT | BUILDING |
remove_pointer_test.cpp (774B)
0 #define CATCH_CONFIG_RUNTIME_STATIC_REQUIRE
2 #include "based/trait/remove_pointer.hpp"
4 #include <catch2/catch_test_macros.hpp>
6 #include "based/concept/is_same.hpp"
8 using based::trait::IsSame;
10 TEST_CASE("remove_pointer", "[trait/remove_pointer]")
11 {
12 // clang-format off
13 // NOLINTBEGIN(*array*)
14 STATIC_REQUIRE(IsSame<based::trait::RemovePointer<int>, int>);
15 STATIC_REQUIRE(IsSame<based::trait::RemovePointer<int*>, int>);
16 STATIC_REQUIRE(IsSame<based::trait::RemovePointer<int**>, int*>);
17 STATIC_REQUIRE(IsSame<based::trait::RemovePointer<int* const>, int>);
18 STATIC_REQUIRE(IsSame<based::trait::RemovePointer<int* volatile>, int>);
19 STATIC_REQUIRE(IsSame<based::trait::RemovePointer<int* const volatile>, int>);
20 // NOLINTEND(*array*)
21 // clang-format on
22 }