/third_party/boost/libs/hof/test/ |
D | if.cpp | 57 BOOST_HOF_STATIC_TEST_CHECK(test_int<is_5>()(5)); in BOOST_HOF_TEST_CASE() 58 BOOST_HOF_STATIC_TEST_CHECK(test_int<is_5>()(5L)); in BOOST_HOF_TEST_CASE() 59 BOOST_HOF_STATIC_TEST_CHECK(test_int<is_5>()(5.0)); in BOOST_HOF_TEST_CASE() 60 BOOST_HOF_STATIC_TEST_CHECK(test_int<is_5>()(6.0)); in BOOST_HOF_TEST_CASE() 62 BOOST_HOF_STATIC_TEST_CHECK(test_int<is_not_5>()(6)); in BOOST_HOF_TEST_CASE() 63 BOOST_HOF_STATIC_TEST_CHECK(test_int<is_not_5>()(6L)); in BOOST_HOF_TEST_CASE() 64 BOOST_HOF_STATIC_TEST_CHECK(test_int<is_not_5>()(5.0)); in BOOST_HOF_TEST_CASE() 65 BOOST_HOF_STATIC_TEST_CHECK(test_int<is_not_5>()(6.0)); in BOOST_HOF_TEST_CASE() 93 BOOST_HOF_STATIC_TEST_CHECK(test_int_c<is_5>()(5)); in BOOST_HOF_TEST_CASE() 94 BOOST_HOF_STATIC_TEST_CHECK(test_int_c<is_5>()(5L)); in BOOST_HOF_TEST_CASE() [all …]
|
D | reverse_fold.cpp | 43 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::reverse_fold(max_f(), 0)(2, 3, 4, 5) == 5); in BOOST_HOF_TEST_CASE() 44 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::reverse_fold(max_f(), 0)(5, 4, 3, 2) == 5); in BOOST_HOF_TEST_CASE() 45 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::reverse_fold(max_f(), 0)(2, 3, 5, 4) == 5); in BOOST_HOF_TEST_CASE() 53 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::reverse_fold(max_f(), 0)() == 0); in BOOST_HOF_TEST_CASE() 54 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::reverse_fold(max_f(), 0)(5) == 5); in BOOST_HOF_TEST_CASE() 68 BOOST_HOF_STATIC_TEST_CHECK(find_positive_max() == 0); in BOOST_HOF_TEST_CASE() 69 BOOST_HOF_STATIC_TEST_CHECK(find_positive_max(5) == 5); in BOOST_HOF_TEST_CASE() 76 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::reverse_fold(max_f())(5) == 5); in BOOST_HOF_TEST_CASE() 85 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::reverse_fold(max_f())(2, 3, 4, 5) == 5); in BOOST_HOF_TEST_CASE() 86 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::reverse_fold(max_f())(5, 4, 3, 2) == 5); in BOOST_HOF_TEST_CASE() [all …]
|
D | fold.cpp | 43 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::fold(max_f(), 0)(2, 3, 4, 5) == 5); in BOOST_HOF_TEST_CASE() 44 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::fold(max_f(), 0)(5, 4, 3, 2) == 5); in BOOST_HOF_TEST_CASE() 45 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::fold(max_f(), 0)(2, 3, 5, 4) == 5); in BOOST_HOF_TEST_CASE() 53 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::fold(max_f(), 0)() == 0); in BOOST_HOF_TEST_CASE() 54 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::fold(max_f(), 0)(5) == 5); in BOOST_HOF_TEST_CASE() 68 BOOST_HOF_STATIC_TEST_CHECK(find_positive_max() == 0); in BOOST_HOF_TEST_CASE() 69 BOOST_HOF_STATIC_TEST_CHECK(find_positive_max(5) == 5); in BOOST_HOF_TEST_CASE() 76 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::fold(max_f())(5) == 5); in BOOST_HOF_TEST_CASE() 85 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::fold(max_f())(2, 3, 4, 5) == 5); in BOOST_HOF_TEST_CASE() 86 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::fold(max_f())(5, 4, 3, 2) == 5); in BOOST_HOF_TEST_CASE() [all …]
|
D | unpack.cpp | 43 BOOST_HOF_STATIC_TEST_CHECK(3 == boost::hof::unpack(unary_class())(std::make_tuple(3))); in BOOST_HOF_TEST_CASE() 44 BOOST_HOF_STATIC_TEST_CHECK(3 == unary_unpack_constexpr(std::make_tuple(3))); in BOOST_HOF_TEST_CASE() 45 BOOST_HOF_STATIC_TEST_CHECK(3 == unary_unpack_reveal(std::make_tuple(3))); in BOOST_HOF_TEST_CASE() 57 BOOST_HOF_STATIC_TEST_CHECK(3 == boost::hof::unpack(unary_class())(boost::hof::pack(3))); in BOOST_HOF_TEST_CASE() 58 BOOST_HOF_STATIC_TEST_CHECK(3 == unary_unpack_constexpr(boost::hof::pack(3))); in BOOST_HOF_TEST_CASE() 59 BOOST_HOF_STATIC_TEST_CHECK(3 == unary_unpack_reveal(boost::hof::pack(3))); in BOOST_HOF_TEST_CASE() 85 BOOST_HOF_STATIC_TEST_CHECK(3 == boost::hof::unpack(binary_class())(std::make_tuple(1, 2))); in BOOST_HOF_TEST_CASE() 86 BOOST_HOF_STATIC_TEST_CHECK(3 == binary_unpack_constexpr(std::make_tuple(1, 2))); in BOOST_HOF_TEST_CASE() 87 BOOST_HOF_STATIC_TEST_CHECK(3 == binary_unpack_reveal(std::make_tuple(1, 2))); in BOOST_HOF_TEST_CASE() 89 …BOOST_HOF_STATIC_TEST_CHECK(3 == boost::hof::unpack(binary_class())(std::make_tuple(1), std::make_… in BOOST_HOF_TEST_CASE() [all …]
|
D | pack.cpp | 19 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::pack_basic(1, 2)(binary_class()) == 3); in BOOST_HOF_TEST_CASE() 22 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::pack(1, 2)(binary_class()) == 3); in BOOST_HOF_TEST_CASE() 25 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::pack_forward(1, 2)(binary_class()) == 3); in BOOST_HOF_TEST_CASE() 79 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::pack_basic(x, y)(binary_class()) == 3); in BOOST_HOF_TEST_CASE() 85 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::pack(x, y)(binary_class()) == 3); in BOOST_HOF_TEST_CASE() 91 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::pack_forward(x, y)(binary_class()) == 3); in BOOST_HOF_TEST_CASE() 97 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::pack_basic()(boost::hof::always(3)) == 3); in BOOST_HOF_TEST_CASE() 103 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::pack_basic(3)(boost::hof::identity) == 3); in BOOST_HOF_TEST_CASE() 118 …BOOST_HOF_STATIC_TEST_CHECK(boost::hof::pack_join(boost::hof::pack_basic(1), boost::hof::pack_basi… in BOOST_HOF_TEST_CASE() 121 …BOOST_HOF_STATIC_TEST_CHECK(boost::hof::pack_join(boost::hof::pack(1), boost::hof::pack(2))(binary… in BOOST_HOF_TEST_CASE() [all …]
|
D | infix.cpp | 36 BOOST_HOF_STATIC_TEST_CHECK(3 == (1 <sum> 2)); in BOOST_HOF_TEST_CASE() 39 BOOST_HOF_STATIC_TEST_CHECK(3 == (sum(1, 2))); in BOOST_HOF_TEST_CASE() 47 BOOST_HOF_STATIC_TEST_CHECK(3 == (1 <sum1> 2)); in BOOST_HOF_TEST_CASE() 50 BOOST_HOF_STATIC_TEST_CHECK(3 == (sum1(1, 2))); in BOOST_HOF_TEST_CASE() 67 BOOST_HOF_STATIC_TEST_CHECK(3 == (1 <sum3> 2)); in BOOST_HOF_TEST_CASE() 70 BOOST_HOF_STATIC_TEST_CHECK(3 == (sum3(1, 2))); in BOOST_HOF_TEST_CASE() 88 BOOST_HOF_STATIC_TEST_CHECK(3 == (1 <sum5> 2)); in BOOST_HOF_TEST_CASE() 91 BOOST_HOF_STATIC_TEST_CHECK(3 == (sum5(1, 2))); in BOOST_HOF_TEST_CASE()
|
D | compose.cpp | 81 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::compose(boost::hof::identity)(3) == 3); in BOOST_HOF_TEST_CASE() 82 …BOOST_HOF_STATIC_TEST_CHECK(boost::hof::compose(boost::hof::identity, boost::hof::identity)(3) == … in BOOST_HOF_TEST_CASE() 83 …BOOST_HOF_STATIC_TEST_CHECK(boost::hof::compose(boost::hof::identity, boost::hof::identity, boost:… in BOOST_HOF_TEST_CASE() 90 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::compose(increment(), decrement(), increment())(3) == 4); in BOOST_HOF_TEST_CASE() 97 …BOOST_HOF_STATIC_TEST_CHECK(boost::hof::compose(increment(), negate(), decrement(), decrement())(3… in BOOST_HOF_TEST_CASE() 108 BOOST_HOF_STATIC_TEST_CHECK(f(3) == 3); in BOOST_HOF_TEST_CASE() 119 BOOST_HOF_STATIC_TEST_CHECK(f(3) == 0); in BOOST_HOF_TEST_CASE() 150 BOOST_HOF_STATIC_TEST_CHECK(f_compose_single_function(3) == 4); in BOOST_HOF_TEST_CASE() 158 BOOST_HOF_STATIC_TEST_CHECK(f_compose_function(3) == 4); in BOOST_HOF_TEST_CASE() 166 BOOST_HOF_STATIC_TEST_CHECK(f_compose_function_4(3) == 0); in BOOST_HOF_TEST_CASE() [all …]
|
D | flow.cpp | 80 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::flow(boost::hof::identity)(3) == 3); in BOOST_HOF_TEST_CASE() 81 … BOOST_HOF_STATIC_TEST_CHECK(boost::hof::flow(boost::hof::identity, boost::hof::identity)(3) == 3); in BOOST_HOF_TEST_CASE() 82 …BOOST_HOF_STATIC_TEST_CHECK(boost::hof::flow(boost::hof::identity, boost::hof::identity, boost::ho… in BOOST_HOF_TEST_CASE() 89 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::flow(increment(), decrement(), increment())(3) == 4); in BOOST_HOF_TEST_CASE() 96 …BOOST_HOF_STATIC_TEST_CHECK(boost::hof::flow(increment(), negate(), decrement(), decrement())(3) =… in BOOST_HOF_TEST_CASE() 105 BOOST_HOF_STATIC_TEST_CHECK(f(3) == 3); in BOOST_HOF_TEST_CASE() 133 BOOST_HOF_STATIC_TEST_CHECK(f_flow_single_function(3) == 4); in BOOST_HOF_TEST_CASE() 141 BOOST_HOF_STATIC_TEST_CHECK(f_flow_function(3) == 4); in BOOST_HOF_TEST_CASE() 149 BOOST_HOF_STATIC_TEST_CHECK(f_flow_function_4(3) == -6); in BOOST_HOF_TEST_CASE() 167 …BOOST_HOF_STATIC_TEST_CHECK(boost::hof::flow(boost::hof::_1 + boost::hof::_1, boost::hof::_1 * boo… in BOOST_HOF_TEST_CASE()
|
D | capture.cpp | 13 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::capture_basic(1, 2)(binary_class())() == 3); in BOOST_HOF_TEST_CASE() 16 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::capture_basic(1)(binary_class())(2) == 3); in BOOST_HOF_TEST_CASE() 19 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::capture_basic()(binary_class())(1, 2) == 3); in BOOST_HOF_TEST_CASE() 24 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::capture_forward(one, two)(binary_class())() == 3); in BOOST_HOF_TEST_CASE() 28 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::capture_forward(one)(binary_class())(two) == 3); in BOOST_HOF_TEST_CASE() 31 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::capture_forward()(binary_class())(one, two) == 3); in BOOST_HOF_TEST_CASE() 34 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::capture(1, 2)(binary_class())() == 3); in BOOST_HOF_TEST_CASE() 37 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::capture(1)(binary_class())(2) == 3); in BOOST_HOF_TEST_CASE() 40 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::capture()(binary_class())(1, 2) == 3); in BOOST_HOF_TEST_CASE()
|
D | flip.cpp | 14 BOOST_HOF_STATIC_TEST_CHECK(3 == boost::hof::flip(boost::hof::_ - boost::hof::_)(2, 5)); in BOOST_HOF_TEST_CASE() 23 BOOST_HOF_STATIC_TEST_CHECK(1 == boost::hof::arg(one{})(1, 2, 3, 4)); in BOOST_HOF_TEST_CASE() 25 BOOST_HOF_STATIC_TEST_CHECK(2 == boost::hof::flip(boost::hof::arg(one{}))(1, 2, 3, 4)); in BOOST_HOF_TEST_CASE() 28 BOOST_HOF_STATIC_TEST_CHECK(2 == boost::hof::arg(two{})(1, 2, 3, 4)); in BOOST_HOF_TEST_CASE() 30 BOOST_HOF_STATIC_TEST_CHECK(1 == boost::hof::flip(boost::hof::arg(two{}))(1, 2, 3, 4)); in BOOST_HOF_TEST_CASE() 33 BOOST_HOF_STATIC_TEST_CHECK(3 == boost::hof::arg(three{})(1, 2, 3, 4)); in BOOST_HOF_TEST_CASE() 35 BOOST_HOF_STATIC_TEST_CHECK(3 == boost::hof::flip(boost::hof::arg(three{}))(1, 2, 3, 4)); in BOOST_HOF_TEST_CASE()
|
D | first_of.cpp | 64 BOOST_HOF_STATIC_TEST_CHECK(f_constexpr(t1()) == 1); in BOOST_HOF_TEST_CASE() 65 BOOST_HOF_STATIC_TEST_CHECK(f_constexpr(t2()) == 2); in BOOST_HOF_TEST_CASE() 66 BOOST_HOF_STATIC_TEST_CHECK(f_constexpr(t3()) == 3); in BOOST_HOF_TEST_CASE() 74 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::first_of(f1{}, f2{})(t1()) == 1); in BOOST_HOF_TEST_CASE() 75 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::first_of(f1{}, f2{})(t2()) == 2); in BOOST_HOF_TEST_CASE() 86 …BOOST_HOF_STATIC_TEST_CHECK(boost::hof::first_of(boost::hof::first_of(f1{}, f2{}), boost::hof::fir… in BOOST_HOF_TEST_CASE() 87 …BOOST_HOF_STATIC_TEST_CHECK(boost::hof::first_of(boost::hof::first_of(f1{}, f2{}), boost::hof::fir… in BOOST_HOF_TEST_CASE() 96 …BOOST_HOF_STATIC_TEST_CHECK(boost::hof::first_of(f1{}, boost::hof::first_of(f2{}, f3{}))(t1()) == … in BOOST_HOF_TEST_CASE() 97 …BOOST_HOF_STATIC_TEST_CHECK(boost::hof::first_of(f1{}, boost::hof::first_of(f2{}, f3{}))(t2()) == … in BOOST_HOF_TEST_CASE() 98 …BOOST_HOF_STATIC_TEST_CHECK(boost::hof::first_of(f1{}, boost::hof::first_of(f2{}, f3{}))(t3()) == … in BOOST_HOF_TEST_CASE() [all …]
|
D | pipable.cpp | 71 BOOST_HOF_STATIC_TEST_CHECK(3 == (1 | binary_pipable_constexpr(2))); in BOOST_HOF_TEST_CASE() 72 BOOST_HOF_STATIC_TEST_CHECK(3 == (binary_pipable_constexpr(1, 2))); in BOOST_HOF_TEST_CASE() 73 BOOST_HOF_STATIC_TEST_CHECK(3 == (3 | unary_pipable_constexpr)); in BOOST_HOF_TEST_CASE() 74 BOOST_HOF_STATIC_TEST_CHECK(3 == (3 | unary_pipable_constexpr())); in BOOST_HOF_TEST_CASE() 75 BOOST_HOF_STATIC_TEST_CHECK(3 == (unary_pipable_constexpr(3))); in BOOST_HOF_TEST_CASE() 81 BOOST_HOF_STATIC_TEST_CHECK(3 == boost::hof::limit_c<2>(binary_pipable_constexpr)(1, 2)); in BOOST_HOF_TEST_CASE()
|
D | repeat.cpp | 33 …BOOST_HOF_STATIC_TEST_CHECK(boost::hof::repeat(std::integral_constant<int, 5>())(increment())(1) =… in BOOST_HOF_TEST_CASE() 39 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::repeat(5)(increment())(1) == 6); in BOOST_HOF_TEST_CASE() 52 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::repeat(i)(increment())(1) == 6); in BOOST_HOF_TEST_CASE() 64 …BOOST_HOF_STATIC_TEST_CHECK(boost::hof::repeat(BOOST_HOF_RECURSIVE_CONSTEXPR_DEPTH+4)(increment())… in BOOST_HOF_TEST_CASE()
|
D | partial.cpp | 67 BOOST_HOF_STATIC_TEST_CHECK(3 == binary_partial_constexpr(1)(2)); in BOOST_HOF_TEST_CASE() 68 BOOST_HOF_STATIC_TEST_CHECK(3 == binary_partial_constexpr(1, 2)); in BOOST_HOF_TEST_CASE() 69 BOOST_HOF_STATIC_TEST_CHECK(3 == unary_partial_constexpr()(3)); in BOOST_HOF_TEST_CASE() 70 BOOST_HOF_STATIC_TEST_CHECK(3 == unary_partial_constexpr(3)); in BOOST_HOF_TEST_CASE() 71 BOOST_HOF_STATIC_TEST_CHECK(3 == mono_partial_constexpr(2)); in BOOST_HOF_TEST_CASE() 72 BOOST_HOF_STATIC_TEST_CHECK(3 == mono_partial_constexpr()(2)); in BOOST_HOF_TEST_CASE()
|
D | rotate.cpp | 34 BOOST_HOF_STATIC_TEST_CHECK(2 == boost::hof::rotate(head{})(1, 2, 3, 4)); in BOOST_HOF_TEST_CASE() 40 …BOOST_HOF_STATIC_TEST_CHECK(3 == boost::hof::compose(boost::hof::rotate, boost::hof::rotate)(head{… in BOOST_HOF_TEST_CASE() 46 …BOOST_HOF_STATIC_TEST_CHECK(6 == boost::hof::repeat(std::integral_constant<int, 5>{})(boost::hof::… in BOOST_HOF_TEST_CASE() 52 BOOST_HOF_STATIC_TEST_CHECK(3 == boost::hof::rotate(boost::hof::_ - boost::hof::_)(2, 5)); in BOOST_HOF_TEST_CASE()
|
D | construct.cpp | 147 …BOOST_HOF_STATIC_TEST_CHECK(std::make_tuple(1, 2, 3) == boost::hof::construct<std::tuple>()(1, 2, … in BOOST_HOF_TEST_CASE() 158 BOOST_HOF_STATIC_TEST_CHECK(std::make_pair(1, 2) == boost::hof::construct<std::pair>()(1, 2)); in BOOST_HOF_TEST_CASE() 174 BOOST_HOF_STATIC_TEST_CHECK(ac<int>(1).value == boost::hof::construct<ac>()(1).value); in BOOST_HOF_TEST_CASE() 182 BOOST_HOF_STATIC_TEST_CHECK(ac<int>(1).value == boost::hof::construct<ac>()(1).value); in BOOST_HOF_TEST_CASE() 208 …BOOST_HOF_STATIC_TEST_CHECK(std::make_tuple(1, 2, 3) == boost::hof::construct_meta<tuple_meta>()(1… in BOOST_HOF_TEST_CASE() 219 …BOOST_HOF_STATIC_TEST_CHECK(std::make_tuple(1, 2, 3) == boost::hof::construct_meta<tuple_meta_clas… in BOOST_HOF_TEST_CASE()
|
D | function.cpp | 34 BOOST_HOF_STATIC_TEST_CHECK(3 == sum_init(1, 2)); in BOOST_HOF_TEST_CASE() 46 BOOST_HOF_STATIC_TEST_CHECK(3 == sum_partial(1, 2)); in BOOST_HOF_TEST_CASE() 47 BOOST_HOF_STATIC_TEST_CHECK(3 == sum_partial(1)(2)); in BOOST_HOF_TEST_CASE()
|
D | match.cpp | 70 BOOST_HOF_STATIC_TEST_CHECK(fun(1) == 1); in BOOST_HOF_TEST_CASE() 71 BOOST_HOF_STATIC_TEST_CHECK(fun(foo()) == 2); in BOOST_HOF_TEST_CASE() 80 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::reveal(fun)(1) == 1); in BOOST_HOF_TEST_CASE() 81 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::reveal(fun)(foo()) == 2); in BOOST_HOF_TEST_CASE()
|
D | returns.cpp | 39 BOOST_HOF_STATIC_TEST_CHECK(id{}(3) == 3); in BOOST_HOF_TEST_CASE() 55 BOOST_HOF_STATIC_TEST_CHECK(id_comma{}(3) == 3); in BOOST_HOF_TEST_CASE()
|
D | arg.cpp | 14 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::arg_c<3>(1,2,3,4,5) == 3); in BOOST_HOF_TEST_CASE() 20 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::arg(std::integral_constant<int, 3>())(1,2,3,4,5) == 3); in BOOST_HOF_TEST_CASE()
|
D | always.cpp | 15 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::always(ten)(1,2,3,4,5) == 10); in BOOST_HOF_TEST_CASE() 37 BOOST_HOF_STATIC_TEST_CHECK(gten(1,2,3,4,5) == 10); in BOOST_HOF_TEST_CASE()
|
D | proj.cpp | 33 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::proj(select_x(), add)(foo(1), foo(2)) == 3); in BOOST_HOF_TEST_CASE() 46 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::proj(select_x(), add)(foo(1), foo(2)) == 3); in BOOST_HOF_TEST_CASE() 139 BOOST_HOF_STATIC_TEST_CHECK(constexpr_check_each()(bool_<true>())); in BOOST_HOF_TEST_CASE()
|
D | repeat_while.cpp | 84 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::repeat_while(not_6())(increment())(1) == 6); in BOOST_HOF_TEST_CASE() 93 …BOOST_HOF_STATIC_TEST_CHECK(boost::hof::repeat_while(not_limit())(increment())(1) == BOOST_HOF_REC… in BOOST_HOF_TEST_CASE()
|
D | fix.cpp | 82 …BOOST_HOF_STATIC_TEST_CHECK(boost::hof::fix(boost::hof::result<int>(factorial_constexpr_t()))(5) =… in BOOST_HOF_TEST_CASE() 83 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::result<int>(factorial_constexpr)(5) == 5*4*3*2*1); in BOOST_HOF_TEST_CASE()
|
D | test.hpp | 86 #define BOOST_HOF_STATIC_TEST_CHECK(...) static_assert(__VA_ARGS__, BOOST_HOF_STRINGIZE(__VA_ARGS__… macro 88 #define BOOST_HOF_STATIC_TEST_CHECK(...) macro
|