Home
last modified time | relevance | path

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

12345678

/external/libcxx/test/std/utilities/meta/meta.rel/
Dis_convertible.pass.cpp20 static_assert((std::is_convertible<T, U>::value), ""); in test_is_convertible()
21 static_assert((std::is_convertible<const T, U>::value), ""); in test_is_convertible()
22 static_assert((std::is_convertible<T, const U>::value), ""); in test_is_convertible()
23 static_assert((std::is_convertible<const T, const U>::value), ""); in test_is_convertible()
35 static_assert((!std::is_convertible<T, U>::value), ""); in test_is_not_convertible()
36 static_assert((!std::is_convertible<const T, U>::value), ""); in test_is_not_convertible()
37 static_assert((!std::is_convertible<T, const U>::value), ""); in test_is_not_convertible()
38 static_assert((!std::is_convertible<const T, const U>::value), ""); in test_is_not_convertible()
86 static_assert(( std::is_convertible<Function, Function&&>::value), ""); in main()
120 static_assert((!std::is_convertible<ConstFunction, Function>::value), ""); in main()
[all …]
/external/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/
Dpath.pass.cpp54 static_assert(std::is_convertible<directory_entry&, path const&>::value, ""); in test_path_conversion()
55 static_assert(std::is_convertible<directory_entry const&, path const&>::value, ""); in test_path_conversion()
56 static_assert(std::is_convertible<directory_entry &&, path const&>::value, ""); in test_path_conversion()
57 static_assert(std::is_convertible<directory_entry const&&, path const&>::value, ""); in test_path_conversion()
59 static_assert(!std::is_convertible<directory_entry&, path&>::value, ""); in test_path_conversion()
60 static_assert(!std::is_convertible<directory_entry const&, path&>::value, ""); in test_path_conversion()
61 static_assert(!std::is_convertible<directory_entry &&, path&>::value, ""); in test_path_conversion()
62 static_assert(!std::is_convertible<directory_entry const&&, path&>::value, ""); in test_path_conversion()
/external/Reactive-Extensions/RxCpp/Rx/v2/src/rxcpp/
Drx-predef.hpp27 : public std::is_convertible<typename T::action_tag*, tag_action*> {};
40 …static const bool value = std::is_convertible<decltype(check<rxu::decay_t<T>>(0)), tag_worker*>::v…
53 …static const bool value = std::is_convertible<decltype(check<rxu::decay_t<T>>(0)), tag_scheduler*>…
66 …static const bool value = std::is_convertible<decltype(check<rxu::decay_t<T>>(0)), tag_schedulable…
97 …static const bool value = std::is_convertible<decltype(check<rxu::decay_t<T>>(0)), tag_observer*>:…
110 …static const bool value = std::is_convertible<decltype(check<rxu::decay_t<T>>(0)), tag_dynamic_obs…
123 …static const bool value = std::is_convertible<decltype(check<rxu::decay_t<T>>(0)), tag_subscriber*…
136 …static const bool value = std::is_convertible<decltype(check<rxu::decay_t<T>>(0)), tag_dynamic_obs…
170 : std::is_convertible<typename T::observable_tag*, tag_observable*>
209 …static const bool value = std::is_convertible<decltype(check<rxu::decay_t<T>>(0)), tag_dynamic_con…
[all …]
/external/eigen/test/
Dmeta.cpp15 return internal::is_convertible<From,To>::value; in check_is_convertible()
61 VERIFY(( internal::is_convertible<float,double>::value )); in test_meta()
62 VERIFY(( internal::is_convertible<int,double>::value )); in test_meta()
63 VERIFY(( internal::is_convertible<double,int>::value )); in test_meta()
64 VERIFY((!internal::is_convertible<std::complex<double>,double>::value )); in test_meta()
65 VERIFY(( internal::is_convertible<Array33f,Matrix3f>::value )); in test_meta()
67 VERIFY((!internal::is_convertible<Array33f,int>::value )); in test_meta()
68 VERIFY((!internal::is_convertible<MatrixXf,float>::value )); in test_meta()
/external/Reactive-Extensions/RxCpp/Ix/CPP/src/cpplinq/
Dlinq_iterators.hpp20 std::is_convertible<Iter, use_default_iterator_operators>::value,
28 std::is_convertible<Iter, use_default_iterator_operators>::value,
36 std::is_convertible<Iter, use_default_iterator_operators>::value,
45 std::is_convertible<Iter, use_default_iterator_operators>::value,
53 std::is_convertible<Iter, use_default_iterator_operators>::value,
61 std::is_convertible<Iter, use_default_iterator_operators>::value,
69 std::is_convertible<Iter, use_default_iterator_operators>::value,
/external/libcxx/test/std/input.output/iostreams.base/ios/iostate.flags/
Dbool.pass.cpp28 static_assert((!std::is_convertible<std::ios, void*>::value), ""); in main()
29 static_assert((!std::is_convertible<std::ios, int>::value), ""); in main()
30 static_assert((!std::is_convertible<std::ios const&, int>::value), ""); in main()
32 static_assert((!std::is_convertible<std::ios, bool>::value), ""); in main()
/external/libcxx/test/support/
Dtest_comparisons.h114 …static_assert((std::is_convertible<decltype(std::declval<const T&>() == std::declval<const T&>()),… in AssertComparisons6ConvertibleToBool()
115 …static_assert((std::is_convertible<decltype(std::declval<const T&>() != std::declval<const T&>()),… in AssertComparisons6ConvertibleToBool()
116 …static_assert((std::is_convertible<decltype(std::declval<const T&>() < std::declval<const T&>()),… in AssertComparisons6ConvertibleToBool()
117 …static_assert((std::is_convertible<decltype(std::declval<const T&>() <= std::declval<const T&>()),… in AssertComparisons6ConvertibleToBool()
118 …static_assert((std::is_convertible<decltype(std::declval<const T&>() > std::declval<const T&>()),… in AssertComparisons6ConvertibleToBool()
119 …static_assert((std::is_convertible<decltype(std::declval<const T&>() >= std::declval<const T&>()),… in AssertComparisons6ConvertibleToBool()
171 …static_assert((std::is_convertible<decltype(std::declval<const T&>() == std::declval<const T&>()),… in AssertComparisons2ConvertibleToBool()
172 …static_assert((std::is_convertible<decltype(std::declval<const T&>() != std::declval<const T&>()),… in AssertComparisons2ConvertibleToBool()
/external/tensorflow/tensorflow/stream_executor/lib/
Dstatusor.h115 std::is_convertible<U, T>::value>::type* = nullptr>
118 std::is_convertible<U, T>::value>::type* = nullptr>
123 std::is_convertible<U, T>::value>::type* = nullptr>
126 std::is_convertible<U, T>::value>::type* = nullptr>
237 typename std::enable_if<std::is_convertible<U, T>::value>::type*>
243 typename std::enable_if<std::is_convertible<U, T>::value>::type*>
254 typename std::enable_if<std::is_convertible<U, T>::value>::type*>
260 typename std::enable_if<std::is_convertible<U, T>::value>::type*>
/external/clang/test/PCH/
Dcrash-12631281.cpp12 template < class _T2> struct is_convertible;
13 template <> struct is_convertible<int> { typedef int type; }; argument
18 template <class _U1, class _U2, class = typename is_convertible< first_type>::type>
/external/llvm/unittests/ADT/
DArrayRefTest.cpp20 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/Microsoft-GSL/include/gsl/
Dstring_span31 #include <type_traits> // for declval, is_convertible, enable_if_t, add_...
231 std::is_convertible<typename Container::pointer, pointer>::value &&
232 std::is_convertible<typename Container::pointer,
240 std::is_convertible<typename Container::pointer, pointer>::value &&
241 std::is_convertible<typename Container::pointer,
249 class = std::enable_if_t<std::is_convertible<
464 std::is_convertible<T, gsl::basic_string_span<std::add_const_t<CharT>>>::value>>
474 std::is_convertible<T, gsl::basic_string_span<std::add_const_t<CharT>>>::value>>
483 typename = std::enable_if_t<std::is_convertible<
493 std::is_convertible<T, gsl::basic_string_span<std::add_const_t<CharT>, Extent>>::value &&
[all …]
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
DPR31384.pass.cpp64 static_assert(!std::is_convertible< in main()
74 static_assert(std::is_convertible< in main()
78 static_assert(!std::is_convertible< in main()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DErrorOr.h89 typename std::enable_if<std::is_convertible<OtherT, T>::value>::type
102 typename std::enable_if<std::is_convertible<OtherT, T>::value>::type * =
111 !std::is_convertible<OtherT, const T &>::value>::type * = nullptr) {
122 typename std::enable_if<std::is_convertible<OtherT, T>::value>::type * =
132 typename std::enable_if<!std::is_convertible<OtherT, T>::value>::type * =
/external/libcxx/test/std/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.cpp60 static_assert(( std::is_convertible<std::shared_ptr<A>, std::shared_ptr<B> >::value), ""); in main()
61 static_assert((!std::is_convertible<std::shared_ptr<B>, std::shared_ptr<A> >::value), ""); in main()
62 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/
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.cpp60 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/tensorflow/tensorflow/cc/framework/
Dops.h110 std::is_convertible<T, string>::value>::type>
123 std::is_convertible<T, string>::value>::type>
136 std::is_convertible<T, string>::value>::type>
149 std::is_convertible<T, string>::value>::type>
171 template <typename T, bool = std::is_convertible<T, string>::value>
208 std::is_convertible<T, string>::value>::type>
/external/protobuf/src/google/protobuf/stubs/
Dtype_traits_unittest.cc614 EXPECT_TRUE((is_convertible<int, int>::value)); in TEST()
615 EXPECT_TRUE((is_convertible<int, long>::value)); in TEST()
616 EXPECT_TRUE((is_convertible<long, int>::value)); in TEST()
618 EXPECT_TRUE((is_convertible<int*, void*>::value)); in TEST()
619 EXPECT_FALSE((is_convertible<void*, int*>::value)); in TEST()
621 EXPECT_TRUE((is_convertible<Derived*, Base*>::value)); in TEST()
622 EXPECT_FALSE((is_convertible<Base*, Derived*>::value)); in TEST()
623 EXPECT_TRUE((is_convertible<Derived*, const Base*>::value)); in TEST()
624 EXPECT_FALSE((is_convertible<const Derived*, Base*>::value)); in TEST()
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DErrorOr.h98 typename std::enable_if<std::is_convertible<OtherT, T>::value>::type
111 typename std::enable_if<std::is_convertible<OtherT, T>::value>::type * =
120 !std::is_convertible<OtherT, const T &>::value>::type * = nullptr) {
131 typename std::enable_if<std::is_convertible<OtherT, T>::value>::type * =
141 typename std::enable_if<!std::is_convertible<OtherT, T>::value>::type * =
/external/llvm/include/llvm/Support/
DErrorOr.h98 typename std::enable_if<std::is_convertible<OtherT, T>::value>::type
111 typename std::enable_if<std::is_convertible<OtherT, T>::value>::type * =
120 !std::is_convertible<OtherT, const T &>::value>::type * = nullptr) {
131 typename std::enable_if<std::is_convertible<OtherT, T>::value>::type * =
141 typename std::enable_if<!std::is_convertible<OtherT, T>::value>::type * =
/external/libcxx/test/std/language.support/cmp/cmp.strongord/
Dstrongord.pass.cpp56 static_assert(std::is_convertible<const std::strong_ordering&, in test_conversion()
72 static_assert(std::is_convertible<const std::strong_ordering&, in test_conversion()
94 static_assert(std::is_convertible<const std::strong_ordering&, in test_conversion()
112 static_assert(std::is_convertible<const std::strong_ordering&, in test_conversion()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/
DArrayRefTest.cpp21 std::is_convertible<ArrayRef<int *>, ArrayRef<const int *>>::value,
24 std::is_convertible<ArrayRef<int *>, ArrayRef<volatile int *>>::value,
26 static_assert(!std::is_convertible<ArrayRef<int *>, ArrayRef<float *>>::value,
29 !std::is_convertible<ArrayRef<const int *>, ArrayRef<int *>>::value,
32 !std::is_convertible<ArrayRef<volatile int *>, ArrayRef<int *>>::value,
/external/libcxx/test/std/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.ctor/
Dmemory_resource_convert.pass.cpp31 std::is_convertible<decltype(nullptr), A>::value in main()
35 std::is_convertible<ex::memory_resource *, A>::value in main()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/CodeGen/
DMachineInstrBundleIteratorTest.cpp185 static_assert(!std::is_convertible<iterator, reverse_iterator>::value, in TEST()
187 static_assert(!std::is_convertible<reverse_iterator, iterator>::value, in TEST()
190 !std::is_convertible<const_iterator, const_reverse_iterator>::value, in TEST()
193 !std::is_convertible<const_reverse_iterator, const_iterator>::value, in TEST()

12345678