Searched refs:HasType (Results 1 – 2 of 2) sorted by relevance
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/ |
D | variant.h | 40 struct HasType : std::false_type {}; struct 42 struct HasType<T, U> : std::is_same<std::decay_t<T>, std::decay_t<U>> {}; 44 struct HasType<T, First, Rest...> 45 : std::integral_constant<bool, HasType<T, First>::value || 46 HasType<T, Rest...>::value> {}; 55 struct IsSubset<T> : HasType<T, Types...> {}; 79 typename std::enable_if<HasType<T, Types...>::value, R>::type; 83 typename std::enable_if<!HasType<T, Types...>::value, R>::type; 90 typename std::enable_if<!HasType<T, Types...>::value && 101 typename std::enable_if<HasType<T, Types...>::value || [all …]
|
/frameworks/native/libs/vr/libpdx/ |
D | variant_tests.cpp | 1072 TEST(Variant, HasType) { in TEST() argument 1073 EXPECT_TRUE((detail::HasType<int, int, float, bool>::value)); in TEST() 1074 EXPECT_FALSE((detail::HasType<char, int, float, bool>::value)); in TEST() 1075 EXPECT_FALSE(detail::HasType<>::value); in TEST() 1077 EXPECT_TRUE((detail::HasType<int&, int, float, bool>::value)); in TEST() 1078 EXPECT_FALSE((detail::HasType<char&, int, float, bool>::value)); in TEST()
|