Home
last modified time | relevance | path

Searched refs:IsConvertible (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
Dtype_operators.h53 struct IsConvertible : IsEquivalent<A, B> {};
59 struct IsConvertible<TT<A, AnyA...>, TT<B, AnyB...>>
60 : IsConvertible<Decay<A>, Decay<B>> {};
68 struct IsConvertible<TT<KeyA, ValueA, AnyA...>, TT<KeyB, ValueB, AnyB...>>
69 : And<IsConvertible<Decay<KeyA>, Decay<KeyB>>,
70 IsConvertible<Decay<ValueA>, Decay<ValueB>>> {};
74 struct IsConvertible<std::pair<A, B>, std::pair<C, D>>
75 : And<IsConvertible<Decay<A>, Decay<C>>,
76 IsConvertible<Decay<B>, Decay<D>>> {};
81 struct IsConvertible<std::pair<A, B>, std::tuple<C, D>>
[all …]
/frameworks/native/libs/vr/libpdx_uds/
Dremote_method_tests.cpp790 TEST(RemoteMethodFramework, IsConvertible) { in TEST() argument
793 (IsConvertible<std::pair<int, float>, std::pair<int, float>>::value)); in TEST()
795 (IsConvertible<std::pair<int, float>, std::pair<float, float>>::value)); in TEST()
797 (IsConvertible<std::pair<int, float>, std::pair<float, int>>::value)); in TEST()
800 EXPECT_TRUE((IsConvertible<std::pair<std::pair<int, float>, float>, in TEST()
802 EXPECT_FALSE((IsConvertible<std::pair<std::pair<int, float>, float>, in TEST()
807 (IsConvertible<std::pair<int, float>, std::tuple<int, float>>::value)); in TEST()
809 (IsConvertible<std::tuple<int, float>, std::pair<int, float>>::value)); in TEST()
811 (IsConvertible<std::pair<float, float>, std::tuple<int, float>>::value)); in TEST()
813 (IsConvertible<std::tuple<float, float>, std::pair<int, float>>::value)); in TEST()
[all …]