Searched refs:is_convertible (Results 1 - 25 of 39) sorted by relevance

12

/external/libcxx/test/utilities/meta/meta.rel/
H A Dis_convertible.pass.cpp12 // is_convertible
19 static_assert((std::is_convertible<T, U>::value), "");
20 static_assert((std::is_convertible<const T, U>::value), "");
21 static_assert((std::is_convertible<T, const U>::value), "");
22 static_assert((std::is_convertible<const T, const U>::value), "");
28 static_assert((!std::is_convertible<T, U>::value), "");
29 static_assert((!std::is_convertible<const T, U>::value), "");
30 static_assert((!std::is_convertible<T, const U>::value), "");
31 static_assert((!std::is_convertible<const T, const U>::value), "");
96 static_assert((!std::is_convertible<Arra
[all...]
H A DAndroid.mk23 test_name := utilities/meta/meta.rel/is_convertible
24 test_src := is_convertible.pass.cpp
/external/libcxx/test/thread/futures/futures.future_error/
H A Dtypes.pass.cpp19 static_assert((std::is_convertible<std::future_error*,
/external/clang/test/PCH/
H A 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/chromium_org/base/
H A Dtemplate_util_unittest.cc39 // is_convertible<From, To>
44 // (is_convertible < Child), (Parent > ::value)
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<doubl
[all...]
H A Dtemplate_util.h69 // This class is an implementation detail for is_convertible, and you
70 // don't need to know how it works to use is_convertible. For those
106 struct is_convertible struct in namespace:base
/external/libcxx/test/utilities/optional/optional.bad_optional_access/
H A Dderive.pass.cpp23 static_assert(std::is_convertible<bad_optional_access*, std::logic_error*>::value, "");
/external/libcxx/test/iterators/stream.iterators/istream.iterator/
H A Dtypes.pass.cpp29 static_assert((std::is_convertible<I1,
36 static_assert((std::is_convertible<I2,
/external/libcxx/test/iterators/stream.iterators/ostream.iterator/
H A Dtypes.pass.cpp29 static_assert((std::is_convertible<I1,
35 static_assert((std::is_convertible<I2,
/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.const/
H A Dshared_ptr_Y.pass.cpp56 static_assert(( std::is_convertible<std::shared_ptr<A>, std::weak_ptr<B> >::value), "");
57 static_assert((!std::is_convertible<std::weak_ptr<B>, std::shared_ptr<A> >::value), "");
58 static_assert((!std::is_convertible<std::shared_ptr<A>, std::weak_ptr<C> >::value), "");
H A Dweak_ptr_Y.pass.cpp63 static_assert(( std::is_convertible<std::weak_ptr<A>, std::weak_ptr<B> >::value), "");
64 static_assert((!std::is_convertible<std::weak_ptr<B>, std::weak_ptr<A> >::value), "");
65 static_assert((!std::is_convertible<std::weak_ptr<A>, std::weak_ptr<C> >::value), "");
/external/libcxx/test/localization/locales/locale.convenience/conversions/conversions.string/
H A Dctor_codecvt.pass.cpp34 static_assert(!std::is_convertible<Codecvt*, Myconv>::value, "");
H A Dctor_err_string.pass.cpp26 static_assert(!std::is_convertible<std::string, Myconv>::value, "");
/external/libcxx/test/iterators/stream.iterators/istreambuf.iterator/
H A Dtypes.pass.cpp33 static_assert((std::is_convertible<I1,
43 static_assert((std::is_convertible<I2,
/external/libcxx/test/iterators/stream.iterators/ostreambuf.iterator/
H A Dtypes.pass.cpp30 static_assert((std::is_convertible<I1,
38 static_assert((std::is_convertible<I2,
/external/stlport/test/unit/
H A Dreference_wrapper_test.cpp31 CPPUNIT_CHECK( (::boost::is_convertible<rr_type, int&>::value) );
62 CPPUNIT_CHECK( (::boost::is_convertible<crr_type, const int&>::value) );
/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/
H A Dshared_ptr_Y.pass.cpp56 static_assert(( std::is_convertible<std::shared_ptr<A>, std::shared_ptr<B> >::value), "");
57 static_assert((!std::is_convertible<std::shared_ptr<B>, std::shared_ptr<A> >::value), "");
58 static_assert((!std::is_convertible<std::shared_ptr<A>, std::shared_ptr<C> >::value), "");
H A Dshared_ptr_Y_rv.pass.cpp56 static_assert(( std::is_convertible<std::shared_ptr<A>, std::shared_ptr<B> >::value), "");
57 static_assert((!std::is_convertible<std::shared_ptr<B>, std::shared_ptr<A> >::value), "");
58 static_assert((!std::is_convertible<std::shared_ptr<A>, std::shared_ptr<C> >::value), "");
/external/libcxx/test/re/re.submatch/
H A Dtypes.pass.cpp38 static_assert((std::is_convertible<SM*, std::pair<char*, char*>*>::value), "");
51 static_assert((std::is_convertible<SM*, std::pair<wchar_t*, wchar_t*>*>::value), "");
/external/libcxx/test/localization/locales/locale.convenience/conversions/conversions.buffer/
H A Dctor.pass.cpp41 static_assert(!std::is_convertible<std::streambuf*, B>::value, "");
/external/llvm/include/llvm/Support/
H A Dtype_traits.h62 std::is_convertible<UnderlyingT, unsigned long long>::value;
/external/chromium_org/third_party/protobuf/src/google/protobuf/stubs/
H A Dtype_traits_unittest.cc611 EXPECT_TRUE((is_convertible<int, int>::value));
612 EXPECT_TRUE((is_convertible<int, long>::value));
613 EXPECT_TRUE((is_convertible<long, int>::value));
615 EXPECT_TRUE((is_convertible<int*, void*>::value));
616 EXPECT_FALSE((is_convertible<void*, int*>::value));
618 EXPECT_TRUE((is_convertible<Derived*, Base*>::value));
619 EXPECT_FALSE((is_convertible<Base*, Derived*>::value));
620 EXPECT_TRUE((is_convertible<Derived*, const Base*>::value));
621 EXPECT_FALSE((is_convertible<const Derived*, Base*>::value));
/external/chromium_org/base/memory/
H A Draw_scoped_refptr_mismatch_checker.h38 (is_convertible<T, subtle::RefCountedBase*>::value ||
39 is_convertible<T, subtle::RefCountedThreadSafeBase*>::value))
/external/chromium_org/gin/
H A Dwrappable.h102 base::is_convertible<T*, WrappableBase*>::value>::type> {
/external/chromium_org/third_party/libaddressinput/src/cpp/include/libaddressinput/util/
H A Dtemplate_util.h57 // This class is an implementation detail for is_convertible, and you
58 // don't need to know how it works to use is_convertible. For those
94 struct is_convertible struct in namespace:i18n::addressinput

Completed in 1636 milliseconds

12