Home
last modified time | relevance | path

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

123

/external/libcxx/test/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 …]
DAndroid.mk23 test_name := utilities/meta/meta.rel/is_convertible
24 test_src := is_convertible.pass.cpp
/external/chromium_org/base/
Dtemplate_util_unittest.cc47 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/
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/libcxx/test/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/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.cpp63 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/
Dtypes.pass.cpp29 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/
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()
Dtype_traits.h91 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/
Dtypes.pass.cpp29 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/
Dtypes.pass.cpp30 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/
Dtypes.pass.cpp33 static_assert((std::is_convertible<I1, in main()
43 static_assert((std::is_convertible<I2, in main()
/external/stlport/test/unit/
Dreference_wrapper_test.cpp31 CPPUNIT_CHECK( (::boost::is_convertible<rr_type, int&>::value) ); in ref()
62 CPPUNIT_CHECK( (::boost::is_convertible<crr_type, const int&>::value) ); in cref()
Dtype_traits_test.cpp139 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/
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/libcxx/test/thread/futures/futures.future_error/
Dtypes.pass.cpp19 static_assert((std::is_convertible<std::future_error*, in main()
/external/libcxx/test/utilities/optional/optional.bad_optional_access/
Dderive.pass.cpp23 static_assert(std::is_convertible<bad_optional_access*, std::logic_error*>::value, ""); in main()
/external/chromium_org/base/memory/
Draw_scoped_refptr_mismatch_checker.h38 (is_convertible<T, subtle::RefCountedBase*>::value ||
39 is_convertible<T, subtle::RefCountedThreadSafeBase*>::value))
Dscoped_ptr.h132 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/
Dctor_codecvt.pass.cpp34 static_assert(!std::is_convertible<Codecvt*, Myconv>::value, ""); in main()
Dctor_err_string.pass.cpp26 static_assert(!std::is_convertible<std::string, Myconv>::value, ""); in main()
/external/libcxx/include/
Dmemory2398 : 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/
Dctor.pass.cpp41 static_assert(!std::is_convertible<std::streambuf*, B>::value, ""); in main()

123