Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/libcxx/include/__utility/
H A Dpair.h162 return is_convertible<_U1, first_type>::value && is_convertible<_U2, second_type>::value; in __is_implicit()
369 …__enable_if_t<is_convertible<_U1 const&, _T1>::value && is_convertible<_U2 const&, _T2>::value, in…
376 … !(is_convertible<_U1 const&, _T1>::value && is_convertible<_U2 const&, _T2>::value),
383 … __enable_if_t<is_convertible<_U1, _T1>::value && is_convertible<_U2, _T2>::value, int> = 0>
390 … !(is_convertible<_U1, _T1>::value && is_convertible<_U2, _T2>::value) > = 0>
414 …__enable_if_t<is_convertible<_Up const&, _T1>::value && is_convertible<_Up const&, _T2>::value, in…
419 … !(is_convertible<_Up const&, _T1>::value && is_convertible<_Up const&, _T2>::value),
424 …template <class _Up, __enable_if_t< is_convertible<_Up, _T1>::value && is_convertible<_Up, _T2>::v…
430 !(is_convertible<_Up, _T1>::value && is_convertible<_Up, _T2>::value),
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DMSVCErrorWorkarounds.h62 std::enable_if_t<std::is_convertible<OtherT, T>::value> * = nullptr)
68 std::enable_if_t<std::is_convertible<OtherT, T>::value> * = nullptr)
74 std::enable_if_t<!std::is_convertible<OtherT, T>::value> * = nullptr)
/freebsd/contrib/llvm-project/libcxx/include/__type_traits/
H A Dis_convertible.h30 struct _LIBCPP_TEMPLATE_VIS is_convertible : public integral_constant<bool, __is_convertible(_T1, _… struct
35 struct _LIBCPP_TEMPLATE_VIS is_convertible : public integral_constant<bool, __is_convertible_to(_T1…
100 struct _LIBCPP_TEMPLATE_VIS is_convertible : public __is_convertible<_T1, _T2> {
109 inline constexpr bool is_convertible_v = is_convertible<_From, _To>::value;
H A Dis_nothrow_convertible.h51 … _Lazy<_And, is_convertible<_Fm, _To>, __is_nothrow_convertible_helper<_Fm, _To> > >::type {};
/freebsd/contrib/llvm-project/libcxx/include/__memory/
H A Dunique_ptr.h74 template <class _Up, __enable_if_t<is_convertible<_Up*, _Tp*>::value, int> = 0>
88 struct _EnableIfConvertible : enable_if<is_convertible<_Up (*)[], _Tp (*)[]>::value> {};
180 … __enable_if_t< is_convertible<typename _UPtr::pointer, pointer>::value && !is_array<_Up>::value >;
185 (!is_reference<_Dp>::value && is_convertible<_UDel, _Dp>::value) >;
227 …__enable_if_t<is_convertible<_Up*, _Tp*>::value && is_same<_Dp, default_delete<_Tp> >::value, int>…
249 …__enable_if_t<is_convertible<_Up*, _Tp*>::value && is_same<_Dp, default_delete<_Tp> >::value, int>…
327 is_convertible<_FromElem (*)[], element_type (*)[]>::value) > {};
354 is_convertible<_ElemT (*)[], element_type (*)[]>::value >;
359 (!is_reference<_Dp>::value && is_convertible<_UDel, _Dp>::value) >;
H A Duses_allocator.h14 #include <__type_traits/is_convertible.h>
36 struct __uses_allocator : public integral_constant<bool, is_convertible<_Alloc, typename _Tp::allocator_type>::value> {
H A Dshared_ptr.h353 struct __compatible_with : _Or< is_convertible<_Yp*, _Tp*>, __bounded_convertible_to_unbounded<_Yp,…
356 struct __compatible_with : is_convertible<_Yp*, _Tp*> {};
366 struct __raw_pointer_compatible_with : _And< _Not<is_array<_Tp>>, is_convertible<_Yp*, _Tp*> > {};
369 struct __raw_pointer_compatible_with<_Yp, _Up[_Np], __enable_if_t< is_convertible<_Yp (*)[_Np], _Up…
373 struct __raw_pointer_compatible_with<_Yp, _Up[], __enable_if_t< is_convertible<_Yp (*)[], _Up (*)[]…
378 struct __raw_pointer_compatible_with : is_convertible<_Yp*, _Tp*> {};
613 template <class _Yp, __enable_if_t<is_convertible<_Yp*, element_type*>::value, int> = 0>
625is_convertible<typename unique_ptr<_Yp, _Dp>::pointer, element_type*>::value,
646is_convertible<typename unique_ptr<_Yp, _Dp>::pointer, element_type*>::value,
695 …__enable_if_t<!is_array<_Yp>::value && is_convertible<_Yp*, typename shared_ptr<_Tp>::element_type…
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__iterator/
H A Dreverse_iterator.h99 …template <class _Up, __enable_if_t<!is_same<_Up, _Iter>::value && is_convertible<_Up const&, _Iter…
104 __enable_if_t<!is_same<_Up, _Iter>::value && is_convertible<_Up const&, _Iter>::value &&
116 …template <class _Up, __enable_if_t<!is_same<_Up, _Iter>::value && is_convertible<_Up const&, _Iter…
121 __enable_if_t<!is_same<_Up, _Iter>::value && is_convertible<_Up const&, _Iter>::value &&
H A Diterator_traits.h388is_convertible<typename _Iter::iterator_category, input_iterator_tag>::value ||
389is_convertible<typename _Iter::iterator_category, output_iterator_tag>::value > {};
418 struct __has_iterator_category_convertible_to : is_convertible<typename iterator_traits<_Tp>::itera…
425 struct __has_iterator_concept_convertible_to : is_convertible<typename _Tp::iterator_concept, _Up> …
/freebsd/contrib/llvm-project/libcxx/include/__random/
H A Dis_seed_sequence.h13 #include <__type_traits/is_convertible.h>
26 !is_convertible<_Sseq, typename _Engine::result_type>::value && !is_same<__remove_cv_t<_Sseq>, _Engine>::value;
/freebsd/contrib/llvm-project/compiler-rt/lib/orc/
H A Derror.h210 std::enable_if_t<std::is_convertible<OtherT, T>::value> * = nullptr)
223 std::enable_if_t<std::is_convertible<OtherT, T>::value> * = nullptr) {
232 std::enable_if_t<!std::is_convertible<OtherT, T>::value> * = nullptr) {
/freebsd/contrib/llvm-project/libcxx/include/experimental/
H A Dpropagate_const117 #include <__type_traits/is_convertible.h>
207 … enable_if_t<!is_convertible<_Up, _Tp>::value && is_constructible<_Tp, _Up&&>::value, bool> = true>
212 …enable_if_t<is_convertible<_Up&&, _Tp>::value && is_constructible<_Tp, _Up&&>::value, bool> = fals…
217 enable_if_t<!is_convertible<_Up&&, _Tp>::value && is_constructible<_Tp, _Up&&>::value &&
223 enable_if_t<is_convertible<_Up&&, _Tp>::value && is_constructible<_Tp, _Up&&>::value &&
252 …template <class _Dummy = _Tp, class _Up = enable_if_t<is_convertible< const _Dummy, const element_…
261 …template <class _Dummy = _Tp, class _Up = enable_if_t< is_convertible<_Dummy, element_type*>::valu…
H A Dtype_traits60 using is_detected_convertible = is_convertible<detected_t<Op, Args...>, To>;
145 using is_detected_convertible = is_convertible<detected_t<_Op, _Args...>, _To>;
H A Dmemory58 #include <__type_traits/is_convertible.h>
82 template <class _W2, __enable_if_t<is_convertible<_W2*, _Wp*>::value, int> = 0>
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDataCollection.h54 std::is_convertible<Type, size_t>::value // for llvm::hash_code
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DIntrusiveRefCntPtr.h185 std::enable_if_t<std::is_convertible<X *, T *>::value, bool> = true>
191 std::enable_if_t<std::is_convertible<X *, T *>::value, bool> = true> in ~IntrusiveRefCntPtr()
H A DSTLFunctionalExtras.h61 std::is_convertible<decltype(std::declval<Callable>()(
H A DArrayRef.h127 std::enable_if_t<std::is_convertible<U *const *, T const *>::value>
137 std::enable_if_t<std::is_convertible<U *const *, T const *>::value> * =
145 std::enable_if_t<std::is_convertible<U *const *, T const *>::value>
/freebsd/contrib/googletest/googlemock/include/gmock/
H A Dgmock-actions.h937 std::is_convertible<R, U>, //
948 std::is_convertible<const R&, U>, //
1430 std::is_convertible<InnerAction,
1457 std::is_convertible<const InnerAction&,
1498 std::is_convertible<FinalAction, OnceAction<R(Args...)>>::value,
1507 std::is_convertible<const FinalAction&, Action<R(Args...)>>::value,
1588 std::is_convertible<
1591 std::is_convertible<Base, OnceAction<R(Args...)>>>::value,
1621 std::is_convertible<const InitialAction&,
1623 std::is_convertible<const Base&, Action<R(Args...)>>>::value,
/freebsd/contrib/llvm-project/libcxx/include/__chrono/
H A Dduration.h207 __enable_if_t<is_convertible<const _Rep2&, rep>::value &&
415 …__enable_if_t<is_convertible<const _Rep2&, typename common_type<_Rep1, _Rep2>::type>::value, int> …
426 …__enable_if_t<is_convertible<const _Rep1&, typename common_type<_Rep1, _Rep2>::type>::value, int> …
438is_convertible<const _Rep2&, typename common_type<_Rep1, _Rep2>::type>::value,
460is_convertible<const _Rep2&, typename common_type<_Rep1, _Rep2>::type>::value,
/freebsd/contrib/googletest/googletest/include/gtest/
H A Dgtest-assertion-result.h158 !std::is_convertible<T, AssertionResult>::value>::type*
/freebsd/contrib/llvm-project/lldb/include/lldb/Utility/
H A DTimeout.h33 std::is_convertible<std::chrono::duration<Rep2, Ratio2>,
/freebsd/contrib/llvm-project/libcxx/include/
H A Dtuple240 #include <__type_traits/is_convertible.h>
577 …_LIBCPP_CONSTEXPR_SINCE_CXX14 explicit(_Not<_Lazy<_And, is_convertible<const _Tp&, _Tp>...> >::val…
589 …_LIBCPP_CONSTEXPR_SINCE_CXX20 explicit(_Not<_Lazy<_And, is_convertible<const _Tp&, _Tp>...> >::val…
614 …_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 explicit(_Not<_Lazy<_And, is_convertible<_Up, …
626 …_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 explicit(_Not<_Lazy<_And, is_convertible<_Up, …
676 _Not<is_convertible<_OtherTuple, _Tp> >...,
681 …_LIBCPP_CONSTEXPR_SINCE_CXX14 explicit(_Not<_Lazy<_And, is_convertible<const _Up&, _Tp>...> >::val…
689 …_LIBCPP_CONSTEXPR_SINCE_CXX20 explicit(_Not<_Lazy<_And, is_convertible<const _Up&, _Tp>...> >::val…
697 …_LIBCPP_HIDE_FROM_ABI constexpr explicit(!_Lazy<_And, is_convertible<_Up&, _Tp>...>::value) tuple(…
701 _LIBCPP_HIDE_FROM_ABI constexpr explicit(!_Lazy<_And, is_convertible<_Up&, _Tp>...>::value)
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__exception/
H A Dnested_exception.h85 … (!is_base_of<_To, _From>::value || is_convertible<const _From*, const _To*>::value)> {};
/freebsd/contrib/googletest/googlemock/test/
H A Dgmock-actions_test.cc750 static_assert(std::is_convertible<const R&, U>::value, ""); in TEST()
751 static_assert(!std::is_convertible<R, U>::value, ""); in TEST()
774 static_assert(std::is_convertible<std::string&, S>::value, ""); in TEST()
776 static_assert(!std::is_convertible<std::string&&, S>::value, ""); in TEST()
778 static_assert(!std::is_convertible<const std::string&, S>::value, ""); in TEST()
787 static_assert(!std::is_convertible<RA, Action<S()>>::value, ""); in TEST()
789 static_assert(!std::is_convertible<RA, OnceAction<S()>>::value, ""); in TEST()
806 static_assert(!std::is_convertible<decltype(Return(std::unique_ptr<int>())), in TEST()

123