/external/libcxx/test/std/utilities/meta/meta.rel/ |
D | is_convertible.pass.cpp | 19 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/ |
D | template_util_unittest.cc | 22 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/ |
D | template_util_unittest.cc | 47 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/ |
D | crash-12631281.cpp | 12 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/ |
D | ArrayRefTest.cpp | 20 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/ |
D | shared_ptr_Y.pass.cpp | 56 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()
|
D | shared_ptr_Y_rv.pass.cpp | 56 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/ |
D | shared_ptr_Y.pass.cpp | 56 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()
|
D | weak_ptr_Y.pass.cpp | 60 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/ |
D | type_traits_unittest.cc | 611 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/ |
D | SkUniquePtr.h | 20 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/ |
D | raw_scoped_refptr_mismatch_checker.h | 38 (is_convertible<T, subtle::RefCountedBase*>::value || 39 is_convertible<T, subtle::RefCountedThreadSafeBase*>::value))
|
D | scoped_ptr.h | 120 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/ |
D | raw_scoped_refptr_mismatch_checker.h | 38 (std::is_convertible<T, subtle::RefCountedBase*>::value || 39 std::is_convertible<T, subtle::RefCountedThreadSafeBase*>::value))
|
D | scoped_ptr.h | 120 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/ |
D | types.pass.cpp | 29 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/ |
D | types.pass.cpp | 30 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/ |
D | types.pass.cpp | 34 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/ |
D | basic_socket_acceptor.hpp | 229 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()
|
D | socket_acceptor_service.hpp | 89 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/ |
D | ErrorOr.h | 121 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/ |
D | types.pass.cpp | 38 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/ |
D | ErrorOrTest.cpp | 77 !std::is_convertible<const ErrorOr<int *> &, 84 !std::is_convertible<ErrorOr<int *> &&,
|
/external/libcxx/test/std/iterators/stream.iterators/istreambuf.iterator/ |
D | types.pass.cpp | 36 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/ |
D | meta.rel.pass.cpp | 54 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()
|