20 void TypelistTest::testHasTypeTrue ()
22 static_assert (
HasType<struct Foo> (Typelist<struct Bar, struct Baz, struct Foo> {}),
"test failed");
25 void TypelistTest::testHasTypeFalse ()
27 static_assert (!
HasType<struct Foo> (Typelist<struct Bar, struct Baz, struct Qux> {}),
"test failed");
33 void TypelistTest::testFilter ()
39 static_assert (std::is_same<Removed_t, Filter_t<IsVoid_t, List_t>>::value,
"test failed");
40 static_assert (std::is_same<Expected_t, Filter_t<Not<IsVoid_t>::Result_t, List_t>>::value,
"test failed");
constexpr bool HasType(List< Args... >)
std::is_same< T, void > IsVoid_t