/third_party/boost/libs/mp11/test/ |
D | mp_rename.cpp | 22 using boost::mp11::mp_rename; in main() 27 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_rename<L1, mp_list>, mp_list<>>)); in main() 28 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_rename<L1, std::tuple>, std::tuple<>>)); in main() 29 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_rename<L1, X>, X<>>)); in main() 30 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_rename<L1, Y>, Y<>>)); in main() 39 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_rename<L2, mp_list>, mp_list<char>>)); in main() 40 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_rename<L2, std::tuple>, std::tuple<char>>)); in main() 41 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_rename<L2, X>, X<char>>)); in main() 42 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_rename<L2, Y>, Y<char>>)); in main() 51 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_rename<L3, mp_list>, mp_list<char, double>>)); in main() [all …]
|
D | mp_append_2.cpp | 25 using boost::mp11::mp_rename; in main() 31 using L4 = mp_rename<L3, mp_append>; in main()
|
D | mp_partial_sum.cpp | 33 using boost::mp11::mp_rename; in main() 68 …BOOST_TEST_TRAIT_TRUE((std::is_same< mp_partial_sum< mp_rename<mp_list_c<int, 7, 7, 2>, std::tuple… in main() 69 …BOOST_TEST_TRAIT_TRUE((std::is_same< mp_partial_sum< mp_rename<mp_list_c<std::size_t, 7, 7, 2>, st… in main() 83 …BOOST_TEST_TRAIT_TRUE((std::is_same< mp_partial_sum_q< mp_rename<mp_list_c<int, 7, 7, 2>, std::tup… in main() 84 …BOOST_TEST_TRAIT_TRUE((std::is_same< mp_partial_sum_q< mp_rename<mp_list_c<std::size_t, 7, 7, 2>, … in main()
|
D | mp_nth_element_q.cpp | 27 using boost::mp11::mp_rename; in main() 46 using L1 = mp_rename<mp_list_c<int, 7, 1, 11, 3, 2, 2, 4>, std::tuple>; in main()
|
D | mp_nth_element.cpp | 27 using boost::mp11::mp_rename; in main() 51 using L1 = mp_rename<mp_list_c<int, 7, 1, 11, 3, 2, 2, 4>, std::tuple>; in main()
|
D | tuple_transform_2.cpp | 156 using Tp = mp_rename<mp_iota< mp_int<N> >, std::tuple>; in main()
|
D | Jamfile | 37 run mp_rename.cpp ;
|
/third_party/boost/libs/mp11/doc/article/ |
D | simple_cxx11_metaprogramming.adoc | 99 ## Type lists and mp_rename 137 primitive that helps us perform them, called `mp_rename`. We want 139 mp_rename<std::tuple<int, float, void*>, mp_list> 147 mp_rename<mp_list<int, float, void*>, std::tuple> 153 Here is the implementation of `mp_rename`: 164 using mp_rename = typename mp_rename_impl<A, B>::type; 170 Note that `mp_rename` does not treat any list type as special, not even 178 mp_rename<std::pair<int, float>, std::tuple> // -> std::tuple<int, float> 179 mp_rename<mp_list<int, float>, std::pair> // -> std::pair<int, float> 180 mp_rename<std::shared_ptr<int>, std::unique_ptr> // -> std::unique_ptr<int> [all …]
|
/third_party/boost/libs/mp11/doc/mp11/ |
D | list.adoc | 250 ## mp_rename<L, Y> 252 template<class L, template<class...> class Y> using mp_rename = /*...*/; 254 `mp_rename<L, Y>` changes the type of the list `L` to `Y`. That is, `mp_rename<L<T...>, Y>` is an a… 256 .Using mp_rename to rename std::pair to std::tuple 259 using R1 = mp_rename<L1, std::tuple>; // std::tuple<double, long double> 262 .Using mp_rename to rename std::tuple to mp_list 265 using R2 = mp_rename<L2, mp_list>; // mp_list<void> 270 template<template<class...> class F, class L> using mp_apply = mp_rename<L, F>; 273 (`mp_apply` is the same as `mp_rename` with the arguments reversed.)
|
D | examples.adoc | 166 mp_rename<mp_push_front<mp_unique<mp_append<E1, E2>>, common_type_t<T1, T2>>, 182 …mmon_type_t<T1, T2>` to the front via `mp_push_front`; and finally, we `mp_rename` the resultant `… 208 mp_rename<typename std::remove_reference<Tp>::type, mp_list>...>; 286 using list1 = mp_list<mp_rename<remove_cv_ref<Tp>, mp_list>...>;
|
/third_party/boost/boost/histogram/detail/ |
D | operators.hpp | 104 using totally_ordered = mp11::mp_rename< 127 using partially_ordered = mp11::mp_rename<
|
/third_party/boost/libs/safe_numerics/test/ |
D | test_notepad.hpp | 5 return detail::mp_for_each_impl( mp_rename<L, mp_list>(), std::forward<F>(f) ); in mp_for_each_1()
|
/third_party/boost/libs/variant2/test/ |
D | variant_many_types.cpp | 102 using V = mp_rename<mp_iota_c<N>, boost::variant2::variant>; in main()
|
/third_party/boost/boost/mp11/ |
D | map.hpp | 61 template<class L> using _f3 = mp_assign<L, mp_list<mp_first<L>, mp_rename<L, F> > >;
|
D | algorithm.hpp | 263 using type = mp_list<mp_rename<P, F>>; 1055 return detail::mp_for_each_impl( mp_rename<L, mp_list>(), std::forward<F>(f) ); in mp_for_each() 1060 using L2 = mp_rename<L, mp_list>; 1072 return detail::mp_for_each_impl( mp_rename<L, mp_list>(), std::forward<F>(f) ); in mp_for_each() 1124 template<class L, class N, class L2 = mp_rename<L, mp_list>> using mp_rotate_impl = mp_assign<L, mp…
|
D | list.hpp | 202 template<class A, template<class...> class B> using mp_rename = typename detail::mp_rename_impl<A, … typedef
|