Home
last modified time | relevance | path

Searched refs:is_convertible (Results 1 – 25 of 62) sorted by relevance

123

/external/libcxx/test/std/utilities/meta/meta.rel/
Dis_convertible.pass.cpp19 static_assert((std::is_convertible<T, U>::value), ""); in test_is_convertible()
20 static_assert((std::is_convertible<const T, U>::value), ""); in test_is_convertible()
21 static_assert((std::is_convertible<T, const U>::value), ""); in test_is_convertible()
22 static_assert((std::is_convertible<const T, const U>::value), ""); in test_is_convertible()
28 static_assert((!std::is_convertible<T, U>::value), ""); in test_is_not_convertible()
29 static_assert((!std::is_convertible<const T, U>::value), ""); in test_is_not_convertible()
30 static_assert((!std::is_convertible<T, const U>::value), ""); in test_is_not_convertible()
31 static_assert((!std::is_convertible<const T, const U>::value), ""); in test_is_not_convertible()
96 static_assert((!std::is_convertible<Array, Array&>::value), ""); in main()
97 static_assert(( std::is_convertible<Array, const Array&>::value), ""); in main()
[all …]
/external/libweave/third_party/chromium/base/
Dtemplate_util_unittest.cc22 using std::is_convertible;
55 static_assert((is_convertible<Child, Parent>::value), "IsConvertible");
56 static_assert(!(is_convertible<Parent, Child>::value), "IsConvertible");
57 static_assert(!(is_convertible<Parent, AStruct>::value), "IsConvertible");
58 static_assert((is_convertible<int, double>::value), "IsConvertible");
59 static_assert((is_convertible<int*, void*>::value), "IsConvertible");
60 static_assert(!(is_convertible<void*, int*>::value), "IsConvertible");
64 static_assert(!(is_convertible<int[10], double>::value), "IsConvertible");
65 static_assert(!(is_convertible<double, int[10]>::value), "IsConvertible");
66 static_assert((is_convertible<int[10], int*>::value), "IsConvertible");
/external/libchrome/base/
Dtemplate_util_unittest.cc47 static_assert((is_convertible<Child, Parent>::value), "IsConvertible");
48 static_assert(!(is_convertible<Parent, Child>::value), "IsConvertible");
49 static_assert(!(is_convertible<Parent, AStruct>::value), "IsConvertible");
50 static_assert((is_convertible<int, double>::value), "IsConvertible");
51 static_assert((is_convertible<int*, void*>::value), "IsConvertible");
52 static_assert(!(is_convertible<void*, int*>::value), "IsConvertible");
56 static_assert(!(is_convertible<int[10], double>::value), "IsConvertible");
57 static_assert(!(is_convertible<double, int[10]>::value), "IsConvertible");
58 static_assert((is_convertible<int[10], int*>::value), "IsConvertible");
/external/clang/test/PCH/
Dcrash-12631281.cpp12 template < class _T2> struct is_convertible;
13 template <> struct is_convertible<int> { typedef int type; }; struct
18 template <class _U1, class _U2, class = typename is_convertible< first_type>::type>
/external/llvm/unittests/ADT/
DArrayRefTest.cpp20 std::is_convertible<ArrayRef<int *>, ArrayRef<const int *>>::value,
23 std::is_convertible<ArrayRef<int *>, ArrayRef<volatile int *>>::value,
25 static_assert(!std::is_convertible<ArrayRef<int *>, ArrayRef<float *>>::value,
28 !std::is_convertible<ArrayRef<const int *>, ArrayRef<int *>>::value,
31 !std::is_convertible<ArrayRef<volatile int *>, ArrayRef<int *>>::value,
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/
Dshared_ptr_Y.pass.cpp56 static_assert(( std::is_convertible<std::shared_ptr<A>, std::shared_ptr<B> >::value), ""); in main()
57 static_assert((!std::is_convertible<std::shared_ptr<B>, std::shared_ptr<A> >::value), ""); in main()
58 static_assert((!std::is_convertible<std::shared_ptr<A>, std::shared_ptr<C> >::value), ""); in main()
Dshared_ptr_Y_rv.pass.cpp56 static_assert(( std::is_convertible<std::shared_ptr<A>, std::shared_ptr<B> >::value), ""); in main()
57 static_assert((!std::is_convertible<std::shared_ptr<B>, std::shared_ptr<A> >::value), ""); in main()
58 static_assert((!std::is_convertible<std::shared_ptr<A>, std::shared_ptr<C> >::value), ""); in main()
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.const/
Dshared_ptr_Y.pass.cpp56 static_assert(( std::is_convertible<std::shared_ptr<A>, std::weak_ptr<B> >::value), ""); in main()
57 static_assert((!std::is_convertible<std::weak_ptr<B>, std::shared_ptr<A> >::value), ""); in main()
58 static_assert((!std::is_convertible<std::shared_ptr<A>, std::weak_ptr<C> >::value), ""); in main()
Dweak_ptr_Y.pass.cpp60 static_assert(( std::is_convertible<std::weak_ptr<A>, std::weak_ptr<B> >::value), ""); in main()
61 static_assert((!std::is_convertible<std::weak_ptr<B>, std::weak_ptr<A> >::value), ""); in main()
62 static_assert((!std::is_convertible<std::weak_ptr<A>, std::weak_ptr<C> >::value), ""); in main()
/external/protobuf/src/google/protobuf/stubs/
Dtype_traits_unittest.cc611 EXPECT_TRUE((is_convertible<int, int>::value)); in TEST()
612 EXPECT_TRUE((is_convertible<int, long>::value)); in TEST()
613 EXPECT_TRUE((is_convertible<long, int>::value)); in TEST()
615 EXPECT_TRUE((is_convertible<int*, void*>::value)); in TEST()
616 EXPECT_FALSE((is_convertible<void*, int*>::value)); in TEST()
618 EXPECT_TRUE((is_convertible<Derived*, Base*>::value)); in TEST()
619 EXPECT_FALSE((is_convertible<Base*, Derived*>::value)); in TEST()
620 EXPECT_TRUE((is_convertible<Derived*, const Base*>::value)); in TEST()
621 EXPECT_FALSE((is_convertible<const Derived*, Base*>::value)); in TEST()
/external/skia/include/private/
DSkUniquePtr.h20 template <typename U, typename = enable_if_t<is_convertible<U*, T*>::value>>
81 is_convertible<U1, pointer>::value && is_convertible<U2, deleter_type>::value
129 is_convertible<typename unique_ptr<U, ThatD>::pointer, pointer>::value &&
133 is_convertible<ThatD, D>>::value>>
153 is_convertible<typename unique_ptr<U, ThatD>::pointer, pointer>::value &&
257 is_convertible<U1, pointer>::value && is_convertible<U2, deleter_type>::value
/external/libchrome/base/memory/
Draw_scoped_refptr_mismatch_checker.h38 (is_convertible<T, subtle::RefCountedBase*>::value ||
39 is_convertible<T, subtle::RefCountedThreadSafeBase*>::value))
Dscoped_ptr.h120 value = !base::is_convertible<T*, base::subtle::RefCountedBase*>::value &&
121 !base::is_convertible<T*, base::subtle::RefCountedThreadSafeBase*>::
297 std::is_convertible<U*, T*>::value &&
298 std::is_convertible<E, D>::value>::type* =
328 std::is_convertible<U*, T*>::value &&
334 std::is_convertible<D, E>::value>::type* =
/external/libweave/third_party/chromium/base/memory/
Draw_scoped_refptr_mismatch_checker.h38 (std::is_convertible<T, subtle::RefCountedBase*>::value ||
39 std::is_convertible<T, subtle::RefCountedThreadSafeBase*>::value))
Dscoped_ptr.h120 value = !std::is_convertible<T*, base::subtle::RefCountedBase*>::value &&
121 !std::is_convertible<T*, base::subtle::RefCountedThreadSafeBase*>::
297 std::is_convertible<U*, T*>::value &&
298 std::is_convertible<E, D>::value>::type* =
328 std::is_convertible<U*, T*>::value &&
334 std::is_convertible<D, E>::value>::type* =
/external/libcxx/test/std/iterators/stream.iterators/ostream.iterator/
Dtypes.pass.cpp29 static_assert((std::is_convertible<I1, in main()
35 static_assert((std::is_convertible<I2, in main()
/external/libcxx/test/std/iterators/stream.iterators/ostreambuf.iterator/
Dtypes.pass.cpp30 static_assert((std::is_convertible<I1, in main()
38 static_assert((std::is_convertible<I2, in main()
/external/libcxx/test/std/iterators/stream.iterators/istream.iterator/
Dtypes.pass.cpp34 static_assert((std::is_convertible<I1, in main()
44 static_assert((std::is_convertible<I2, in main()
/external/parameter-framework/asio-1.10.6/include/asio/
Dbasic_socket_acceptor.hpp229 typename enable_if<is_convertible<Protocol1, Protocol>::value>::type* = 0) in basic_socket_acceptor()
248 typename enable_if<is_convertible<Protocol1, Protocol>::value,
921 typename enable_if<is_convertible<Protocol, Protocol1>::value>::type* = 0) in accept()
956 typename enable_if<is_convertible<Protocol, Protocol1>::value>::type* = 0) in accept()
1005 typename enable_if<is_convertible<Protocol, Protocol1>::value>::type* = 0) in ASIO_INITFN_RESULT_TYPE()
Dsocket_acceptor_service.hpp89 typename enable_if<is_convertible< in converting_move_construct()
226 typename enable_if<is_convertible<Protocol, Protocol1>::value>::type* = 0) in accept()
239 typename enable_if<is_convertible<Protocol, Protocol1>::value>::type* = 0) in ASIO_INITFN_RESULT_TYPE()
/external/llvm/include/llvm/Support/
DErrorOr.h121 typename std::enable_if<std::is_convertible<OtherT, T>::value>::type * =
130 !std::is_convertible<OtherT, const T &>::value>::type * = nullptr) {
141 typename std::enable_if<std::is_convertible<OtherT, T>::value>::type * =
151 typename std::enable_if<!std::is_convertible<OtherT, T>::value>::type * =
/external/libcxx/test/std/re/re.submatch/
Dtypes.pass.cpp38 static_assert((std::is_convertible<SM*, std::pair<char*, char*>*>::value), ""); in main()
51 static_assert((std::is_convertible<SM*, std::pair<wchar_t*, wchar_t*>*>::value), ""); in main()
/external/llvm/unittests/Support/
DErrorOrTest.cpp77 !std::is_convertible<const ErrorOr<int *> &,
84 !std::is_convertible<ErrorOr<int *> &&,
/external/libcxx/test/std/iterators/stream.iterators/istreambuf.iterator/
Dtypes.pass.cpp36 static_assert((std::is_convertible<I1, in main()
49 static_assert((std::is_convertible<I2, in main()
/external/libcxx/test/std/experimental/utilities/meta/meta.type.synop/
Dmeta.rel.pass.cpp54 static_assert(ex::is_convertible_v<T, U> == std::is_convertible<T, U>::value, ""); in main()
60 static_assert(ex::is_convertible_v<T, U> == std::is_convertible<T, U>::value, ""); in main()

123