Home
last modified time | relevance | path

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

12345

/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/experimental/filesystem/class.directory_entry/directory_entry.obs/
Dpath.pass.cpp55 static_assert(std::is_convertible<directory_entry&, path const&>::value, ""); in test_path_conversion()
56 static_assert(std::is_convertible<directory_entry const&, path const&>::value, ""); in test_path_conversion()
57 static_assert(std::is_convertible<directory_entry &&, path const&>::value, ""); in test_path_conversion()
58 static_assert(std::is_convertible<directory_entry const&&, path const&>::value, ""); in test_path_conversion()
60 static_assert(!std::is_convertible<directory_entry&, path&>::value, ""); in test_path_conversion()
61 static_assert(!std::is_convertible<directory_entry const&, path&>::value, ""); in test_path_conversion()
62 static_assert(!std::is_convertible<directory_entry &&, path&>::value, ""); in test_path_conversion()
63 static_assert(!std::is_convertible<directory_entry const&&, path&>::value, ""); in test_path_conversion()
/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/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/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/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/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/Microsoft-GSL/gsl/
Dstring_span348 std::is_convertible<typename Container::pointer, pointer>::value &&
349 std::is_convertible<typename Container::pointer,
358 std::is_convertible<typename Container::pointer, pointer>::value &&
359 std::is_convertible<typename Container::pointer,
368 class = std::enable_if_t<std::is_convertible<
585 std::is_convertible<T, gsl::basic_string_span<std::add_const_t<CharT>>>::value>>
599 std::is_convertible<T, gsl::basic_string_span<std::add_const_t<CharT>>>::value>>
612 typename = std::enable_if_t<std::is_convertible<
622 std::is_convertible<T, gsl::basic_string_span<std::add_const_t<CharT>, Extent>>::value &&
631 typename = std::enable_if_t<std::is_convertible<
[all …]
/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/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/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()
Dother_alloc.pass.cpp32 std::is_convertible<A1 const &, A2>::value, "" in main()
35 std::is_convertible<A2 const &, A1>::value, "" in main()
/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/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/libchrome/base/memory/
Draw_scoped_refptr_mismatch_checker.h33 (std::is_convertible<T, subtle::RefCountedBase*>::value ||
34 std::is_convertible<T, subtle::RefCountedThreadSafeBase*>::value))
/external/libcxx/test/std/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/libcxx/test/std/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/std/iterators/stream.iterators/istream.iterator/
Dtypes.pass.cpp46 static_assert((std::is_convertible<I1, in main()
56 static_assert((std::is_convertible<I2, in main()
/external/parameter-framework/asio-1.10.6/include/asio/
Dbasic_socket_acceptor.hpp229 typename enable_if<is_convertible<Protocol1, Protocol>::value>::type* = 0) in basic_socket_acceptor()
248 typename enable_if<is_convertible<Protocol1, Protocol>::value,
921 typename enable_if<is_convertible<Protocol, Protocol1>::value>::type* = 0) in accept()
956 typename enable_if<is_convertible<Protocol, Protocol1>::value>::type* = 0) in accept()
1005 typename enable_if<is_convertible<Protocol, Protocol1>::value>::type* = 0) in ASIO_INITFN_RESULT_TYPE()
/external/libcxx/test/std/re/re.submatch/
Dtypes.pass.cpp39 static_assert((std::is_convertible<SM*, std::pair<char*, char*>*>::value), ""); in main()
52 static_assert((std::is_convertible<SM*, std::pair<wchar_t*, wchar_t*>*>::value), ""); in main()
/external/libcxx/test/std/experimental/utilities/meta/meta.type.synop/
Dmeta.rel.pass.cpp53 static_assert(ex::is_convertible_v<T, U> == std::is_convertible<T, U>::value, ""); in main()
59 static_assert(ex::is_convertible_v<T, U> == std::is_convertible<T, U>::value, ""); in main()
/external/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/
DT.pass.cpp91 static_assert(std::is_convertible<int &, V>::value, "must be implicit"); in test_T_ctor_basic()
99 static_assert(std::is_convertible<int, V>::value, "must be implicit"); in test_T_ctor_basic()

12345