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

12345

/external/libcxx/test/std/utilities/meta/meta.rel/
H A Dis_convertible.pass.cpp12 // is_convertible
20 static_assert((std::is_convertible<T, U>::value), "");
21 static_assert((std::is_convertible<const T, U>::value), "");
22 static_assert((std::is_convertible<T, const U>::value), "");
23 static_assert((std::is_convertible<const T, const U>::value), "");
35 static_assert((!std::is_convertible<T, U>::value), "");
36 static_assert((!std::is_convertible<const T, U>::value), "");
37 static_assert((!std::is_convertible<T, const U>::value), "");
38 static_assert((!std::is_convertible<const T, const U>::value), "");
86 static_assert(( std::is_convertible<Functio
[all...]
/external/libcxx/test/std/input.output/iostreams.base/ios/iostate.flags/
H A Dbool.pass.cpp28 static_assert((!std::is_convertible<std::ios, void*>::value), "");
29 static_assert((!std::is_convertible<std::ios, int>::value), "");
30 static_assert((!std::is_convertible<std::ios const&, int>::value), "");
32 static_assert((!std::is_convertible<std::ios, bool>::value), "");
/external/libcxx/test/std/thread/futures/futures.future_error/
H A Dtypes.pass.cpp21 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/libcxx/test/std/experimental/utilities/propagate_const/propagate_const.class/propagate_const.ctors/
H A Delement_type.explicit.ctor.pass.cpp25 static_assert(!std::is_convertible<P, int>::value, "");
H A Dconvertible_element_type.explicit.ctor.pass.cpp25 static_assert(!std::is_convertible<P, X>::value, "");
H A Dconvertible_propagate_const.explicit.move_ctor.pass.cpp26 static_assert(!std::is_convertible<PY, PX &&>::value, "");
/external/libcxx/test/std/experimental/utilities/propagate_const/propagate_const.class/propagate_const.non-const_observers/
H A Dexplicit_operator_element_type_ptr.pass.cpp24 int main() { static_assert(!std::is_convertible<P, int *>::value, ""); }
/external/libcxx/test/std/experimental/utilities/propagate_const/propagate_const.class/propagate_const.observers/
H A Dexplicit_operator_element_type_ptr.pass.cpp25 static_assert(!std::is_convertible<const P, const int *>::value, "");
/external/libcxx/test/std/utilities/optional/optional.bad_optional_access/
H A Dderive.pass.cpp24 static_assert(std::is_convertible<bad_optional_access*, std::exception*>::value, "");
/external/parameter-framework/asio/include/asio/detail/
H A Dtype_traits.hpp24 using std::is_convertible;
/external/parameter-framework/asio-1.10.6/include/asio/detail/
H A Dtype_traits.hpp24 using std::is_convertible;
/external/libcxx/test/std/experimental/filesystem/class.directory_entry/directory_entry.obs/
H A Dpath.pass.cpp55 static_assert(std::is_convertible<directory_entry&, path const&>::value, "");
56 static_assert(std::is_convertible<directory_entry const&, path const&>::value, "");
57 static_assert(std::is_convertible<directory_entry &&, path const&>::value, "");
58 static_assert(std::is_convertible<directory_entry const&&, path const&>::value, "");
60 static_assert(!std::is_convertible<directory_entry&, path&>::value, "");
61 static_assert(!std::is_convertible<directory_entry const&, path&>::value, "");
62 static_assert(!std::is_convertible<directory_entry &&, path&>::value, "");
63 static_assert(!std::is_convertible<directory_entry const&&, path&>::value, "");
/external/libcxx/test/std/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.ctor/
H A Dmemory_resource_convert.pass.cpp31 std::is_convertible<decltype(nullptr), A>::value
35 std::is_convertible<ex::memory_resource *, A>::value
H A Dother_alloc.pass.cpp32 std::is_convertible<A1 const &, A2>::value, ""
35 std::is_convertible<A2 const &, A1>::value, ""
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.observe/
H A Dbool.pass.cpp27 static_assert(!std::is_convertible<optional<int>, bool>::value, "");
/external/eigen/test/
H A Dmeta.cpp15 return internal::is_convertible<From,To>::value;
61 VERIFY(( internal::is_convertible<float,double>::value ));
62 VERIFY(( internal::is_convertible<int,double>::value ));
63 VERIFY(( internal::is_convertible<double,int>::value ));
64 VERIFY((!internal::is_convertible<std::complex<double>,double>::value ));
65 VERIFY(( internal::is_convertible<Array33f,Matrix3f>::value ));
66 // VERIFY((!internal::is_convertible<Matrix3f,Matrix3d>::value )); //does not work because the conversion is prevented by a static assertion
67 VERIFY((!internal::is_convertible<Array33f,int>::value ));
68 VERIFY((!internal::is_convertible<MatrixXf,float>::value ));
/external/libchrome/base/memory/
H A 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/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.observers/
H A Dexplicit_bool.pass.cpp45 static_assert(!std::is_convertible<U, bool>::value, "");
46 static_assert(!std::is_convertible<U const&, bool>::value, "");
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
H A DPR31384.pass.cpp64 static_assert(!std::is_convertible<
74 static_assert(std::is_convertible<
78 static_assert(!std::is_convertible<
/external/libcxx/test/std/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), "");
/external/libcxx/test/libcxx/utilities/memory/util.dynamic.safety/
H A Dget_pointer_safety_new_abi.pass.cpp26 static_assert(!std::is_convertible<std::pointer_safety, int>::value, "");
/external/libcxx/test/std/experimental/filesystem/class.path/path.member/path.native.obs/
H A Doperator_string.pass.cpp35 static_assert(std::is_convertible<path, string_type>::value, "");
/external/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/
H A Dctor_codecvt.pass.cpp36 static_assert(!std::is_convertible<Codecvt*, Myconv>::value, "");
/external/libcxx/test/std/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), "");

Completed in 1193 milliseconds

12345