• Home
  • Raw
  • Download

Lines Matching refs:hof

14 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()
43 BOOST_HOF_STATIC_TEST_CHECK(3 == boost::hof::unpack(unary_class())(std::make_tuple(3))); in BOOST_HOF_TEST_CASE()
51 BOOST_HOF_TEST_CHECK(3 == boost::hof::unpack(unary_class())(boost::hof::pack(3))); in BOOST_HOF_TEST_CASE()
52 BOOST_HOF_TEST_CHECK(3 == unary_unpack(boost::hof::pack(3))); in BOOST_HOF_TEST_CASE()
53 BOOST_HOF_TEST_CHECK(3 == unary_unpack_reveal(boost::hof::pack(3))); in BOOST_HOF_TEST_CASE()
55 BOOST_HOF_TEST_CHECK(3 == unary_unpack(boost::hof::pack_forward(ifu))); 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()
64 BOOST_HOF_TEST_CHECK(3 == boost::hof::unpack(binary_class())(std::make_tuple(1, 2))); in BOOST_HOF_TEST_CASE()
68 …BOOST_HOF_TEST_CHECK(3 == boost::hof::unpack(binary_class())(std::make_tuple(1), std::make_tuple(2… in BOOST_HOF_TEST_CASE()
72 …BOOST_HOF_TEST_CHECK(3 == boost::hof::unpack(binary_class())(std::make_tuple(1), std::make_tuple()… in BOOST_HOF_TEST_CASE()
76 …BOOST_HOF_TEST_CHECK(3 == boost::hof::unpack(binary_class())(std::make_tuple(), std::make_tuple(1)… in BOOST_HOF_TEST_CASE()
80 …BOOST_HOF_TEST_CHECK(3 == boost::hof::unpack(binary_class())(std::make_tuple(1), std::make_tuple()… 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()
89 …BOOST_HOF_STATIC_TEST_CHECK(3 == boost::hof::unpack(binary_class())(std::make_tuple(1), std::make_… in BOOST_HOF_TEST_CASE()
93 …BOOST_HOF_STATIC_TEST_CHECK(3 == boost::hof::unpack(binary_class())(std::make_tuple(1), std::make_… in BOOST_HOF_TEST_CASE()
97 …BOOST_HOF_STATIC_TEST_CHECK(3 == boost::hof::unpack(binary_class())(std::make_tuple(), std::make_t… in BOOST_HOF_TEST_CASE()
101 …BOOST_HOF_STATIC_TEST_CHECK(3 == boost::hof::unpack(binary_class())(std::make_tuple(1), std::make_… in BOOST_HOF_TEST_CASE()
109 auto p1 = boost::hof::pack_basic(1, 2); in BOOST_HOF_TEST_CASE()
110 static_assert(boost::hof::is_unpackable<decltype(p1)>::value, "Not unpackable"); in BOOST_HOF_TEST_CASE()
111 static_assert(boost::hof::is_unpackable<decltype((p1))>::value, "Not unpackable"); in BOOST_HOF_TEST_CASE()
113 auto p2 = boost::hof::pack_forward(1, 2); in BOOST_HOF_TEST_CASE()
114 static_assert(boost::hof::is_unpackable<decltype(p2)>::value, "Not unpackable"); in BOOST_HOF_TEST_CASE()
115 static_assert(boost::hof::is_unpackable<decltype((p2))>::value, "Not unpackable"); in BOOST_HOF_TEST_CASE()
117 auto p3 = boost::hof::pack(1, 2); in BOOST_HOF_TEST_CASE()
118 static_assert(boost::hof::is_unpackable<decltype(p3)>::value, "Not unpackable"); in BOOST_HOF_TEST_CASE()
119 static_assert(boost::hof::is_unpackable<decltype((p3))>::value, "Not unpackable"); in BOOST_HOF_TEST_CASE()
121 static_assert(boost::hof::is_unpackable<std::tuple<int>>::value, "Not unpackable"); in BOOST_HOF_TEST_CASE()
123 static_assert(!boost::hof::is_unpackable<int>::value, "Unpackable"); in BOOST_HOF_TEST_CASE()
124 static_assert(!boost::hof::is_unpackable<void>::value, "Unpackable"); in BOOST_HOF_TEST_CASE()
130 static_assert(boost::hof::is_unpackable<tuple_type>::value, "Not unpackable"); in BOOST_HOF_TEST_CASE()
131 static_assert(boost::hof::is_unpackable<tuple_type&>::value, "Not unpackable"); in BOOST_HOF_TEST_CASE()
132 static_assert(boost::hof::is_unpackable<const tuple_type&>::value, "Not unpackable"); in BOOST_HOF_TEST_CASE()
133 static_assert(boost::hof::is_unpackable<tuple_type&&>::value, "Not unpackable"); in BOOST_HOF_TEST_CASE()
137 BOOST_HOF_STATIC_AUTO lambda_unary_unpack = boost::hof::unpack(BOOST_HOF_STATIC_LAMBDA(int x)
149 BOOST_HOF_TEST_CHECK(3 == lambda_unary_unpack(boost::hof::pack(3))); in BOOST_HOF_TEST_CASE()
166 static constexpr boost::hof::static_<boost::hof::unpack_adaptor<unary_move> > unary_move_unpack = {…
170 BOOST_HOF_TEST_CHECK(3 == boost::hof::unpack(unary_move())(std::make_tuple(1))); in BOOST_HOF_TEST_CASE()
176 BOOST_HOF_TEST_CHECK(3 == boost::hof::unpack(unary_move())(boost::hof::pack(1))); in BOOST_HOF_TEST_CASE()
177 BOOST_HOF_TEST_CHECK(3 == unary_move_unpack(boost::hof::pack(1))); in BOOST_HOF_TEST_CASE()
191 …BOOST_HOF_TEST_CHECK(3 == boost::hof::unpack(indirect_sum_f())(boost::hof::pack_basic(MAKE_UNIQUE_… in BOOST_HOF_TEST_CASE()
192 …BOOST_HOF_TEST_CHECK(3 == boost::hof::unpack(indirect_sum_f())(boost::hof::pack_forward(MAKE_UNIQU… in BOOST_HOF_TEST_CASE()
193 …BOOST_HOF_TEST_CHECK(3 == boost::hof::unpack(indirect_sum_f())(boost::hof::pack(MAKE_UNIQUE_PTR(1)… in BOOST_HOF_TEST_CASE()
194 …BOOST_HOF_TEST_CHECK(3 == boost::hof::unpack(indirect_sum_f())(std::make_tuple(MAKE_UNIQUE_PTR(1),… in BOOST_HOF_TEST_CASE()
207 static constexpr boost::hof::unpack_adaptor<deducer> deduce = {};
219 STATIC_ASSERT_SAME(deduce_types<int, int>, decltype(deduce(boost::hof::pack_basic(1, 2)))); in BOOST_HOF_TEST_CASE()
220 …C_ASSERT_SAME(deduce_types<int, int>, decltype(deduce(boost::hof::pack_basic(1), boost::hof::pack_… in BOOST_HOF_TEST_CASE()
221 …ce_types<int, int, int>, decltype(deduce(boost::hof::pack_basic(1), boost::hof::pack_basic(2), boo… in BOOST_HOF_TEST_CASE()
230 auto f = boost::hof::unpack(boost::hof::always(1)); in BOOST_HOF_TEST_CASE()
232 …static_assert(!boost::hof::is_invocable<decltype(f), not_unpackable>::value, "SFINAE for unpack fa… in BOOST_HOF_TEST_CASE()
238 namespace boost { namespace hof { namespace
253 BOOST_HOF_TEST_CHECK(boost::hof::unpack(boost::hof::identity)(simple_unpackable{}) == 1); in BOOST_HOF_TEST_CASE()
254 BOOST_HOF_STATIC_TEST_CHECK(boost::hof::unpack(boost::hof::identity)(simple_unpackable{}) == 1); in BOOST_HOF_TEST_CASE()