/external/libcxx/test/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 …]
|
D | Android.mk | 23 test_name := utilities/meta/meta.rel/is_convertible 24 test_src := is_convertible.pass.cpp
|
/external/chromium_org/base/ |
D | template_util_unittest.cc | 47 COMPILE_ASSERT( (is_convertible<Child, Parent>::value), IsConvertible); 48 COMPILE_ASSERT(!(is_convertible<Parent, Child>::value), IsConvertible); 49 COMPILE_ASSERT(!(is_convertible<Parent, AStruct>::value), IsConvertible); 50 COMPILE_ASSERT( (is_convertible<int, double>::value), IsConvertible); 51 COMPILE_ASSERT( (is_convertible<int*, void*>::value), IsConvertible); 52 COMPILE_ASSERT(!(is_convertible<void*, int*>::value), IsConvertible); 56 COMPILE_ASSERT(!(is_convertible<int[10], double>::value), IsConvertible); 57 COMPILE_ASSERT(!(is_convertible<double, int[10]>::value), IsConvertible); 58 COMPILE_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/libcxx/test/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/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 | 63 static_assert(( std::is_convertible<std::weak_ptr<A>, std::weak_ptr<B> >::value), ""); in main() 64 static_assert((!std::is_convertible<std::weak_ptr<B>, std::weak_ptr<A> >::value), ""); in main() 65 static_assert((!std::is_convertible<std::weak_ptr<A>, std::weak_ptr<C> >::value), ""); in main()
|
/external/libcxx/test/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/chromium_org/third_party/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()
|
D | type_traits.h | 91 template <class From, class To> struct is_convertible; 158 : is_convertible<typename add_reference<T>::type, int> { }; 324 struct is_convertible
|
/external/libcxx/test/iterators/stream.iterators/istream.iterator/ |
D | types.pass.cpp | 29 static_assert((std::is_convertible<I1, in main() 36 static_assert((std::is_convertible<I2, in main()
|
/external/libcxx/test/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/iterators/stream.iterators/istreambuf.iterator/ |
D | types.pass.cpp | 33 static_assert((std::is_convertible<I1, in main() 43 static_assert((std::is_convertible<I2, in main()
|
/external/stlport/test/unit/ |
D | reference_wrapper_test.cpp | 31 CPPUNIT_CHECK( (::boost::is_convertible<rr_type, int&>::value) ); in ref() 62 CPPUNIT_CHECK( (::boost::is_convertible<crr_type, const int&>::value) ); in cref()
|
D | type_traits_test.cpp | 139 int is_convertible(_Src, _Dst) { in is_convertible() function 266 CPPUNIT_CHECK( is_convertible(any, b) == 0 ); in manips() 267 CPPUNIT_CHECK( is_convertible(d, b) == 1 ); in manips() 268 CPPUNIT_CHECK( is_convertible(cd, b) == 1 ); in manips()
|
/external/libcxx/test/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/libcxx/test/thread/futures/futures.future_error/ |
D | types.pass.cpp | 19 static_assert((std::is_convertible<std::future_error*, in main()
|
/external/libcxx/test/utilities/optional/optional.bad_optional_access/ |
D | derive.pass.cpp | 23 static_assert(std::is_convertible<bad_optional_access*, std::logic_error*>::value, ""); in main()
|
/external/chromium_org/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 | 132 COMPILE_ASSERT((base::is_convertible<U*, T*>::value), in DefaultDeleter() 181 value = !base::is_convertible<T*, base::subtle::RefCountedBase*>::value && 182 !base::is_convertible<T*, base::subtle::RefCountedThreadSafeBase*>::
|
/external/libcxx/test/localization/locales/locale.convenience/conversions/conversions.string/ |
D | ctor_codecvt.pass.cpp | 34 static_assert(!std::is_convertible<Codecvt*, Myconv>::value, ""); in main()
|
D | ctor_err_string.pass.cpp | 26 static_assert(!std::is_convertible<std::string, Myconv>::value, ""); in main()
|
/external/libcxx/include/ |
D | memory | 2398 : is_convertible<_Ptr1, _Ptr2> {}; 2425 typename enable_if<is_convertible<_Up*, _Tp*>::value>::type* = 0) _NOEXCEPT {} 2522 is_convertible<typename unique_ptr<_Up, _Ep>::pointer, pointer>::value && 2523 is_convertible<_Ep, deleter_type>::value && 2535 is_convertible<_Up*, _Tp*>::value && 2555 is_convertible<typename unique_ptr<_Up, _Ep>::pointer, pointer>::value && 2589 is_convertible<_Up*, _Tp*>::value && 2732 && is_convertible<_Ep, deleter_type>::value && 2864 is_convertible<_Up, pointer>::value, 3766 … typename enable_if<is_convertible<_Yp*, element_type*>::value, __nat>::type = __nat()); [all …]
|
/external/libcxx/test/localization/locales/locale.convenience/conversions/conversions.buffer/ |
D | ctor.pass.cpp | 41 static_assert(!std::is_convertible<std::streambuf*, B>::value, ""); in main()
|