Home
last modified time | relevance | path

Searched refs:hof (Results 1 – 25 of 208) sorted by relevance

123456789

/third_party/boost/libs/hof/test/
Dpack.cpp15 auto p1 = boost::hof::pack_basic(1, 2); in BOOST_HOF_TEST_CASE()
19 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::pack_basic(1, 2)(binary_class()) == 3); in BOOST_HOF_TEST_CASE()
20 BOOST_HOF_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()
23 BOOST_HOF_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()
26 BOOST_HOF_TEST_CHECK(boost::hof::pack_forward(1, 2)(binary_class()) == 3 ); in BOOST_HOF_TEST_CASE()
40 static_assert(!noexcept(boost::hof::pack(ct, ct)(boost::hof::always())), "noexcept pack"); in BOOST_HOF_TEST_CASE()
41 static_assert(noexcept(boost::hof::pack(1, 2)(boost::hof::always())), "noexcept pack"); in BOOST_HOF_TEST_CASE()
42 … static_assert(noexcept(boost::hof::pack_forward(ct, ct)(boost::hof::always())), "noexcept pack"); in BOOST_HOF_TEST_CASE()
[all …]
Dprotect.cpp38 BOOST_HOF_TEST_CHECK(boost::hof::protect(boost::hof::lazy(f)(1))() == 1); in BOOST_HOF_TEST_CASE()
42 …BOOST_HOF_TEST_CHECK(&boost::hof::protect(boost::hof::lazy(g)(std::placeholders::_1))(i[0]) == &i[… in BOOST_HOF_TEST_CASE()
44 …BOOST_HOF_TEST_CHECK(&boost::hof::protect(boost::hof::lazy(g)(std::placeholders::_1))(i[0], i[1]) … in BOOST_HOF_TEST_CASE()
45 …BOOST_HOF_TEST_CHECK(&boost::hof::protect(boost::hof::lazy(g)(std::placeholders::_2))(i[0], i[1]) … in BOOST_HOF_TEST_CASE()
47 …BOOST_HOF_TEST_CHECK(&boost::hof::protect(boost::hof::lazy(g)(std::placeholders::_1))(i[0], i[1], … in BOOST_HOF_TEST_CASE()
48 …BOOST_HOF_TEST_CHECK(&boost::hof::protect(boost::hof::lazy(g)(std::placeholders::_2))(i[0], i[1], … in BOOST_HOF_TEST_CASE()
49 …BOOST_HOF_TEST_CHECK(&boost::hof::protect(boost::hof::lazy(g)(std::placeholders::_3))(i[0], i[1], … in BOOST_HOF_TEST_CASE()
51 …BOOST_HOF_TEST_CHECK(&boost::hof::protect(boost::hof::lazy(g)(std::placeholders::_1))(i[0], i[1], … in BOOST_HOF_TEST_CASE()
52 …BOOST_HOF_TEST_CHECK(&boost::hof::protect(boost::hof::lazy(g)(std::placeholders::_2))(i[0], i[1], … in BOOST_HOF_TEST_CASE()
53 …BOOST_HOF_TEST_CHECK(&boost::hof::protect(boost::hof::lazy(g)(std::placeholders::_3))(i[0], i[1], … in BOOST_HOF_TEST_CASE()
[all …]
Dis_invocable.cpp44 static_assert(boost::hof::is_invocable<is_callable_class, int>::value, "Not callable"); in BOOST_HOF_STATIC_TEST_CASE()
45 static_assert(boost::hof::is_invocable<is_callable_class, long>::value, "Not callable"); in BOOST_HOF_STATIC_TEST_CASE()
46 static_assert(boost::hof::is_invocable<is_callable_class, double>::value, "Not callable"); in BOOST_HOF_STATIC_TEST_CASE()
47 static_assert(boost::hof::is_invocable<is_callable_class, const int&>::value, "Not callable"); in BOOST_HOF_STATIC_TEST_CASE()
48 static_assert(boost::hof::is_invocable<is_callable_class, const long&>::value, "Not callable"); in BOOST_HOF_STATIC_TEST_CASE()
49 … static_assert(boost::hof::is_invocable<is_callable_class, const double&>::value, "Not callable"); in BOOST_HOF_STATIC_TEST_CASE()
50 …static_assert(not boost::hof::is_invocable<is_callable_class, callable_test_param>::value, "callab… in BOOST_HOF_STATIC_TEST_CASE()
51 static_assert(not boost::hof::is_invocable<is_callable_class>::value, "callable failed"); in BOOST_HOF_STATIC_TEST_CASE()
52 …static_assert(not boost::hof::is_invocable<is_callable_class, int, int>::value, "callable failed"); in BOOST_HOF_STATIC_TEST_CASE()
55 … static_assert(boost::hof::is_invocable<is_callable_function_pointer, int>::value, "Not callable"); in BOOST_HOF_STATIC_TEST_CASE()
[all …]
Dapply.cpp12 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::apply(binary_class(), 1, 2) == 3); in BOOST_HOF_TEST_CASE()
13 BOOST_HOF_TEST_CHECK(boost::hof::apply(binary_class(), 1, 2) == 3); in BOOST_HOF_TEST_CASE()
18 BOOST_HOF_TEST_CHECK(boost::hof::apply(boost::hof::apply, binary_class(), 1, 2) == 3); in BOOST_HOF_TEST_CASE()
19 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::apply(boost::hof::apply, binary_class(), 1, 2) == 3); in BOOST_HOF_TEST_CASE()
43 BOOST_HOF_TEST_CHECK(boost::hof::apply(&member_sum_f::add, member_sum_f(1), 2) == 3); in BOOST_HOF_TEST_CASE()
44 BOOST_HOF_TEST_CHECK(boost::hof::apply(&member_sum_f::add, member_sum_f_derived(1), 2) == 3); in BOOST_HOF_TEST_CASE()
47 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::apply(&member_sum_f::add, member_sum_f(1), 2) == 3); in BOOST_HOF_TEST_CASE()
48 …BOOST_HOF_STATIC_TEST_CHECK(boost::hof::apply(&member_sum_f::add, member_sum_f_derived(1), 2) == 3… in BOOST_HOF_TEST_CASE()
53 BOOST_HOF_TEST_CHECK(boost::hof::apply(&member_sum_f::add, msp, 2) == 3); in BOOST_HOF_TEST_CASE()
56 BOOST_HOF_TEST_CHECK(boost::hof::apply(&member_sum_f::add, mspd, 2) == 3); in BOOST_HOF_TEST_CASE()
[all …]
Dcapture.cpp13 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::capture_basic(1, 2)(binary_class())() == 3); in BOOST_HOF_TEST_CASE()
14 BOOST_HOF_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()
17 BOOST_HOF_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()
20 BOOST_HOF_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()
25 BOOST_HOF_TEST_CHECK(boost::hof::capture_forward(one, two)(binary_class())() == 3); in BOOST_HOF_TEST_CASE()
26 BOOST_HOF_TEST_CHECK(boost::hof::capture_forward(1, 2)(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()
[all …]
Dfirst_of.cpp54 static constexpr boost::hof::static_<boost::hof::first_of_adaptor<f1, f2, f3, ff> > f = {};
56 BOOST_HOF_STATIC_FUNCTION(f_constexpr) = boost::hof::first_of_adaptor<f1, f2, f3, ff>();
71 BOOST_HOF_TEST_CHECK(boost::hof::first_of(f1{}, f2{})(t1()) == 1); in BOOST_HOF_TEST_CASE()
72 BOOST_HOF_TEST_CHECK(boost::hof::first_of(f1{}, f2{})(t2()) == 2); 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()
83 …BOOST_HOF_TEST_CHECK(boost::hof::first_of(boost::hof::first_of(f1{}, f2{}), boost::hof::first_of(f… in BOOST_HOF_TEST_CASE()
84 …BOOST_HOF_TEST_CHECK(boost::hof::first_of(boost::hof::first_of(f1{}, f2{}), boost::hof::first_of(f… 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()
[all …]
Dunpack.cpp14 static constexpr boost::hof::static_<boost::hof::unpack_adaptor<unary_class> > unary_unpack = {};
15 static constexpr boost::hof::static_<boost::hof::unpack_adaptor<binary_class> > binary_unpack = {};
17 BOOST_HOF_STATIC_AUTO unary_unpack_constexpr = boost::hof::unpack_adaptor<unary_class>();
19 BOOST_HOF_STATIC_AUTO binary_unpack_constexpr = boost::hof::unpack_adaptor<binary_class>();
22 BOOST_HOF_STATIC_AUTO unary_unpack_reveal = boost::hof::reveal_adaptor<boost::hof::unpack_adaptor<u…
23 BOOST_HOF_STATIC_AUTO binary_unpack_reveal = boost::hof::reveal_adaptor<boost::hof::unpack_adaptor<…
28 …static_assert(noexcept(boost::hof::unpack(unary_class())(boost::hof::pack(3))), "noexcept unpack"); in BOOST_HOF_TEST_CASE()
29 static_assert(noexcept(unary_unpack(boost::hof::pack(3))), "noexcept unpack"); in BOOST_HOF_TEST_CASE()
30 …static_assert(noexcept(binary_unpack(boost::hof::pack(3), boost::hof::pack(2))), "noexcept unpack"… in BOOST_HOF_TEST_CASE()
36 BOOST_HOF_TEST_CHECK(3 == boost::hof::unpack(unary_class())(std::make_tuple(3))); in BOOST_HOF_TEST_CASE()
[all …]
Dplaceholders.cpp26 …static_assert(boost::hof::detail::is_default_constructible<boost::hof::operators::name>::value, "O…
41 …static_assert(boost::hof::detail::is_default_constructible<boost::hof::placeholder<1>>::value, "Pl… in BOOST_HOF_TEST_CASE()
42 …static_assert(boost::hof::detail::is_default_constructible<boost::hof::placeholder<2>>::value, "Pl… in BOOST_HOF_TEST_CASE()
43 …static_assert(boost::hof::detail::is_default_constructible<boost::hof::placeholder<3>>::value, "Pl… in BOOST_HOF_TEST_CASE()
52 auto simple_print = boost::hof::reveal(std::ref(std::cout) << boost::hof::_); in BOOST_HOF_TEST_CASE()
59 auto simple_print = boost::hof::reveal(std::ref(ss) << boost::hof::_); in BOOST_HOF_TEST_CASE()
67 …LACEHOLDER_TEST_CONSTEXPR auto f_square_add = boost::hof::_1 + boost::hof::lazy(square())(boost::h… in BOOST_HOF_TEST_CASE()
76 BOOST_HOF_PLACEHOLDER_TEST_CONSTEXPR auto f_invoke_2 = boost::hof::_1(3); in BOOST_HOF_TEST_CASE()
86 BOOST_HOF_PLACEHOLDER_TEST_CONSTEXPR auto f_add = boost::hof::_1 + boost::hof::_2; in BOOST_HOF_TEST_CASE()
90 …static_assert(boost::hof::detail::is_default_constructible<decltype(f_add)>::value, "Not default c… in BOOST_HOF_TEST_CASE()
[all …]
Dflow.cpp70 …static_assert(noexcept(boost::hof::flow(increment(), decrement(), increment())(3)), "noexcept flow… in BOOST_HOF_TEST_CASE()
76 BOOST_HOF_TEST_CHECK(boost::hof::flow(boost::hof::identity)(3) == 3); in BOOST_HOF_TEST_CASE()
77 BOOST_HOF_TEST_CHECK(boost::hof::flow(boost::hof::identity, boost::hof::identity)(3) == 3); in BOOST_HOF_TEST_CASE()
78 …BOOST_HOF_TEST_CHECK(boost::hof::flow(boost::hof::identity, boost::hof::identity, boost::hof::iden… in BOOST_HOF_TEST_CASE()
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()
87 int r = boost::hof::flow(increment(), decrement(), increment())(3); in BOOST_HOF_TEST_CASE()
89 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::flow(increment(), decrement(), increment())(3) == 4); in BOOST_HOF_TEST_CASE()
94 int r = boost::hof::flow(increment(), negate(), decrement(), decrement())(3); in BOOST_HOF_TEST_CASE()
[all …]
Dpartial.cpp11 static constexpr boost::hof::static_<boost::hof::partial_adaptor<binary_class> > binary_partial = {…
13 static constexpr boost::hof::static_<boost::hof::partial_adaptor<unary_class> > unary_partial = {};
15 static constexpr boost::hof::static_<boost::hof::partial_adaptor<mutable_class> > mutable_partial =…
17 static constexpr boost::hof::static_<boost::hof::partial_adaptor<void_class> > void_partial = {};
19 static constexpr boost::hof::static_<boost::hof::partial_adaptor<mono_class> > mono_partial = {};
21 static constexpr boost::hof::static_<boost::hof::partial_adaptor<move_class> > move_partial = {};
23 constexpr boost::hof::partial_adaptor<binary_class> binary_partial_constexpr = {};
25 constexpr boost::hof::partial_adaptor<unary_class> unary_partial_constexpr = {};
27 constexpr boost::hof::partial_adaptor<void_class> void_partial_constexpr = {};
29 constexpr boost::hof::partial_adaptor<mono_class> mono_partial_constexpr = {};
[all …]
Dflip.cpp13 BOOST_HOF_TEST_CHECK(3 == boost::hof::flip(boost::hof::_ - boost::hof::_)(2, 5)); in BOOST_HOF_TEST_CASE()
14 BOOST_HOF_STATIC_TEST_CHECK(3 == boost::hof::flip(boost::hof::_ - boost::hof::_)(2, 5)); in BOOST_HOF_TEST_CASE()
22 BOOST_HOF_TEST_CHECK(1 == boost::hof::arg(one{})(1, 2, 3, 4)); 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()
24 BOOST_HOF_TEST_CHECK(2 == boost::hof::flip(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()
27 BOOST_HOF_TEST_CHECK(2 == boost::hof::arg(two{})(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()
29 BOOST_HOF_TEST_CHECK(1 == boost::hof::flip(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()
[all …]
Dcompose.cpp71 …static_assert(noexcept(boost::hof::compose(increment(), decrement(), increment())(3)), "noexcept c… in BOOST_HOF_TEST_CASE()
77 BOOST_HOF_TEST_CHECK(boost::hof::compose(boost::hof::identity)(3) == 3); in BOOST_HOF_TEST_CASE()
78 BOOST_HOF_TEST_CHECK(boost::hof::compose(boost::hof::identity, boost::hof::identity)(3) == 3); in BOOST_HOF_TEST_CASE()
79 …BOOST_HOF_TEST_CHECK(boost::hof::compose(boost::hof::identity, boost::hof::identity, boost::hof::i… in BOOST_HOF_TEST_CASE()
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()
88 int r = boost::hof::compose(increment(), decrement(), increment())(3); in BOOST_HOF_TEST_CASE()
90 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::compose(increment(), decrement(), increment())(3) == 4); in BOOST_HOF_TEST_CASE()
95 int r = boost::hof::compose(increment(), negate(), decrement(), decrement())(3); in BOOST_HOF_TEST_CASE()
[all …]
Dlazy.cpp26 …static_assert(std::is_reference<decltype(boost::hof::detail::ref_transformer()(std::ref(i))(0,0,0)… in BOOST_HOF_TEST_CASE()
27 …static_assert(std::is_reference<decltype(boost::hof::detail::pick_transformer(std::ref(i))(0,0,0))… in BOOST_HOF_TEST_CASE()
28 …static_assert(std::is_reference<decltype(boost::hof::detail::lazy_transform(std::ref(i), boost::ho… in BOOST_HOF_TEST_CASE()
30 BOOST_HOF_TEST_CHECK(&boost::hof::detail::ref_transformer()(std::ref(i))(0,0,0) == &i); in BOOST_HOF_TEST_CASE()
31 BOOST_HOF_TEST_CHECK(&boost::hof::detail::pick_transformer(std::ref(i))(0,0,0) == &i); in BOOST_HOF_TEST_CASE()
32 …BOOST_HOF_TEST_CHECK(&boost::hof::detail::lazy_transform(std::ref(i), boost::hof::pack_basic(0,0,0… in BOOST_HOF_TEST_CASE()
39 BOOST_HOF_TEST_CHECK(boost::hof::detail::id_transformer()(i)(0,0,0) == i); in BOOST_HOF_TEST_CASE()
40 BOOST_HOF_TEST_CHECK(boost::hof::detail::pick_transformer(i)(0,0,0) == i); in BOOST_HOF_TEST_CASE()
41 BOOST_HOF_TEST_CHECK(boost::hof::detail::lazy_transform(i, boost::hof::pack_basic(0,0,0)) == i); in BOOST_HOF_TEST_CASE()
49 BOOST_HOF_TEST_CHECK(boost::hof::detail::bind_transformer()(fi)(0,0,0) == id(5)); in BOOST_HOF_TEST_CASE()
[all …]
Dtuple_transform.cpp26 …boost::hof::unpack(boost::hof::proj(f, boost::hof::construct<std::tuple>()))(boost::hof::forward<S…
35 … boost::hof::unpack(boost::hof::proj(f, boost::hof::pack()))(boost::hof::forward<Sequence>(s))
58 …TUPLE_TRANSFORM_STATIC_CHECK(tuple_transform(std::make_tuple(1, 2), boost::hof::_1 * boost::hof::_… in BOOST_HOF_TEST_CASE()
62 BOOST_HOF_TEST_CHECK(tuple_transform(x, boost::hof::identity) == x); \
63 TUPLE_TRANSFORM_STATIC_CHECK(tuple_transform(x, boost::hof::identity) == x);
74 … auto x = tuple_transform(std::make_tuple(std::unique_ptr<int>(new int(3))), boost::hof::identity); in BOOST_HOF_TEST_CASE()
77 … BOOST_HOF_TEST_CHECK(tuple_transform(x, *boost::hof::_1) == tuple_transform(y, *boost::hof::_1)); in BOOST_HOF_TEST_CASE()
81 BOOST_HOF_TEST_CHECK(tuple_transform(x, boost::hof::compose(f, g)) == tuple_transform(tuple_transfo…
82 TUPLE_TRANSFORM_STATIC_CHECK(tuple_transform(x, boost::hof::compose(f, g)) == tuple_transform(tuple…
86 …CHECK_COMPOSE(std::make_tuple(1, 2, 3, 4), boost::hof::_1 * boost::hof::_1, boost::hof::_1 + boost… in BOOST_HOF_TEST_CASE()
[all …]
Dapply_eval.cpp16 …BOOST_HOF_STATIC_TEST_CHECK(boost::hof::apply_eval(binary_class(), boost::hof::always(1), boost::h… in BOOST_HOF_TEST_CASE()
17 …BOOST_HOF_TEST_CHECK(boost::hof::apply_eval(binary_class(), []{ return 1; }, []{ return 2;}) == 3); in BOOST_HOF_TEST_CASE()
22 boost::hof::apply_eval(boost::hof::always(), boost::hof::always(1), boost::hof::always(2)); in BOOST_HOF_TEST_CASE()
27 …static_assert(noexcept(boost::hof::apply_eval(boost::hof::always(), boost::hof::always(1), boost:: in BOOST_HOF_TEST_CASE()
33 …BOOST_HOF_TEST_CHECK(boost::hof::apply_eval(boost::hof::_ - boost::hof::_, [&]{ return i++; }, [&]… in BOOST_HOF_TEST_CASE()
34 …BOOST_HOF_TEST_CHECK(boost::hof::apply_eval(boost::hof::_ - boost::hof::_, [&]{ return ++i; }, [&]… in BOOST_HOF_TEST_CASE()
47 boost::hof::apply_eval( in BOOST_HOF_TEST_CASE()
61 BOOST_HOF_TEST_CHECK(*boost::hof::apply_eval(&moveable, boost::hof::always(1)) == 1); in BOOST_HOF_TEST_CASE()
62 BOOST_HOF_TEST_CHECK(*boost::hof::apply_eval(&moveable, boost::hof::always(3)) == 3); in BOOST_HOF_TEST_CASE()
Dproj.cpp32 auto add = boost::hof::_ + boost::hof::_; in BOOST_HOF_TEST_CASE()
33 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::proj(select_x(), add)(foo(1), foo(2)) == 3); in BOOST_HOF_TEST_CASE()
36 …BOOST_HOF_TEST_CHECK(boost::hof::proj(boost::hof::mutable_(std::mem_fn(&foo::x)), add)(foo(1), foo… in BOOST_HOF_TEST_CASE()
37 …static_assert(boost::hof::detail::is_default_constructible<decltype(boost::hof::proj(select_x(), a… in BOOST_HOF_TEST_CASE()
45 auto add = boost::hof::_ + boost::hof::_; 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()
47 BOOST_HOF_TEST_CHECK(boost::hof::proj(&foo::x, add)(foo(1), foo(2)) == 3); in BOOST_HOF_TEST_CASE()
48 …static_assert(boost::hof::detail::is_default_constructible<decltype(boost::hof::proj(select_x(), a… in BOOST_HOF_TEST_CASE()
53 auto indirect_add = boost::hof::proj(*boost::hof::_, boost::hof::_ + boost::hof::_); in BOOST_HOF_TEST_CASE()
55 …static_assert(boost::hof::detail::is_default_constructible<decltype(indirect_add)>::value, "Not de… in BOOST_HOF_TEST_CASE()
[all …]
Drotate.cpp26 static_assert(noexcept(boost::hof::rotate(head{})(1, 2, 3, 4)), "noexcept rotate"); in BOOST_HOF_TEST_CASE()
27 …static_assert(noexcept(boost::hof::repeat(std::integral_constant<int, 5>{})(boost::hof::rotate)(he… in BOOST_HOF_TEST_CASE()
33 BOOST_HOF_TEST_CHECK(2 == boost::hof::rotate(head{})(1, 2, 3, 4)); in BOOST_HOF_TEST_CASE()
34 BOOST_HOF_STATIC_TEST_CHECK(2 == boost::hof::rotate(head{})(1, 2, 3, 4)); in BOOST_HOF_TEST_CASE()
39 …BOOST_HOF_TEST_CHECK(3 == boost::hof::compose(boost::hof::rotate, boost::hof::rotate)(head{})(1, 2… 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()
45 …BOOST_HOF_TEST_CHECK(6 == boost::hof::repeat(std::integral_constant<int, 5>{})(boost::hof::rotate)… 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()
51 BOOST_HOF_TEST_CHECK(3 == boost::hof::rotate(boost::hof::_ - boost::hof::_)(2, 5)); 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()
[all …]
Dpipable.cpp12 static constexpr boost::hof::static_<boost::hof::pipable_adaptor<binary_class> > binary_pipable = {…
14 static constexpr boost::hof::static_<boost::hof::pipable_adaptor<unary_class> > unary_pipable = {};
16 static constexpr boost::hof::static_<boost::hof::pipable_adaptor<mutable_class> > mutable_pipable =…
18 static constexpr boost::hof::static_<boost::hof::pipable_adaptor<void_class> > void_pipable = {};
20 static constexpr boost::hof::static_<boost::hof::pipable_adaptor<mono_class> > mono_pipable = {};
22 static constexpr boost::hof::static_<boost::hof::pipable_adaptor<move_class> > move_pipable = {};
24 constexpr boost::hof::pipable_adaptor<void_class> void_pipable_constexpr = {};
26 constexpr boost::hof::pipable_adaptor<binary_class> binary_pipable_constexpr = {};
28 constexpr boost::hof::pipable_adaptor<unary_class> unary_pipable_constexpr = {};
63 BOOST_HOF_TEST_CHECK(3 == (1 | boost::hof::pipable(move_class())(2))); in BOOST_HOF_TEST_CASE()
[all …]
Dreveal.cpp30 typedef boost::hof::first_of_adaptor<f1, f2, f3> f_type;
31 static constexpr boost::hof::static_<f_type> f = {};
35 BOOST_HOF_TEST_CHECK(boost::hof::reveal(f)(t1()) == 1); in BOOST_HOF_TEST_CASE()
36 BOOST_HOF_TEST_CHECK(boost::hof::reveal(f)(t2()) == 2); in BOOST_HOF_TEST_CASE()
37 BOOST_HOF_TEST_CHECK(boost::hof::reveal(f)(t3()) == 3); in BOOST_HOF_TEST_CASE()
40 …static_assert(boost::hof::is_invocable<boost::hof::reveal_adaptor<f_type>, t1>::value, "Invocable"… in BOOST_HOF_TEST_CASE()
41 …static_assert(boost::hof::is_invocable<boost::hof::reveal_adaptor<f_type>, t2>::value, "Invocable"… in BOOST_HOF_TEST_CASE()
42 …static_assert(boost::hof::is_invocable<boost::hof::reveal_adaptor<f_type>, t3>::value, "Invocable"… in BOOST_HOF_TEST_CASE()
44 …static_assert(!boost::hof::is_invocable<boost::hof::reveal_adaptor<f_type>, int>::value, "Invocabl… in BOOST_HOF_TEST_CASE()
49 static constexpr auto lam = boost::hof::first_of(
[all …]
Dmatch.cpp37 static constexpr boost::hof::static_<boost::hof::match_adaptor<int_class, foo_class> > fun = {};
62 static constexpr boost::hof::match_adaptor<int_class, foo_class> fun = {};
77 BOOST_HOF_TEST_CHECK(boost::hof::reveal(fun)(1) == 1); in BOOST_HOF_TEST_CASE()
78 BOOST_HOF_TEST_CHECK(boost::hof::reveal(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()
87 constexpr auto lam = boost::hof::match( in BOOST_HOF_TEST_CASE()
99 auto lam = boost::hof::match( in BOOST_HOF_TEST_CASE()
122 auto lam = boost::hof::match( in BOOST_HOF_TEST_CASE()
160 auto fun_move = boost::hof::match(int_move_class(), foo_move_class()); in BOOST_HOF_TEST_CASE()
[all …]
Dreverse_fold.cpp31 …static_assert(noexcept(boost::hof::reverse_fold(max_f(), 0)(2, 3, 4, 5)), "noexcept reverse_fold"); in BOOST_HOF_TEST_CASE()
32 …static_assert(noexcept(boost::hof::reverse_fold(sum_f(), 0)(2, 3, 4, 5)), "noexcept reverse_fold"); in BOOST_HOF_TEST_CASE()
33 …static_assert(!noexcept(boost::hof::reverse_fold(sum_f(), std::string())("hello", "-", "world")), … in BOOST_HOF_TEST_CASE()
39 BOOST_HOF_TEST_CHECK(boost::hof::reverse_fold(max_f(), 0)(2, 3, 4, 5) == 5); in BOOST_HOF_TEST_CASE()
40 BOOST_HOF_TEST_CHECK(boost::hof::reverse_fold(max_f(), 0)(5, 4, 3, 2) == 5); in BOOST_HOF_TEST_CASE()
41 BOOST_HOF_TEST_CHECK(boost::hof::reverse_fold(max_f(), 0)(2, 3, 5, 4) == 5); in BOOST_HOF_TEST_CASE()
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()
50 BOOST_HOF_TEST_CHECK(boost::hof::reverse_fold(max_f(), 0)() == 0); in BOOST_HOF_TEST_CASE()
[all …]
Dfold.cpp31 static_assert(noexcept(boost::hof::fold(max_f(), 0)(2, 3, 4, 5)), "noexcept fold"); in BOOST_HOF_TEST_CASE()
32 static_assert(noexcept(boost::hof::fold(sum_f(), 0)(2, 3, 4, 5)), "noexcept fold"); in BOOST_HOF_TEST_CASE()
33 …static_assert(!noexcept(boost::hof::fold(sum_f(), std::string())("hello", "-", "world")), "noexcep… in BOOST_HOF_TEST_CASE()
39 BOOST_HOF_TEST_CHECK(boost::hof::fold(max_f(), 0)(2, 3, 4, 5) == 5); in BOOST_HOF_TEST_CASE()
40 BOOST_HOF_TEST_CHECK(boost::hof::fold(max_f(), 0)(5, 4, 3, 2) == 5); in BOOST_HOF_TEST_CASE()
41 BOOST_HOF_TEST_CHECK(boost::hof::fold(max_f(), 0)(2, 3, 5, 4) == 5); in BOOST_HOF_TEST_CASE()
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()
50 BOOST_HOF_TEST_CHECK(boost::hof::fold(max_f(), 0)() == 0); in BOOST_HOF_TEST_CASE()
[all …]
Didentity.cpp14 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::identity(10) == 10); in BOOST_HOF_TEST_CASE()
15 BOOST_HOF_TEST_CHECK(boost::hof::identity(10) == 10); in BOOST_HOF_TEST_CASE()
21 BOOST_HOF_TEST_CHECK(boost::hof::identity(i) == 3); in BOOST_HOF_TEST_CASE()
22 BOOST_HOF_TEST_CHECK(&boost::hof::identity(i) == &i); in BOOST_HOF_TEST_CASE()
23 static_assert(std::is_lvalue_reference<decltype(boost::hof::identity(i))>::value, "Not lvalue"); in BOOST_HOF_TEST_CASE()
24 … static_assert(!std::is_lvalue_reference<decltype(boost::hof::identity(3))>::value, "Not rvalue"); in BOOST_HOF_TEST_CASE()
29 auto ls = boost::hof::identity({1, 2, 3, 4}); in BOOST_HOF_TEST_CASE()
36 …BOOST_HOF_TEST_CHECK(std::vector<int>(boost::hof::identity({1, 2, 3})) == std::vector<int>{1, 2, 3… in BOOST_HOF_TEST_CASE()
41 …static_assert(boost::hof::is_invocable<decltype(boost::hof::identity), int>::value, "Identiy calla… in BOOST_HOF_TEST_CASE()
42 …static_assert(!boost::hof::is_invocable<decltype(boost::hof::identity), int, int>::value, "Identiy… in BOOST_HOF_TEST_CASE()
[all …]
/third_party/boost/libs/hof/doc/html/_sources/doc/src/
Dadaptors.rst.txt11 ../../include/boost/hof/combine
12 ../../include/boost/hof/compose
13 ../../include/boost/hof/decorate
14 ../../include/boost/hof/first_of
15 ../../include/boost/hof/fix
16 ../../include/boost/hof/flip
17 ../../include/boost/hof/flow
18 ../../include/boost/hof/fold
19 ../../include/boost/hof/implicit
20 ../../include/boost/hof/indirect
[all …]
/third_party/boost/libs/hof/doc/src/
Dadaptors.rst11 ../../include/boost/hof/combine
12 ../../include/boost/hof/compose
13 ../../include/boost/hof/decorate
14 ../../include/boost/hof/first_of
15 ../../include/boost/hof/fix
16 ../../include/boost/hof/flip
17 ../../include/boost/hof/flow
18 ../../include/boost/hof/fold
19 ../../include/boost/hof/implicit
20 ../../include/boost/hof/indirect
[all …]

123456789