/third_party/boost/libs/mp11/test/ |
D | mp_take.cpp | 19 struct X2 {}; struct 37 using L2 = mp_list<X1, X2, X3, X4, X5>; in main() 41 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_take_c<L2, 2>, mp_list<X1, X2>>)); in main() 42 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_take_c<L2, 3>, mp_list<X1, X2, X3>>)); in main() 43 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_take_c<L2, 4>, mp_list<X1, X2, X3, X4>>)); in main() 44 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_take_c<L2, 5>, mp_list<X1, X2, X3, X4, X5>>)); in main() 48 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_take<L2, mp_size_t<2>>, mp_list<X1, X2>>)); in main() 49 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_take<L2, mp_size_t<3>>, mp_list<X1, X2, X3>>)); in main() 50 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_take<L2, mp_size_t<4>>, mp_list<X1, X2, X3, X4>>)); in main() 51 … BOOST_TEST_TRAIT_TRUE((std::is_same<mp_take<L2, mp_size_t<5>>, mp_list<X1, X2, X3, X4, X5>>)); in main() [all …]
|
D | mp_reverse.cpp | 18 struct X2 {}; struct 40 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_reverse<mp_list<X1, X2>>, mp_list<X2, X1>>)); in main() 41 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_reverse<mp_list<X1, X2, X3>>, mp_list<X3, X2, X1>>)); in main() 42 …BOOST_TEST_TRAIT_TRUE((std::is_same<mp_reverse<mp_list<X1, X2, X3, X4>>, mp_list<X4, X3, X2, X1>>)… in main() 43 …ST_TEST_TRAIT_TRUE((std::is_same<mp_reverse<mp_list<X1, X2, X3, X4, X5>>, mp_list<X5, X4, X3, X2, … in main() 44 …EST_TRAIT_TRUE((std::is_same<mp_reverse<mp_list<X1, X2, X3, X4, X5, X6>>, mp_list<X6, X5, X4, X3, … in main() 45 …TRAIT_TRUE((std::is_same<mp_reverse<mp_list<X1, X2, X3, X4, X5, X6, X7>>, mp_list<X7, X6, X5, X4, … in main() 46 …T_TRUE((std::is_same<mp_reverse<mp_list<X1, X2, X3, X4, X5, X6, X7, X8>>, mp_list<X8, X7, X6, X5, … in main() 47 …UE((std::is_same<mp_reverse<mp_list<X1, X2, X3, X4, X5, X6, X7, X8, X9>>, mp_list<X9, X8, X7, X6, … in main() 48 …td::is_same<mp_reverse<mp_list<X1, X2, X3, X4, X5, X6, X7, X8, X9, X10>>, mp_list<X10, X9, X8, X7,… in main() [all …]
|
D | mp_transform_front.cpp | 18 struct X2 {}; struct 42 using L2 = mp_list<X1, X2>; in main() 44 … BOOST_TEST_TRAIT_TRUE((std::is_same<mp_transform_front<L2, add_pointer_t>, mp_list<X1*, X2>>)); in main() 45 … BOOST_TEST_TRAIT_TRUE((std::is_same<mp_transform_first<L2, add_pointer_t>, mp_list<X1*, X2>>)); in main() 47 … BOOST_TEST_TRAIT_TRUE((std::is_same<mp_transform_front_q<L2, Q_add_pointer>, mp_list<X1*, X2>>)); in main() 48 … BOOST_TEST_TRAIT_TRUE((std::is_same<mp_transform_first_q<L2, Q_add_pointer>, mp_list<X1*, X2>>)); in main() 50 using L3 = mp_list<X1, X2, X3>; in main() 52 …BOOST_TEST_TRAIT_TRUE((std::is_same<mp_transform_front<L3, add_pointer_t>, mp_list<X1*, X2, X3>>)); in main() 53 …BOOST_TEST_TRAIT_TRUE((std::is_same<mp_transform_first<L3, add_pointer_t>, mp_list<X1*, X2, X3>>)); in main() 55 …OST_TEST_TRAIT_TRUE((std::is_same<mp_transform_front_q<L3, Q_add_pointer>, mp_list<X1*, X2, X3>>)); in main() [all …]
|
D | mp_append.cpp | 17 struct X2 {}; struct 43 …_TRUE((std::is_same<mp_append<std::tuple<>, std::tuple<X1>, std::tuple<X2>>, std::tuple<X1, X2>>)); in main() 44 …_same<mp_append<std::tuple<>, std::tuple<X1>, std::tuple<X2>, std::tuple<X3>>, std::tuple<X1, X2, … in main() 45 …_append<std::tuple<>, std::tuple<X1>, std::tuple<X2>, std::tuple<X3>, std::tuple<X4>>, std::tuple<… in main() 46 …std::tuple<>, std::tuple<X1>, std::tuple<X2>, std::tuple<X3>, std::tuple<X4>, std::tuple<X5>>, std… in main() 47 …le<>, std::tuple<X1>, std::tuple<X2>, std::tuple<X3>, std::tuple<X4>, std::tuple<X5>, std::tuple<X… in main() 53 …AIT_TRUE((std::is_same<mp_append<std::tuple<>, mp_list<X1>, std::tuple<X2>>, std::tuple<X1, X2>>)); in main() 54 …::is_same<mp_append<std::tuple<>, mp_list<X1>, std::tuple<X2>, mp_list<X3>>, std::tuple<X1, X2, X3… in main() 55 …e<mp_append<std::tuple<>, mp_list<X1>, std::tuple<X2>, mp_list<X3>, std::tuple<X4>>, std::tuple<X1… in main() 56 …ppend<std::tuple<>, mp_list<X1>, std::tuple<X2>, mp_list<X3>, std::tuple<X4>, mp_list<X5>>, std::t… in main() [all …]
|
D | mp_rotate_right.cpp | 19 struct X2 {}; struct 46 using L2 = mp_list<X1, X2, X3, X4, X5>; in main() 48 … BOOST_TEST_TRAIT_TRUE((std::is_same<mp_rotate_right_c<L2, 0>, mp_list<X1, X2, X3, X4, X5>>)); in main() 49 … BOOST_TEST_TRAIT_TRUE((std::is_same<mp_rotate_right_c<L2, 1>, mp_list<X5, X1, X2, X3, X4>>)); in main() 50 … BOOST_TEST_TRAIT_TRUE((std::is_same<mp_rotate_right_c<L2, 2>, mp_list<X4, X5, X1, X2, X3>>)); in main() 51 … BOOST_TEST_TRAIT_TRUE((std::is_same<mp_rotate_right_c<L2, 3>, mp_list<X3, X4, X5, X1, X2>>)); in main() 52 … BOOST_TEST_TRAIT_TRUE((std::is_same<mp_rotate_right_c<L2, 4>, mp_list<X2, X3, X4, X5, X1>>)); in main() 53 … BOOST_TEST_TRAIT_TRUE((std::is_same<mp_rotate_right_c<L2, 5>, mp_list<X1, X2, X3, X4, X5>>)); in main() 54 … BOOST_TEST_TRAIT_TRUE((std::is_same<mp_rotate_right_c<L2, 6>, mp_list<X5, X1, X2, X3, X4>>)); in main() 55 … BOOST_TEST_TRAIT_TRUE((std::is_same<mp_rotate_right_c<L2, 7>, mp_list<X4, X5, X1, X2, X3>>)); in main() [all …]
|
D | mp_rotate_left.cpp | 19 struct X2 {}; struct 46 using L2 = mp_list<X1, X2, X3, X4, X5>; in main() 48 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_rotate_left_c<L2, 0>, mp_list<X1, X2, X3, X4, X5>>)); in main() 49 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_rotate_left_c<L2, 1>, mp_list<X2, X3, X4, X5, X1>>)); in main() 50 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_rotate_left_c<L2, 2>, mp_list<X3, X4, X5, X1, X2>>)); in main() 51 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_rotate_left_c<L2, 3>, mp_list<X4, X5, X1, X2, X3>>)); in main() 52 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_rotate_left_c<L2, 4>, mp_list<X5, X1, X2, X3, X4>>)); in main() 53 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_rotate_left_c<L2, 5>, mp_list<X1, X2, X3, X4, X5>>)); in main() 54 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_rotate_left_c<L2, 6>, mp_list<X2, X3, X4, X5, X1>>)); in main() 55 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_rotate_left_c<L2, 7>, mp_list<X3, X4, X5, X1, X2>>)); in main() [all …]
|
D | mp_bind.cpp | 19 struct X2 {}; struct 35 BOOST_TEST_TRAIT_TRUE((std::is_same<_1::fn<X1, X2, X3, X4, X5, X6, X7, X8, X9>, X1>)); in main() 37 BOOST_TEST_TRAIT_TRUE((std::is_same<_2::fn<X1, X2>, X2>)); in main() 38 BOOST_TEST_TRAIT_TRUE((std::is_same<_2::fn<X1, X2, X3, X4, X5, X6, X7, X8, X9>, X2>)); in main() 40 BOOST_TEST_TRAIT_TRUE((std::is_same<_3::fn<X1, X2, X3>, X3>)); in main() 41 BOOST_TEST_TRAIT_TRUE((std::is_same<_3::fn<X1, X2, X3, X4, X5, X6, X7, X8, X9>, X3>)); in main() 43 BOOST_TEST_TRAIT_TRUE((std::is_same<_4::fn<X1, X2, X3, X4>, X4>)); in main() 44 BOOST_TEST_TRAIT_TRUE((std::is_same<_4::fn<X1, X2, X3, X4, X5, X6, X7, X8, X9>, X4>)); in main() 46 BOOST_TEST_TRAIT_TRUE((std::is_same<_5::fn<X1, X2, X3, X4, X5>, X5>)); in main() 47 BOOST_TEST_TRAIT_TRUE((std::is_same<_5::fn<X1, X2, X3, X4, X5, X6, X7, X8, X9>, X5>)); in main() [all …]
|
D | mp_replace_front.cpp | 18 struct X2 {}; struct 34 using L2 = mp_list<X1, X2>; in main() 36 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_replace_front<L2, void>, mp_list<void, X2>>)); in main() 37 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_replace_first<L2, void>, mp_list<void, X2>>)); in main() 39 using L3 = mp_list<X1, X2, X3>; in main() 41 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_replace_front<L3, void>, mp_list<void, X2, X3>>)); in main() 42 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_replace_first<L3, void>, mp_list<void, X2, X3>>)); in main() 44 using L4 = mp_list<X1, X2, X3, X4>; in main() 46 … BOOST_TEST_TRAIT_TRUE((std::is_same<mp_replace_front<L4, void>, mp_list<void, X2, X3, X4>>)); in main() 47 … BOOST_TEST_TRAIT_TRUE((std::is_same<mp_replace_first<L4, void>, mp_list<void, X2, X3, X4>>)); in main() [all …]
|
D | mp_transform_second.cpp | 18 struct X2 {}; struct 32 using L2 = mp_list<X1, X2>; in main() 34 … BOOST_TEST_TRAIT_TRUE((std::is_same<mp_transform_second<L2, add_pointer_t>, mp_list<X1, X2*>>)); in main() 35 … BOOST_TEST_TRAIT_TRUE((std::is_same<mp_transform_second_q<L2, Q_add_pointer>, mp_list<X1, X2*>>)); in main() 37 using L3 = mp_list<X1, X2, X3>; in main() 39 …BOOST_TEST_TRAIT_TRUE((std::is_same<mp_transform_second<L3, add_pointer_t>, mp_list<X1, X2*, X3>>)… in main() 40 …ST_TEST_TRAIT_TRUE((std::is_same<mp_transform_second_q<L3, Q_add_pointer>, mp_list<X1, X2*, X3>>)); in main() 42 using L4 = mp_list<X1, X2, X3, X4>; in main() 44 …BOOST_TEST_TRAIT_TRUE((std::is_same<mp_transform_second<L4, add_pointer_t>, mp_list<X1, X2*, X3, X… in main() 45 …EST_TRAIT_TRUE((std::is_same<mp_transform_second_q<L4, Q_add_pointer>, mp_list<X1, X2*, X3, X4>>)); in main() [all …]
|
D | mp_assign.cpp | 17 struct X2 {}; struct 29 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_assign<L1, mp_list<X1, X2>>, mp_list<X1, X2>>)); in main() 30 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_assign<L1, mp_list<X1, X2, X3>>, mp_list<X1, X2, X3>>)); in main() 36 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_assign<L1, std::tuple<X1, X2>>, mp_list<X1, X2>>)); in main() 37 … BOOST_TEST_TRAIT_TRUE((std::is_same<mp_assign<L1, std::tuple<X1, X2, X3>>, mp_list<X1, X2, X3>>)); in main() 41 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_assign<L1, std::pair<X1, X2>>, mp_list<X1, X2>>)); in main() 49 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_assign<L2, mp_list<X1, X2>>, std::tuple<X1, X2>>)); in main() 50 … BOOST_TEST_TRAIT_TRUE((std::is_same<mp_assign<L2, mp_list<X1, X2, X3>>, std::tuple<X1, X2, X3>>)); in main() 52 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_assign<L2, std::pair<X1, X2>>, std::tuple<X1, X2>>)); in main() 58 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_assign<L3, mp_list<X1, X2>>, std::pair<X1, X2>>)); in main() [all …]
|
D | mp_insert.cpp | 19 struct X2 {}; struct 46 using L2 = mp_list<X1, X2, X3, X4, X5>; in main() 55 …BOOST_TEST_TRAIT_TRUE((std::is_same<mp_insert_c<L2, 0, Y1, Y2>, mp_list<Y1, Y2, X1, X2, X3, X4, X5… in main() 56 …BOOST_TEST_TRAIT_TRUE((std::is_same<mp_insert_c<L2, 1, Y1, Y2>, mp_list<X1, Y1, Y2, X2, X3, X4, X5… in main() 57 …BOOST_TEST_TRAIT_TRUE((std::is_same<mp_insert_c<L2, 2, Y1, Y2>, mp_list<X1, X2, Y1, Y2, X3, X4, X5… in main() 58 …BOOST_TEST_TRAIT_TRUE((std::is_same<mp_insert_c<L2, 3, Y1, Y2>, mp_list<X1, X2, X3, Y1, Y2, X4, X5… in main() 59 …BOOST_TEST_TRAIT_TRUE((std::is_same<mp_insert_c<L2, 4, Y1, Y2>, mp_list<X1, X2, X3, X4, Y1, Y2, X5… in main() 60 …BOOST_TEST_TRAIT_TRUE((std::is_same<mp_insert_c<L2, 5, Y1, Y2>, mp_list<X1, X2, X3, X4, X5, Y1, Y2… in main() 69 …AIT_TRUE((std::is_same<mp_insert<L2, mp_size_t<0>, Y1, Y2>, mp_list<Y1, Y2, X1, X2, X3, X4, X5>>)); in main() 70 …AIT_TRUE((std::is_same<mp_insert<L2, mp_size_t<1>, Y1, Y2>, mp_list<X1, Y1, Y2, X2, X3, X4, X5>>)); in main() [all …]
|
D | mp_replace.cpp | 18 struct X2 {}; struct 31 using L2 = mp_list<X1, X2, X3, X2, X3, X3>; in main() 34 …BOOST_TEST_TRAIT_TRUE((std::is_same<mp_replace<L2, X1, int[]>, mp_list<int[], X2, X3, X2, X3, X3>>… in main() 35 …BOOST_TEST_TRAIT_TRUE((std::is_same<mp_replace<L2, X2, int[]>, mp_list<X1, int[], X3, int[], X3, X… in main() 36 …BOOST_TEST_TRAIT_TRUE((std::is_same<mp_replace<L2, X3, int[]>, mp_list<X1, X2, int[], X2, int[], i… in main() 44 using L2 = std::tuple<X1, X2, X3, X2, X3, X3>; in main() 47 …BOOST_TEST_TRAIT_TRUE((std::is_same<mp_replace<L2, X1, int[]>, std::tuple<int[], X2, X3, X2, X3, X… in main() 48 …BOOST_TEST_TRAIT_TRUE((std::is_same<mp_replace<L2, X2, int[]>, std::tuple<X1, int[], X3, int[], X3… in main() 49 …BOOST_TEST_TRAIT_TRUE((std::is_same<mp_replace<L2, X3, int[]>, std::tuple<X1, X2, int[], X2, int[]… in main() 53 using L2 = std::pair<X1, X2>; in main() [all …]
|
D | mp_partial_sum.cpp | 15 struct X2 {}; struct 40 …_TRUE((std::is_same< mp_partial_sum< mp_list<X1, X2>, void, F >, mp_list< F<void, X1>, F<F<void, X… in main() 41 …s_same< mp_partial_sum< mp_list<X1, X2, X3>, void, F >, mp_list< F<void, X1>, F<F<void, X1>, X2>, … in main() 50 …std::is_same< mp_partial_sum_q< mp_list<X1, X2>, void, mp_quote<F> >, mp_list< F<void, X1>, F<F<vo… in main() 51 … mp_partial_sum_q< mp_list<X1, X2, X3>, void, mp_quote<F> >, mp_list< F<void, X1>, F<F<void, X1>, … in main() 55 …td::is_same< mp_partial_sum_q< mp_list<X1, X2>, void, Q >, mp_list< Q::fn<void, X1>, Q::fn<Q::fn<v… in main() 56 …tial_sum_q< mp_list<X1, X2, X3>, void, Q >, mp_list< Q::fn<void, X1>, Q::fn<Q::fn<void, X1>, X2>, … in main() 65 …((std::is_same< mp_partial_sum< std::tuple<X1, X2>, void, F >, std::tuple< F<void, X1>, F<F<void, … in main() 66 …e< mp_partial_sum< std::tuple<X1, X2, X3>, void, F >, std::tuple< F<void, X1>, F<F<void, X1>, X2>,… in main() 75 …is_same< mp_partial_sum_q< std::tuple<X1, X2>, void, mp_quote<F> >, std::tuple< F<void, X1>, F<F<v… in main() [all …]
|
D | mp_remove.cpp | 17 struct X2 {}; struct 30 using L2 = mp_list<X1, X2, X3, X2, X3, X3>; in main() 33 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_remove<L2, X1>, mp_list<X2, X3, X2, X3, X3>>)); in main() 34 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_remove<L2, X2>, mp_list<X1, X3, X3, X3>>)); in main() 35 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_remove<L2, X3>, mp_list<X1, X2, X2>>)); in main() 43 using L2 = std::tuple<X1, X2, X3, X2, X3, X3>; in main() 46 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_remove<L2, X1>, std::tuple<X2, X3, X2, X3, X3>>)); in main() 47 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_remove<L2, X2>, std::tuple<X1, X3, X3, X3>>)); in main() 48 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_remove<L2, X3>, std::tuple<X1, X2, X2>>)); in main()
|
D | mp_erase.cpp | 19 struct X2 {}; struct 44 using L2 = mp_list<X1, X2, X3, X4, X5>; in main() 60 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_erase_c<L2, 0, 1>, mp_list<X2, X3, X4, X5>>)); in main() 62 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_erase_c<L2, 2, 3>, mp_list<X1, X2, X4, X5>>)); in main() 63 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_erase_c<L2, 3, 4>, mp_list<X1, X2, X3, X5>>)); in main() 64 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_erase_c<L2, 4, 5>, mp_list<X1, X2, X3, X4>>)); in main() 66 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_erase<L2, _0, _1>, mp_list<X2, X3, X4, X5>>)); in main() 68 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_erase<L2, _2, _3>, mp_list<X1, X2, X4, X5>>)); in main() 69 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_erase<L2, _3, _4>, mp_list<X1, X2, X3, X5>>)); in main() 70 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_erase<L2, _4, _5>, mp_list<X1, X2, X3, X4>>)); in main() [all …]
|
D | mp_power_set.cpp | 12 struct X2 {}; struct 22 …_TRUE((std::is_same< mp_power_set< mp_list<X2, X1> >, mp_list< mp_list<>, mp_list<X1>, mp_list<X2>… in main() 24 …list<X3, X2, X1> >, mp_list< mp_list<>, mp_list<X1>, mp_list<X2>, mp_list<X2, X1>, mp_list<X3>, mp… in main() 28 …:is_same< mp_power_set< std::tuple<X2, X1> >, std::tuple< std::tuple<>, std::tuple<X1>, std::tuple… in main() 30 …X2, X1> >, std::tuple< std::tuple<>, std::tuple<X1>, std::tuple<X2>, std::tuple<X2, X1>, std::tupl… in main()
|
D | mp_fold_q.cpp | 19 struct X2 {}; struct 36 … BOOST_TEST_TRAIT_TRUE((std::is_same<mp_fold_q<mp_list<X1, X2>, void, Q>, F<F<void, X1>, X2>>)); in main() 37 …OOST_TEST_TRAIT_TRUE((std::is_same<mp_fold_q<mp_list<X1, X2, X3>, void, Q>, F<F<F<void, X1>, X2>, … in main() 38 …T_TEST_TRAIT_TRUE((std::is_same<mp_fold_q<mp_list<X1, X2, X3, X4>, void, Q>, F<F<F<F<void, X1>, X2… in main() 44 … BOOST_TEST_TRAIT_TRUE((std::is_same<mp_fold_q<std::tuple<X1, X2>, void, Q>, F<F<void, X1>, X2>>)); in main() 45 …T_TEST_TRAIT_TRUE((std::is_same<mp_fold_q<std::tuple<X1, X2, X3>, void, Q>, F<F<F<void, X1>, X2>, … in main() 46 …EST_TRAIT_TRUE((std::is_same<mp_fold_q<std::tuple<X1, X2, X3, X4>, void, Q>, F<F<F<F<void, X1>, X2… in main() 52 …_TRUE((std::is_same<mp_fold_q<std::tuple<X1, X2, X3, X4>, mp_list<>, mp_quote<mp_push_back>>, mp_l… in main() 58 …UE((std::is_same<mp_fold_q<std::tuple<X1, X2, X3, X4>, mp_list<>, mp_quote<mp_push_front>>, mp_lis… in main()
|
D | mp_reverse_fold_q.cpp | 19 struct X2 {}; struct 36 …BOOST_TEST_TRAIT_TRUE((std::is_same<mp_reverse_fold_q<mp_list<X1, X2>, void, Q>, F<X1, F<X2, void>… in main() 37 …T_TEST_TRAIT_TRUE((std::is_same<mp_reverse_fold_q<mp_list<X1, X2, X3>, void, Q>, F<X1, F<X2, F<X3,… in main() 38 …TEST_TRAIT_TRUE((std::is_same<mp_reverse_fold_q<mp_list<X1, X2, X3, X4>, void, Q>, F<X1, F<X2, F<X… in main() 44 …_TEST_TRAIT_TRUE((std::is_same<mp_reverse_fold_q<std::tuple<X1, X2>, void, Q>, F<X1, F<X2, void>>>… in main() 45 …EST_TRAIT_TRUE((std::is_same<mp_reverse_fold_q<std::tuple<X1, X2, X3>, void, Q>, F<X1, F<X2, F<X3,… in main() 46 …T_TRAIT_TRUE((std::is_same<mp_reverse_fold_q<std::tuple<X1, X2, X3, X4>, void, Q>, F<X1, F<X2, F<X… in main() 56 …_same<mp_reverse_fold_q<std::tuple<X1, X2, X3, X4>, mp_list<>, mp_bind<mp_push_back, _2, _1>>, mp_… in main() 62 …is_same<mp_reverse_fold_q<std::tuple<X1, X2, X3, X4>, mp_list<>, mp_bind<mp_push_front, _2, _1>>, … in main()
|
/third_party/boost/libs/variant2/test/ |
D | variant_move_construct.cpp | 33 struct X2 struct 35 X2() {} in X2() function 36 X2(X2 const&) {} in X2() function 37 X2(X2&&) {} in X2() argument 40 inline bool operator==( X2, X2 ) { return true; } in operator ==() argument 42 STATIC_ASSERT( !std::is_nothrow_default_constructible<X2>::value ); 43 STATIC_ASSERT( !std::is_nothrow_copy_constructible<X2>::value ); 44 STATIC_ASSERT( !std::is_nothrow_move_constructible<X2>::value ); 100 test( variant<X1, X2>() ); in main() 101 test( variant<X1, X2, int>() ); in main() [all …]
|
D | variant_copy_construct.cpp | 35 struct X2 struct 37 X2() {} in X2() function 38 X2(X2 const&) {} in X2() function 39 X2(X2&&) {} in X2() argument 42 inline bool operator==( X2, X2 ) { return true; } in operator ==() argument 44 STATIC_ASSERT( !std::is_nothrow_default_constructible<X2>::value ); 45 STATIC_ASSERT( !std::is_nothrow_copy_constructible<X2>::value ); 46 STATIC_ASSERT( !std::is_nothrow_move_constructible<X2>::value ); 110 test( variant<X1, X2>() ); in main() 111 test( variant<X1, X2, int>() ); in main() [all …]
|
D | variant_destroy.cpp | 37 struct X2 struct 43 X2(): v(0) { ++instances; } in X2() argument 44 explicit X2(int v): v(v) { ++instances; } in X2() argument 45 X2(X2 const& r): v(r.v) { ++instances; } in X2() function 46 X2(X2&& r): v(r.v) { ++instances; } in X2() function 48 ~X2() noexcept { --instances; } in ~X2() argument 50 X2& operator=( X2 const& r ) { v = r.v; return *this; } in operator =() argument 51 X2& operator=( X2&& r ) { v = r.v; return *this; } in operator =() argument 54 int X2::instances = 0; 161 BOOST_TEST_EQ( X2::instances, 0 ); in main() [all …]
|
D | variant_copy_assign.cpp | 40 struct X2 struct 44 X2(): v(0) {} in X2() argument 45 explicit X2(int v): v(v) {} in X2() argument 46 X2(X2 const& r): v(r.v) {} in X2() function 47 X2(X2&& r): v(r.v) {} in X2() argument 48 X2& operator=( X2 const& r ) { v = r.v; return *this; } in operator =() argument 49 X2& operator=( X2&& r ) { v = r.v; return *this; } in operator =() argument 52 inline bool operator==( X2 const& a, X2 const& b ) { return a.v == b.v; } in operator ==() 54 STATIC_ASSERT( !std::is_nothrow_default_constructible<X2>::value ); 55 STATIC_ASSERT( !std::is_nothrow_copy_constructible<X2>::value ); [all …]
|
D | variant_move_assign.cpp | 40 struct X2 struct 44 X2(): v(0) {} in X2() function 45 explicit X2(int v): v(v) {} in X2() argument 46 X2(X2 const& r): v(r.v) {} in X2() function 47 X2(X2&& r): v(r.v) {} in X2() function 48 X2& operator=( X2 const& r ) { v = r.v; return *this; } in operator =() argument 49 X2& operator=( X2&& r ) { v = r.v; return *this; } in operator =() argument 52 inline bool operator==( X2 const& a, X2 const& b ) { return a.v == b.v; } in operator ==() 54 STATIC_ASSERT( !std::is_nothrow_default_constructible<X2>::value ); 55 STATIC_ASSERT( !std::is_nothrow_copy_constructible<X2>::value ); [all …]
|
D | variant_valueless.cpp | 49 struct X2 struct 51 X2(); 52 ~X2(); 54 X2( E2 ) noexcept {} in X2() argument 55 X2( E2x ) { throw std::runtime_error( "X2(E2x)" ); } in X2() function 58 X2::X2() {} in X2() function in X2 59 X2::~X2() {} in ~X2() 61 STATIC_ASSERT( !std::is_nothrow_default_constructible<X2>::value ); 62 STATIC_ASSERT( std::is_nothrow_copy_constructible<X2>::value ); 63 STATIC_ASSERT( std::is_nothrow_move_constructible<X2>::value ); [all …]
|
D | variant_subset.cpp | 44 struct X2 struct 48 X2(): v(0) {} in X2() argument 49 explicit X2(int v): v(v) {} in X2() argument 50 X2(X2 const& r): v(r.v) {} in X2() function 51 X2(X2&& r): v(r.v) {} in X2() function 52 X2& operator=( X2 const& r ) { v = r.v; return *this; } in operator =() argument 53 X2& operator=( X2&& r ) { v = r.v; return *this; } in operator =() argument 56 inline bool operator==( X2 const& a, X2 const& b ) { return a.v == b.v; } in operator ==() 58 STATIC_ASSERT( !std::is_nothrow_default_constructible<X2>::value ); 59 STATIC_ASSERT( !std::is_nothrow_copy_constructible<X2>::value ); [all …]
|