/third_party/boost/libs/type_traits/test/ |
D | common_type_test.cpp | 37 void proc2(typename boost::common_type<A, C>::type const& ) {} in proc2() 40 void proc3(typename boost::common_type<C, A, B>::type const& ) {} in proc3() 44 typedef typename boost::common_type<A, C>::type AC; in assignation_2() 58 typedef typename boost::common_type<C, A, B>::type ABC; in assignation_3() 86 TT_TEST_BEGIN(common_type) in TT_TEST_BEGIN() argument 89 typedef tt::common_type<C1C2&, C1&>::type T1; in TT_TEST_BEGIN() 91 typedef tt::common_type<C3*, C2*>::type T2; in TT_TEST_BEGIN() 93 typedef tt::common_type<int*, int const*>::type T3; in TT_TEST_BEGIN() 97 typedef tt::common_type<int volatile*, int const*>::type T4; in TT_TEST_BEGIN() 100 typedef tt::common_type<int*, int volatile*>::type T5; in TT_TEST_BEGIN() [all …]
|
D | common_type_2_test.cpp | 39 void proc2(typename boost::common_type<A, C>::type const& ) {} in proc2() 42 void proc3(typename boost::common_type<C, A, B>::type const& ) {} in proc3() 46 typedef typename boost::common_type<A, C>::type AC; in assignation_2() 60 typedef typename boost::common_type<C, A, B>::type ABC; in assignation_3() 88 TT_TEST_BEGIN(common_type) in TT_TEST_BEGIN() argument 92 typedef tt::common_type<C1C2&, C1&>::type T1; in TT_TEST_BEGIN() 94 typedef tt::common_type<C3*, C2*>::type T2; in TT_TEST_BEGIN() 96 typedef tt::common_type<int*, int const*>::type T3; in TT_TEST_BEGIN() 100 typedef tt::common_type<int volatile*, int const*>::type T4; in TT_TEST_BEGIN() 103 typedef tt::common_type<int*, int volatile*>::type T5; in TT_TEST_BEGIN() [all …]
|
D | common_type_4_test.cpp | 20 BOOST_CHECK_TYPE(tt::common_type<void>::type, void); in TT_TEST_BEGIN() 21 BOOST_CHECK_TYPE(tt::common_type<void const>::type, void); in TT_TEST_BEGIN() 22 BOOST_CHECK_TYPE(tt::common_type<void volatile>::type, void); in TT_TEST_BEGIN() 23 BOOST_CHECK_TYPE(tt::common_type<void const volatile>::type, void); in TT_TEST_BEGIN() 25 BOOST_CHECK_TYPE(tt::common_type<char>::type, char); in TT_TEST_BEGIN() 26 BOOST_CHECK_TYPE(tt::common_type<char const>::type, char); in TT_TEST_BEGIN() 27 BOOST_CHECK_TYPE(tt::common_type<char volatile>::type, char); in TT_TEST_BEGIN() 28 BOOST_CHECK_TYPE(tt::common_type<char const volatile>::type, char); in TT_TEST_BEGIN() 30 BOOST_CHECK_TYPE(tt::common_type<char&>::type, char); in TT_TEST_BEGIN() 31 BOOST_CHECK_TYPE(tt::common_type<char const&>::type, char); in TT_TEST_BEGIN() [all …]
|
D | common_type_6_test.cpp | 23 BOOST_CHECK_TYPE3(tt::common_type<void, void>::type, void); in TT_TEST_BEGIN() 25 BOOST_CHECK_TYPE3(tt::common_type<int, int>::type, int); in TT_TEST_BEGIN() 26 BOOST_CHECK_TYPE3(tt::common_type<int&, int&>::type, int); in TT_TEST_BEGIN() 27 BOOST_CHECK_TYPE3(tt::common_type<int&, int const&>::type, int); in TT_TEST_BEGIN() 29 BOOST_CHECK_TYPE3(tt::common_type<X, X>::type, X); in TT_TEST_BEGIN() 30 BOOST_CHECK_TYPE3(tt::common_type<X&, X&>::type, X); in TT_TEST_BEGIN() 31 BOOST_CHECK_TYPE3(tt::common_type<X&, X const&>::type, X); in TT_TEST_BEGIN() 33 BOOST_CHECK_TYPE3(tt::common_type<X, Y>::type, X); in TT_TEST_BEGIN() 34 BOOST_CHECK_TYPE3(tt::common_type<X&, Y&>::type, X); in TT_TEST_BEGIN() 35 BOOST_CHECK_TYPE3(tt::common_type<X const&, Y&>::type, X); in TT_TEST_BEGIN() [all …]
|
D | common_type_5_test.cpp | 27 template<class T, class U> struct common_type< X<T>, X<U> > struct 29 typedef X<typename common_type<T, U>::type> type; argument 38 BOOST_CHECK_TYPE3( tt::common_type< X<char>, X<char> >::type, X<char> ); in TT_TEST_BEGIN() 40 BOOST_CHECK_TYPE3( tt::common_type< X<char>&, X<char>& >::type, X<char> ); in TT_TEST_BEGIN() 41 BOOST_CHECK_TYPE3( tt::common_type< X<char>&, X<char> const& >::type, X<char> ); in TT_TEST_BEGIN() 42 BOOST_CHECK_TYPE3( tt::common_type< X<char> const&, X<char>& >::type, X<char> ); in TT_TEST_BEGIN() 43 BOOST_CHECK_TYPE3( tt::common_type< X<char> const&, X<char> const& >::type, X<char> ); in TT_TEST_BEGIN() 45 BOOST_CHECK_TYPE3( tt::common_type< X<char>, X<unsigned char> >::type, X<int> ); in TT_TEST_BEGIN() 47 BOOST_CHECK_TYPE3( tt::common_type< X<char>&, X<unsigned char>& >::type, X<int> ); in TT_TEST_BEGIN() 48 BOOST_CHECK_TYPE3( tt::common_type< X<char>&, X<unsigned char> const& >::type, X<int> ); in TT_TEST_BEGIN() [all …]
|
D | common_type_sfinae_test.cpp | 24 tt::common_type<int, void*> tmp; in TT_TEST_BEGIN() 29 tt::common_type<X, Y> tmp; in TT_TEST_BEGIN() 34 tt::common_type<X&, int const*> tmp; in TT_TEST_BEGIN() 39 tt::common_type<X, Y, int, void*> tmp; in TT_TEST_BEGIN()
|
D | common_type_sfinae2_test.cpp | 32 BOOST_CHECK_INTEGRAL_CONSTANT( (has_type< tt::common_type<int, void*> >::value), false ); in TT_TEST_BEGIN() 33 BOOST_CHECK_INTEGRAL_CONSTANT( (has_type< tt::common_type<X, Y> >::value), false ); in TT_TEST_BEGIN() 34 BOOST_CHECK_INTEGRAL_CONSTANT( (has_type< tt::common_type<X&, int const*> >::value), false ); in TT_TEST_BEGIN() 35 BOOST_CHECK_INTEGRAL_CONSTANT( (has_type< tt::common_type<X, Y, int, void*> >::value), false ); in TT_TEST_BEGIN()
|
/third_party/boost/libs/type_traits/doc/ |
D | common_type.qbk | 11 [section:common_type common_type] 14 __header ` #include <boost/type_traits/common_type.hpp>` or ` #include <boost/type_traits.hpp>` 17 template <class... T> struct common_type; 18 … template<class... T> using common_type_t = typename common_type<T...>::type; // C++11 and above 22 `common_type` is a traits class used to deduce a type common to a several types, useful as the retu… 28 struct common_type; 31 struct common_type<T, U, V...> { 32 typedef typename common_type<typename common_type<T, U>::type, V...>::type type; 36 struct common_type<> { 40 struct common_type<T> { [all …]
|
/third_party/boost/libs/ratio/example/type_traits/ |
D | common_type.hpp | 69 struct common_type; 72 struct common_type 75 typedef typename common_type<typename common_type<T, U>::type, V>::type type; 83 struct common_type<T> struct 85 struct common_type<T, void, void> 132 struct common_type<T, U> struct 135 struct common_type<T, U, void> 144 struct common_type<T, U, V...> { struct 146 typedef typename common_type<typename common_type<T, U>::type, V...>::type type; argument
|
/third_party/boost/boost/type_traits/ |
D | common_type.hpp | 36 template<class... T> struct common_type struct 42 template<class... T> using common_type_t = typename common_type<T...>::type; 52 struct common_type<T1, T2, T...>: type_traits_detail::mp_defer<type_traits_detail::common_type_fold… struct 59 struct common_type<T1, T2, T...>: common_type<typename common_type<T1, T2>::type, T...> struct 72 struct common_type: common_type<typename common_type<T1, T2>::type, T3, T4, T5, T6, T7, T8, T9> 80 template<class T> struct common_type<T>: boost::decay<T> struct 134 …2d = typename boost::decay<T2>::type> struct common_type_decay_helper: boost::common_type<T1d, T2d> 144 template<class T1, class T2> struct common_type<T1, T2>: type_traits_detail::common_type_decay_help… struct
|
/third_party/boost/libs/ratio/example/ |
D | duration.hpp | 102 typename boost::common_type<typename Duration::rep, Rep2>::type>::value) 104 typename boost::common_type<typename Duration::rep, Rep2>::type>::value) 114 typedef duration<typename boost::common_type<Rep1, Rep2>::type, Period> type; 132 typename boost::common_type<typename Duration::rep, Rep>::type>::value) 134 typename boost::common_type<typename Duration::rep, Rep>::type>::value) 166 typename boost::common_type<typename Duration::rep, Rep2>::type>::value 176 typedef duration<typename boost::common_type<Rep1, Rep2>::type, Period> type; 193 struct common_type<boost_ex::chrono::duration<Rep1, Period1>, 315 typedef typename boost::common_type< in operator ()() 334 typedef typename boost::common_type< in operator ()() [all …]
|
/third_party/boost/boost/chrono/ |
D | duration.hpp | 97 typename common_type<typename Duration::rep, Rep2>::type>::value)) 99 typename common_type<typename Duration::rep, Rep2>::type>::value)) 109 typedef duration<typename common_type<Rep1, Rep2>::type, Period> type; 127 typename common_type<typename Duration::rep, Rep>::type>::value)) 129 typename common_type<typename Duration::rep, Rep>::type>::value)) 161 typename common_type<typename Duration::rep, Rep2>::type>::value 171 typedef duration<typename common_type<Rep1, Rep2>::type, Period> type; 187 struct common_type<chrono::duration<Rep1, Period1>, 253 typedef typename common_type< in operator ()() 272 typedef typename common_type< in operator ()() [all …]
|
D | time_point.hpp | 60 struct common_type<chrono::time_point<Clock, Duration1>, 70 struct common_type<chrono::time_point<Clock, Duration1>, struct 74 typename common_type<Duration1, Duration2>::type> type; argument 85 typename common_type<Duration1, duration<Rep2, Period2> >::type> 92 typename common_type<duration<Rep1, Period1>, Duration2>::type> 99 typename common_type<Duration1, duration<Rep2, Period2> >::type> 105 typename common_type<Duration1, Duration2>::type 241 typename common_type<Duration1, duration<Rep2, Period2> >::type> 245 typedef typename common_type<Duration1, duration<Rep2, Period2> >::type CDuration; in operator +() 258 typename common_type<duration<Rep1, Period1>, Duration2>::type> [all …]
|
D | process_cpu_clocks.hpp | 211 struct common_type< struct 216 typedef chrono::process_times<typename common_type<Rep1, Rep2>::type> type; argument 220 struct common_type< struct 225 typedef chrono::process_times<typename common_type<Rep1, Rep2>::type> type; argument 229 struct common_type< struct 234 typedef chrono::process_times<typename common_type<Rep1, Rep2>::type> type; argument
|
/third_party/boost/libs/hana/example/ |
D | monadic_fold_left.cpp | 22 struct common_type { }; struct 25 struct common_type<T, U> struct 29 common_type<std::decay_t<T>, std::decay_t<U>> 34 struct common_type<T1, Tn...> struct 38 hana::sfinae(hana::metafunction<common_type>) 43 using common_type_t = typename common_type<Ts...>::type; 67 hana::sfinae(hana::metafunction<common_type>)(
|
/third_party/boost/libs/chrono/example/ |
D | min_time_point.cpp | 47 typename boost::common_type<time_point<Clock, Duration1>, 58 boost::common_type<system_clock::duration, seconds>::type> T1; in test_min() 60 boost::common_type<system_clock::duration, nanoseconds>::type> T2; in test_min() 61 typedef boost::common_type<T1, T2>::type T3; in test_min()
|
D | saturating.cpp | 382 typedef typename boost::common_type<T1, T2>::type rep; 398 struct common_type<User2::saturate<T1>, User2::saturate<T2> > struct 400 typedef typename common_type<T1, T2>::type rep; argument 405 struct common_type<T1, User2::saturate<T2> > struct 409 struct common_type<User2::saturate<T1>, T2> struct
|
D | simulated_thread_interface_demo.cpp | 76 typedef typename boost::common_type<typename Time::duration, in sleep_until() 115 typedef typename boost::common_type<typename Time::duration, in try_lock_until() 146 typedef typename boost::common_type<typename Time::duration, in wait_until()
|
/third_party/boost/libs/hana/example/optional/ |
D | sfinae_friendly_metafunctions.cpp | 33 using common_type = decltype(common_type_impl(hana::type_c<T>, hana::type_c<U>)); typedef 41 static_assert(!has_type<common_type<int, int*>>{}, ""); 42 static_assert(std::is_same<common_type<int, float>::type, float>{}, "");
|
/third_party/mesa3d/src/gallium/frontends/clover/util/ |
D | functional.hpp | 39 typename std::common_type<T, S>::type 47 typename std::common_type<T, S>::type 63 typename std::common_type<T, S>::type 71 typename std::common_type<T, S>::type 79 typename std::common_type<T, S>::type 138 typename std::common_type<T, S>::type
|
/third_party/boost/boost/histogram/accumulators/ |
D | weighted_sum.hpp | 102 struct common_type<boost::histogram::accumulators::weighted_sum<T>, struct 108 struct common_type<boost::histogram::accumulators::weighted_sum<T>, U> { struct 113 struct common_type<T, boost::histogram::accumulators::weighted_sum<U>> { struct
|
/third_party/boost/libs/compute/include/boost/compute/type_traits/ |
D | common_type.hpp | 23 struct common_type<BOOST_COMPUTE_MAKE_VECTOR_TYPE(scalar, size), \ 29 struct common_type<BOOST_COMPUTE_MAKE_SCALAR_TYPE(scalar), \
|
/third_party/boost/boost/compute/type_traits/ |
D | common_type.hpp | 23 struct common_type<BOOST_COMPUTE_MAKE_VECTOR_TYPE(scalar, size), \ 29 struct common_type<BOOST_COMPUTE_MAKE_SCALAR_TYPE(scalar), \
|
/third_party/boost/boost/thread/win32/ |
D | basic_timed_mutex.hpp | 222 …typedef typename common_type<Duration, typename chrono::steady_clock::duration>::type common_durat… in try_lock_for() 229 …typedef typename common_type<Duration, typename chrono::steady_clock::duration>::type common_durat… in try_lock_until() 236 … typedef typename common_type<Duration, typename Clock::duration>::type common_duration; in try_lock_until()
|
/third_party/boost/libs/mp11/doc/mp11/ |
D | examples.adoc | 21 template<class T> using promote = typename std::common_type<T, int>::type; 24 typename std::common_type<promote<T>, promote<U>>::type; 66 template<class T> using promote = typename std::common_type<T, int>::type; 69 typename std::common_type<promote<T>, promote<U>>::type; 121 ## Writing common_type Specializations 123 The standard trait `std::common_type`, used to obtain a type to which all of its arguments can conv… 127 Let's write a `common_type` specialization for two `std::tuple` arguments. For that, we need a meta… 128 applies `std::common_type` to each pair of elements and gathers the results into a tuple: 131 typename std::common_type<T...>::type; // standard in C++14 136 then specialize `common_type` to use it: [all …]
|