Searched refs:HasType (Results 1 – 2 of 2) sorted by relevance
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/ |
D | variant.h | 61 struct HasType : std::false_type {}; 63 struct HasType<T, U> : std::is_same<std::decay_t<T>, std::decay_t<U>> {}; 65 struct HasType<T, First, Rest...> 66 : std::integral_constant<bool, HasType<T, First>::value || 67 HasType<T, Rest...>::value> {}; 76 struct IsSubset<T> : HasType<T, Types...> {}; 99 typename std::enable_if<HasType<T, Types...>::value, R>::type; 103 typename std::enable_if<!HasType<T, Types...>::value, R>::type; 110 typename std::enable_if<!HasType<T, Types...>::value && 121 typename std::enable_if<HasType<T, Types...>::value || [all …]
|
/frameworks/native/libs/vr/libpdx/ |
D | variant_tests.cpp | 1100 TEST(Variant, HasType) { in TEST() argument 1101 EXPECT_TRUE((detail::HasType<int, int, float, bool>::value)); in TEST() 1102 EXPECT_FALSE((detail::HasType<char, int, float, bool>::value)); in TEST() 1103 EXPECT_FALSE(detail::HasType<>::value); in TEST() 1105 EXPECT_TRUE((detail::HasType<int&, int, float, bool>::value)); in TEST() 1106 EXPECT_FALSE((detail::HasType<char&, int, float, bool>::value)); in TEST()
|