Home
last modified time | relevance | path

Searched refs:common_type (Results 1 – 25 of 36) sorted by relevance

12

/llvm-project-15.0.7/libcxx/test/std/concepts/concepts.lang/concept.common/
H A Dcommon_with.compile.pass.cpp294 struct common_type<T1, int> { struct
299 struct common_type<int, T1> { struct
319 struct common_type<T2, int> { struct
324 struct common_type<int, T2> { struct
344 struct common_type<T3, int> { struct
349 struct common_type<int, T3> { struct
366 struct common_type<T4, int> { struct
371 struct common_type<int, T4> { struct
719 struct common_type<int, CommonWithInt> : common_type<CommonWithInt, int> {}; struct
722 struct common_type<CommonWithInt&, int&> : common_type<CommonWithInt, int> {}; struct
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/
H A Dcommon_type.pass.cpp39 struct common_type<T, ::S<T> > struct
45 struct common_type< ::S<T>, T> { struct
51 struct common_type< ::S<T>, ::S<T> > { struct
55 template <> struct common_type< ::S<long>, long> {}; struct
56 template <> struct common_type<long, ::S<long> > {}; struct
88 -> always_bool<typename std::common_type<Args...>::type> in no_common_type_imp()
134 …static_assert((std::is_same<typename std::common_type<T, U>::type, typename std::common_type<DT, D… in test_bullet_three_one_imp()
165 …static_assert((std::is_same<std::common_type<T1, T1>::type, std::common_type<T1>::type>::value), "… in test_bullet_three_one()
171 …static_assert((std::is_same<std::common_type<T1, T1>::type, std::common_type<T1>::type>::value), "… in test_bullet_three_one()
214 …static_assert((std::is_same<std::common_type<T1, T1>::type, std::common_type<T1>::type>::value), "… in test_bullet_three_three()
[all …]
H A Dcommon_reference.compile.pass.cpp49 struct common_type<X2, Y2> { struct
53 struct common_type<Y2, X2> { struct
/llvm-project-15.0.7/libcxx/include/__type_traits/
H A Dcommon_type.h69 struct _LIBCPP_TEMPLATE_VIS common_type;
77 struct common_type {
86 typename __void_t<typename common_type<_Tp, _Up>::type>::type>
88 typedef typename common_type<_Tp, _Up>::type type;
94 typename __void_t<typename common_type<_Tp, _Up>::type>::type>
102 struct _LIBCPP_TEMPLATE_VIS common_type<> {};
107 struct _LIBCPP_TEMPLATE_VIS common_type<_Tp>
108 : public common_type<_Tp, _Tp> {};
114 struct _LIBCPP_TEMPLATE_VIS common_type<_Tp, _Up>
118 common_type<typename decay<_Tp>::type, typename decay<_Up>::type>
[all …]
H A Dcommon_reference.h171 template <class _Tp, class _Up> struct __common_reference_sub_bullet3 : common_type<_Tp, _Up> {};
/llvm-project-15.0.7/libcxx/include/__chrono/
H A Dduration.h279 …_VISIBILITY _LIBCPP_CONSTEXPR typename common_type<duration>::type operator+() const {return typen…
280 …_VISIBILITY _LIBCPP_CONSTEXPR typename common_type<duration>::type operator-() const {return typen…
449 duration<typename common_type<_Rep1, _Rep2>::type, _Period>
453 typedef typename common_type<_Rep1, _Rep2>::type _Cr;
464 duration<typename common_type<_Rep1, _Rep2>::type, _Period>
480 duration<typename common_type<_Rep1, _Rep2>::type, _Period>
484 typedef typename common_type<_Rep1, _Rep2>::type _Cr;
492 typename common_type<_Rep1, _Rep2>::type
508 duration<typename common_type<_Rep1, _Rep2>::type, _Period>
512 typedef typename common_type<_Rep1, _Rep2>::type _Cr;
[all …]
H A Dtime_point.h75 struct _LIBCPP_TEMPLATE_VIS common_type<chrono::time_point<_Clock, _Duration1>,
78 typedef chrono::time_point<_Clock, typename common_type<_Duration1, _Duration2>::type> type;
205 time_point<_Clock, typename common_type<_Duration1, duration<_Rep2, _Period2> >::type>
208 …typedef time_point<_Clock, typename common_type<_Duration1, duration<_Rep2, _Period2> >::type> _Tr;
216 time_point<_Clock, typename common_type<duration<_Rep1, _Period1>, _Duration2>::type>
226 time_point<_Clock, typename common_type<_Duration1, duration<_Rep2, _Period2> >::type>
229 …typedef time_point<_Clock, typename common_type<_Duration1, duration<_Rep2, _Period2> >::type> _Re…
237 typename common_type<_Duration1, _Duration2>::type
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dlibstdcxx_common_type_hack.cpp14 template<typename...Ts> struct common_type {}; struct
15 template<typename A, typename B> struct common_type<A, B> { struct
28 using T = std::common_type<int, int>::type; argument
/llvm-project-15.0.7/clang/www/
H A Dlibstdc++4.6-clang11.patch6 struct common_type<_Tp, _Up>
11 struct common_type<_Tp, _Up, _Vp...>
H A Dlibstdc++4.7-clang11.patch8 struct common_type<_Tp, _Up>
13 struct common_type<_Tp, _Up, _Vp...>
/llvm-project-15.0.7/libcxx/include/
H A Dchrono79 constexpr common_type<duration>::type operator+() const;
80 constexpr common_type<duration>::type operator-() const;
144 // common_type traits
156 typename common_type<duration<Rep1, Period1>, duration<Rep2, Period2>>::type
160 typename common_type<duration<Rep1, Period1>, duration<Rep2, Period2>>::type
164 duration<typename common_type<Rep1, Rep2>::type, Period>
168 duration<typename common_type<Rep1, Rep2>::type, Period>
172 duration<typename common_type<Rep1, Rep2>::type, Period>
176 typename common_type<Rep1, Rep2>::type
214 time_point<Clock, typename common_type<Duration1, duration<Rep2, Period2>>::type>
[all …]
H A Dstring_view767 typename common_type<basic_string_view<_CharT, _Traits> >::type __rhs) _NOEXCEPT
775 bool operator==(typename common_type<basic_string_view<_CharT, _Traits> >::type __lhs,
796 typename common_type<basic_string_view<_CharT, _Traits> >::type __rhs) _NOEXCEPT
805 bool operator!=(typename common_type<basic_string_view<_CharT, _Traits> >::type __lhs,
825 typename common_type<basic_string_view<_CharT, _Traits> >::type __rhs) _NOEXCEPT
832 bool operator<(typename common_type<basic_string_view<_CharT, _Traits> >::type __lhs,
850 typename common_type<basic_string_view<_CharT, _Traits> >::type __rhs) _NOEXCEPT
857 bool operator>(typename common_type<basic_string_view<_CharT, _Traits> >::type __lhs,
875 typename common_type<basic_string_view<_CharT, _Traits> >::type __rhs) _NOEXCEPT
882 bool operator<=(typename common_type<basic_string_view<_CharT, _Traits> >::type __lhs,
[all …]
H A Dtype_traits166 template <class... T> struct common_type;
232 using common_type_t = typename common_type<T...>::type; // C++14
433 #include <__type_traits/common_type.h>
H A Dutility102 struct common_type<pair<T1, T2>, pair<U1, U2>>; // since C++23
H A Dscoped_allocator364 : public common_type
/llvm-project-15.0.7/libcxx/docs/Status/
H A DZipProjects.csv2 | `[tuple.syn] <https://wg21.link/tuple.syn>`_, "`[tuple] basic_common_reference, common_type <http…
4 | `[utility.syn] <https://wg21.link/utility.syn>`_, "[pair] basic_common_reference, common_type", N…
H A DSpaceshipPapers.csv9 `LWG3380 <https://wg21.link/LWG3380>`_,common_type and comparison categories,|Nothing To Do|,
H A DCxx17Papers.csv79 "`P0435R1 <https://wg21.link/P0435R1>`__","LWG","Resolving LWG Issues re ``common_type``\ ","Issaqu…
103 "`P0548R1 <https://wg21.link/P0548R1>`__","LWG","common_type and duration","Kona","|Complete|","5.0"
/llvm-project-15.0.7/libcxx/test/std/time/time.traits/time.traits.specializations/
H A Dduration.pass.cpp27 typedef typename std::common_type<D1, D2>::type Dc; in test()
H A Dtime_point.pass.cpp31 typedef typename std::common_type<T1, T2>::type Tc; in test()
/llvm-project-15.0.7/libcxx/include/__algorithm/
H A Dsample.h84 using _CommonType = typename common_type<_Distance, _Difference>::type; in __sample()
/llvm-project-15.0.7/pstl/include/pstl/internal/
H A Dparallel_backend_tbb.h719 typedef typename std::common_type<_DifferenceType1, _DifferenceType2>::type _SizeType;
1096 typedef typename std::common_type<_DifferenceType1, _DifferenceType2>::type _SizeType;
1219 typedef typename std::common_type<_DifferenceType1, _DifferenceType2>::type _SizeType; in operator()
1260 typedef typename std::common_type<_DifferenceType1, _DifferenceType2>::type _SizeType; in __parallel_merge()
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DSTLExtras.h416 typename std::common_type<
643 ZipType, typename std::common_type<std::bidirectional_iterator_tag,
821 typename std::common_type<
/llvm-project-15.0.7/libcxx/include/__utility/
H A Dpair.h403 struct common_type<pair<_T1, _T2>, pair<_U1, _U2>> {
/llvm-project-15.0.7/libcxx/include/__memory/
H A Dunique_ptr.h572 typedef typename common_type<_P1, _P2>::type _Vp;

12