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

/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/base/
H A Dtemplate_util_unittest.cc44 // EXPECT_TRUE( (is_convertible < Child), (Parent > ::value));
47 EXPECT_TRUE( (is_convertible<Child, Parent>::value) );
48 EXPECT_FALSE( (is_convertible<Parent, Child>::value) );
49 EXPECT_FALSE( (is_convertible<Parent, AStruct>::value) );
51 EXPECT_TRUE( (is_convertible<int, double>::value) );
52 EXPECT_TRUE( (is_convertible<int*, void*>::value) );
53 EXPECT_FALSE( (is_convertible<void*, int*>::value) );
H A Dtemplate_util.h50 // This class is an implementation detail for is_convertible, and you
51 // don't need to know how it works to use is_convertible. For those
87 struct is_convertible struct in namespace:base
/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.h91 // This class is an implementation detail for is_convertible, and you
92 // don't need to know how it works to use is_convertible. For those
128 struct is_convertible struct in namespace:base
/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) );
H A Dtype_traits_test.cpp139 int is_convertible(_Src, _Dst) { function
266 CPPUNIT_CHECK( is_convertible(any, b) == 0 );
267 CPPUNIT_CHECK( is_convertible(d, b) == 1 );
268 CPPUNIT_CHECK( is_convertible(cd, b) == 1 );
274 //CPPUNIT_CHECK( is_convertible(pd, pb) == 1 );
275 //CPPUNIT_CHECK( is_convertible(pcd, pb) == 1 );
/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));
H A Dtype_traits.h55 // is_convertible
74 // is_enum uses is_convertible, which is not available on MSVC.
91 template <class From, class To> struct is_convertible;
155 // is_convertible chokes if the first argument is an array. That's why
158 : is_convertible<typename add_reference<T>::type, int> { };
305 // This class is an implementation detail for is_convertible, and you
306 // don't need to know how it works to use is_convertible. For those
324 struct is_convertible struct in namespace:google::protobuf::internal
/external/chromium/base/memory/
H A Draw_scoped_refptr_mismatch_checker.h39 (is_convertible<T, subtle::RefCountedBase*>::value ||
40 is_convertible<T, subtle::RefCountedThreadSafeBase*>::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))
H A Dscoped_ptr.h123 // using a COMPILE_ASSERT() based on is_convertible<> and requiring
127 // Note, the is_convertible<U*, T*> check also ensures that U is not an
132 COMPILE_ASSERT((base::is_convertible<U*, T*>::value),
181 value = !base::is_convertible<T*, base::subtle::RefCountedBase*>::value &&
182 !base::is_convertible<T*, base::subtle::RefCountedThreadSafeBase*>::
H A Dweak_ptr.h156 is_convertible<Derived, internal::SupportsWeakPtrBase&> convertible;
/external/chromium_org/gin/
H A Dwrappable.h87 base::is_convertible<T*, Wrappable<T>*>::value>::type> {
/external/chromium_org/third_party/libaddressinput/chromium/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
H A Dscoped_ptr.h38 // using a COMPILE_ASSERT() based on is_convertible<> and requiring
42 // Note, the is_convertible<U*, T*> check also ensures that U is not an
47 COMPILE_ASSERT((is_convertible<U*, T*>::value),
/external/chromium_org/third_party/libjingle/source/talk/base/
H A Dtemplate_util.h53 // This class is an implementation detail for is_convertible, and you
54 // don't need to know how it works to use is_convertible. For those
90 struct is_convertible struct in namespace:talk_base
H A Dscoped_ptr.h99 #include "talk/base/template_util.h" // for is_convertible, is_array
119 // using a COMPILE_ASSERT() based on is_convertible<> and requiring
123 // Note, the is_convertible<U*, T*> check also ensures that U is not an
128 COMPILE_ASSERT((talk_base::is_convertible<U*, T*>::value),
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/base/
H A Dtemplate_util.h54 // This class is an implementation detail for is_convertible, and you
55 // don't need to know how it works to use is_convertible. For those
91 struct is_convertible struct in namespace:i18n::phonenumbers
/external/chromium_org/extensions/common/permissions/
H A Dbase_set_operators.h72 COMPILE_ASSERT((base::is_convertible<T*, BaseSetOperators<T>*>::value),
/external/chromium_org/third_party/cld/base/
H A Dtype_traits.h25 // is_convertible
169 // This class is an implementation detail for is_convertible, and you
170 // don't need to know how it works to use is_convertible. For those
188 struct is_convertible struct in namespace:base
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/base/memory/
H A Dscoped_ptr.h42 // using a COMPILE_ASSERT() based on is_convertible<> and requiring
46 // Note, the is_convertible<U*, T*> check also ensures that U is not an
51 COMPILE_ASSERT((is_convertible<U*, T*>::value),
/external/clang/test/SemaCXX/
H A Dtype-traits.cpp1666 void is_convertible() function

Completed in 596 milliseconds