/third_party/boost/libs/hana/test/issues/ |
D | github_221.cpp | 34 namespace hana = boost::hana; 37 constexpr auto increment = hana::partial(hana::plus, hana::int_c<1>); 43 constexpr auto x = hana::adjust_if(hana::make_tuple(hana::int_c<0>), hana::id, increment); in main() 44 BOOST_HANA_CONSTANT_CHECK(hana::equal(x, hana::make_tuple(hana::int_c<0>))); in main() 46 constexpr auto y = hana::adjust_if(hana::make_tuple(hana::int_c<1>), hana::id, increment); in main() 47 BOOST_HANA_CONSTANT_CHECK(hana::equal(y, hana::make_tuple(hana::int_c<2>))); in main() 49 constexpr auto z = hana::adjust_if(hana::make_tuple(hana::int_c<3>), hana::id, increment); in main() 50 BOOST_HANA_CONSTANT_CHECK(hana::equal(z, hana::make_tuple(hana::int_c<4>))); in main() 52 constexpr auto l = hana::adjust_if(hana::tuple_c<int, 3>, hana::id, increment); in main() 53 BOOST_HANA_CONSTANT_CHECK(hana::equal(l, hana::make_tuple(hana::int_c<4>))); in main() [all …]
|
/third_party/boost/libs/hana/test/range/ |
D | drop_front.cpp | 11 namespace hana = boost::hana; 15 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 16 hana::drop_front(hana::make_range(hana::int_c<0>, hana::int_c<0>), hana::int_c<0>), in main() 17 hana::make_range(hana::int_c<0>, hana::int_c<0>) in main() 19 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 20 hana::drop_front(hana::make_range(hana::int_c<0>, hana::int_c<0>), hana::int_c<1>), in main() 21 hana::make_range(hana::int_c<0>, hana::int_c<0>) in main() 23 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 24 hana::drop_front(hana::make_range(hana::int_c<0>, hana::int_c<0>), hana::int_c<2>), in main() 25 hana::make_range(hana::int_c<0>, hana::int_c<0>) in main() [all …]
|
D | drop_front_exactly.cpp | 11 namespace hana = boost::hana; 15 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 16 hana::drop_front_exactly(hana::make_range(hana::int_c<0>, hana::int_c<0>), hana::int_c<0>), in main() 17 hana::make_range(hana::int_c<0>, hana::int_c<0>) in main() 20 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 21 hana::drop_front_exactly(hana::make_range(hana::int_c<0>, hana::int_c<1>), hana::int_c<0>), in main() 22 hana::make_range(hana::int_c<0>, hana::int_c<1>) in main() 24 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 25 hana::drop_front_exactly(hana::make_range(hana::int_c<0>, hana::int_c<1>), hana::int_c<1>), in main() 26 hana::make_range(hana::int_c<1>, hana::int_c<1>) in main() [all …]
|
D | sum.cpp | 11 namespace hana = boost::hana; 15 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 16 hana::sum<>(hana::make_range(hana::int_c<-3>, hana::int_c<-3>)), in main() 17 hana::int_c<0> in main() 19 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 20 hana::sum<>(hana::make_range(hana::int_c<-3>, hana::int_c<-2>)), in main() 21 hana::int_c<-3> in main() 23 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 24 hana::sum<>(hana::make_range(hana::int_c<-3>, hana::int_c<-1>)), in main() 25 hana::int_c<-3 + -2> in main() [all …]
|
D | product.cpp | 11 namespace hana = boost::hana; 15 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 16 hana::product<>(hana::make_range(hana::int_c<-3>, hana::int_c<-3>)), in main() 17 hana::int_c<1> in main() 19 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 20 hana::product<>(hana::make_range(hana::int_c<-3>, hana::int_c<-2>)), in main() 21 hana::int_c<-3> in main() 23 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 24 hana::product<>(hana::make_range(hana::int_c<-3>, hana::int_c<-1>)), in main() 25 hana::int_c<-3 * -2> in main() [all …]
|
D | equal.cpp | 11 namespace hana = boost::hana; 16 hana::make_range(hana::int_c<0>, hana::int_c<0>) == in main() 17 hana::make_range(hana::int_c<0>, hana::int_c<0>) in main() 20 hana::make_range(hana::int_c<0>, hana::int_c<4>) != in main() 21 hana::make_range(hana::int_c<0>, hana::int_c<0>) in main() 24 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 25 hana::make_range(hana::int_c<0>, hana::int_c<0>), in main() 26 hana::make_range(hana::int_c<0>, hana::int_c<0>) in main() 28 BOOST_HANA_CONSTANT_CHECK(hana::not_(hana::equal( in main() 29 hana::make_range(hana::int_c<0>, hana::int_c<0>), in main() [all …]
|
D | find.cpp | 14 namespace hana = boost::hana; 18 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 19 hana::find(hana::make_range(hana::int_c<0>, hana::int_c<0>), cnumeric<int, 0>), in main() 20 hana::nothing in main() 23 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 24 hana::find(hana::make_range(hana::int_c<0>, hana::int_c<1>), cnumeric<int, 0>), in main() 25 hana::just(hana::int_c<0>) in main() 28 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 29 hana::find(hana::make_range(hana::int_c<0>, hana::int_c<10>), cnumeric<int, 3>), in main() 30 hana::just(hana::int_c<3>) in main() [all …]
|
/third_party/boost/libs/hana/test/ |
D | lazy.cpp | 32 namespace hana = boost::hana; 33 using hana::test::ct_eq; 36 namespace boost { namespace hana { namespace 44 { return hana::equal(hana::eval(x), hana::eval(y)); } in apply() 53 hana::test::_injection<0> f{}; in main() 55 auto eqs = hana::make_tuple( in main() 56 hana::make_lazy(ct_eq<0>{}), in main() 57 hana::make_lazy(ct_eq<1>{}), in main() 58 hana::make_lazy(ct_eq<2>{}) in main() 60 auto eq_elems = hana::make_tuple(ct_eq<0>{}, ct_eq<1>{}, ct_eq<1>{}); in main() [all …]
|
/third_party/boost/libs/hana/test/experimental/types/ |
D | drop_front.cpp | 10 namespace hana = boost::hana; 16 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 17 hana::drop_front(hana::experimental::types<>{}, hana::size_c<0>), in main() 18 hana::experimental::types<>{} in main() 20 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 21 hana::drop_front(hana::experimental::types<>{}, hana::size_c<1>), in main() 22 hana::experimental::types<>{} in main() 25 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 26 hana::drop_front(hana::experimental::types<x<0>>{}, hana::size_c<0>), in main() 27 hana::experimental::types<x<0>>{} in main() [all …]
|
/third_party/boost/libs/hana/test/integral_constant/ |
D | hash.cpp | 14 namespace hana = boost::hana; 20 BOOST_HANA_CONSTANT_ASSERT(hana::equal( in main() 21 hana::hash(hana::integral_c<unsigned char, 10>), in main() 22 hana::type_c<hana::integral_constant<unsigned long long, 10>> in main() 24 BOOST_HANA_CONSTANT_ASSERT(hana::equal( in main() 25 hana::hash(hana::integral_c<unsigned short, 10>), in main() 26 hana::type_c<hana::integral_constant<unsigned long long, 10>> in main() 28 BOOST_HANA_CONSTANT_ASSERT(hana::equal( in main() 29 hana::hash(hana::integral_c<unsigned int, 10>), in main() 30 hana::type_c<hana::integral_constant<unsigned long long, 10>> in main() [all …]
|
D | operators.cpp | 23 namespace hana = boost::hana; 27 BOOST_HANA_CONSTANT_CHECK(+hana::int_c<1> == hana::int_c<1>); 28 BOOST_HANA_CONSTANT_CHECK(-hana::int_c<1> == hana::int_c<-1>); 29 BOOST_HANA_CONSTANT_CHECK(hana::int_c<1> + hana::int_c<2> == hana::int_c<3>); 30 BOOST_HANA_CONSTANT_CHECK(hana::int_c<1> - hana::int_c<2> == hana::int_c<-1>); 31 BOOST_HANA_CONSTANT_CHECK(hana::int_c<3> * hana::int_c<2> == hana::int_c<6>); 32 BOOST_HANA_CONSTANT_CHECK(hana::int_c<6> / hana::int_c<3> == hana::int_c<2>); 33 BOOST_HANA_CONSTANT_CHECK(hana::int_c<6> % hana::int_c<4> == hana::int_c<2>); 34 BOOST_HANA_CONSTANT_CHECK(~hana::int_c<6> == hana::int_c<~6>); 35 BOOST_HANA_CONSTANT_CHECK((hana::int_c<6> & hana::int_c<3>) == hana::int_c<6 & 3>); [all …]
|
/third_party/boost/libs/hana/test/_include/auto/ |
D | unfolds.hpp | 25 namespace hana = boost::hana; in __anonb1da4ed20102() 27 hana::test::_injection<0> f{}; in __anonb1da4ed20102() 30 return hana::if_(hana::equal(stop, x), in __anonb1da4ed20102() 31 hana::nothing, in __anonb1da4ed20102() 32 hana::just(::minimal_product(x + hana::int_c<1>, f(x))) in __anonb1da4ed20102() 37 BOOST_HANA_CONSTANT_CHECK(hana::equal( in __anonb1da4ed20102() 38 hana::unfold_left<TUPLE_TAG>(hana::int_c<0>, stop_at(hana::int_c<0>)), in __anonb1da4ed20102() 41 BOOST_HANA_CONSTANT_CHECK(hana::equal( in __anonb1da4ed20102() 42 hana::unfold_left<TUPLE_TAG>(hana::int_c<0>, stop_at(hana::int_c<1>)), in __anonb1da4ed20102() 43 MAKE_TUPLE(f(hana::int_c<0>)) in __anonb1da4ed20102() [all …]
|
D | drop_front.hpp | 19 namespace hana = boost::hana; in __anonb4d20f140102() 20 using hana::test::ct_eq; in __anonb4d20f140102() 22 BOOST_HANA_CONSTANT_CHECK(hana::equal( in __anonb4d20f140102() 23 hana::drop_front(MAKE_TUPLE(), hana::size_c<0>), in __anonb4d20f140102() 26 BOOST_HANA_CONSTANT_CHECK(hana::equal( in __anonb4d20f140102() 27 hana::drop_front(MAKE_TUPLE(), hana::size_c<1>), in __anonb4d20f140102() 30 BOOST_HANA_CONSTANT_CHECK(hana::equal( in __anonb4d20f140102() 31 hana::drop_front(MAKE_TUPLE(), hana::size_c<2>), in __anonb4d20f140102() 35 BOOST_HANA_CONSTANT_CHECK(hana::equal( in __anonb4d20f140102() 36 hana::drop_front(MAKE_TUPLE(ct_eq<0>{}), hana::size_c<0>), in __anonb4d20f140102() [all …]
|
D | slice.hpp | 23 namespace hana = boost::hana; in __anon22dd70270102() 24 using hana::test::ct_eq; in __anon22dd70270102() 32 BOOST_HANA_CONSTANT_CHECK(hana::equal( in __anon22dd70270102() 33 hana::slice(MAKE_TUPLE(), in __anon22dd70270102() 37 BOOST_HANA_CONSTANT_CHECK(hana::equal( in __anon22dd70270102() 38 hana::slice(MAKE_TUPLE(undefined{}), in __anon22dd70270102() 42 BOOST_HANA_CONSTANT_CHECK(hana::equal( in __anon22dd70270102() 43 hana::slice(MAKE_TUPLE(undefined{}, undefined{}), in __anon22dd70270102() 48 BOOST_HANA_CONSTANT_CHECK(hana::equal( in __anon22dd70270102() 49 hana::slice(MAKE_TUPLE(ct_eq<0>{}), in __anon22dd70270102() [all …]
|
D | remove_range.hpp | 18 namespace hana = boost::hana; in __anon748da5110102() 19 using hana::test::ct_eq; in __anon748da5110102() 21 BOOST_HANA_CONSTANT_CHECK(hana::equal( in __anon748da5110102() 22 hana::remove_range(MAKE_TUPLE(), hana::size_c<0>, hana::size_c<0>), in __anon748da5110102() 25 BOOST_HANA_CONSTANT_CHECK(hana::equal( in __anon748da5110102() 26 hana::remove_range(MAKE_TUPLE(), hana::size_c<1>, hana::size_c<1>), in __anon748da5110102() 29 BOOST_HANA_CONSTANT_CHECK(hana::equal( in __anon748da5110102() 30 hana::remove_range(MAKE_TUPLE(), hana::size_c<2>, hana::size_c<2>), in __anon748da5110102() 34 BOOST_HANA_CONSTANT_CHECK(hana::equal( in __anon748da5110102() 35 hana::remove_range(MAKE_TUPLE(ct_eq<0>{}), hana::size_c<0>, hana::size_c<0>), in __anon748da5110102() [all …]
|
/third_party/boost/libs/hana/test/numeric/ |
D | main.hpp | 45 namespace hana = boost::hana; 58 hana::test::_injection<0> f{}; in main() 64 BOOST_HANA_CONSTEXPR_CHECK(hana::equal(x, x)); in main() 65 BOOST_HANA_CONSTEXPR_CHECK(hana::not_(hana::equal(x, y))); in main() 70 BOOST_HANA_CONSTEXPR_CHECK(hana::not_equal(x, y)); in main() 71 BOOST_HANA_CONSTEXPR_CHECK(hana::not_(hana::not_equal(x, x))); in main() 76 BOOST_HANA_CONSTEXPR_CHECK(hana::equal( in main() 77 hana::comparing(f)(x, x), in main() 78 hana::equal(f(x), f(x)) in main() 81 BOOST_HANA_CONSTEXPR_CHECK(hana::equal( in main() [all …]
|
/third_party/boost/libs/hana/test/type/ |
D | traits.cpp | 10 namespace hana = boost::hana; 15 constexpr auto e = hana::type_c<Enumeration>; 16 constexpr auto s = hana::type_c<Structure>; 26 static_assert(!hana::traits::is_void(s), "the traits should be compile-time checkable"); in main() 27 hana::traits::is_null_pointer(s); in main() 28 hana::traits::is_integral(s); in main() 29 hana::traits::is_floating_point(s); in main() 30 hana::traits::is_array(s); in main() 31 hana::traits::is_enum(s); in main() 32 hana::traits::is_union(s); in main() [all …]
|
D | decltype.cpp | 8 namespace hana = boost::hana; 19 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 20 hana::decltype_(T{}), in main() 21 hana::type_c<T> in main() 24 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 25 hana::decltype_(t), in main() 26 hana::type_c<T> in main() 35 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 36 hana::decltype_(static_cast<T&>(t)), in main() 37 hana::type_c<T> in main() [all …]
|
D | typeid.cpp | 8 namespace hana = boost::hana; 19 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 20 hana::typeid_(T{}), in main() 21 hana::type_c<T> in main() 24 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 25 hana::typeid_(t), in main() 26 hana::type_c<T> in main() 35 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 36 hana::typeid_(static_cast<T&>(t)), in main() 37 hana::type_c<T> in main() [all …]
|
/third_party/boost/libs/hana/test/concept/constant/ |
D | logical.cpp | 19 namespace hana = boost::hana; 25 constexpr auto bools = hana::make_tuple( in main() 30 hana::test::TestLogical<minimal_constant_tag<bool>>{bools}; in main() 38 BOOST_HANA_CONSTANT_CHECK(hana::equal(hana::not_(true_), false_)); in main() 39 BOOST_HANA_CONSTANT_CHECK(hana::equal(hana::not_(false_), true_)); in main() 44 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 45 hana::and_(true_), in main() 48 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 49 hana::and_(false_), in main() 53 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() [all …]
|
/third_party/boost/libs/hana/test/detail/ |
D | any_of.cpp | 8 namespace hana = boost::hana; 17 static_assert(!hana::detail::any_of<is_even>::value, ""); 18 static_assert(!hana::detail::any_of<is_even, hana::int_<1>>::value, ""); 19 static_assert(!hana::detail::any_of<is_even, hana::int_<1>, hana::int_<3>>::value, ""); 20 static_assert(!hana::detail::any_of<is_even, hana::int_<1>, hana::int_<3>, hana::int_<5>>::value, "… 21 static_assert(!hana::detail::any_of<is_even, hana::int_<1>, hana::int_<3>, hana::int_<5>, hana::int… 23 static_assert(hana::detail::any_of<is_even, hana::int_<0>>::value, ""); 24 static_assert(hana::detail::any_of<is_even, hana::int_<0>, hana::int_<2>>::value, ""); 25 static_assert(hana::detail::any_of<is_even, hana::int_<0>, hana::int_<2>, hana::int_<4>>::value, ""… 26 static_assert(hana::detail::any_of<is_even, hana::int_<0>, hana::int_<2>, hana::int_<4>, hana::int_… [all …]
|
/third_party/boost/libs/hana/test/optional/ |
D | laws.cpp | 18 namespace hana = boost::hana; 19 using hana::test::ct_eq; 20 using hana::test::ct_ord; 24 auto ords = hana::make_tuple( in main() 25 hana::nothing, in main() 26 hana::just(ct_ord<0>{}), in main() 27 hana::just(ct_ord<1>{}), in main() 28 hana::just(ct_ord<2>{}) in main() 31 auto eqs = hana::make_tuple( in main() 32 hana::nothing, in main() [all …]
|
/third_party/boost/libs/hana/test/tuple/ |
D | pair_interop.cpp | 10 namespace hana = boost::hana; 25 hana::tuple<hana::pair<empty1, empty2>> t{}; in main() 26 hana::first(hana::at_c<0>(t)); in main() 27 hana::second(hana::at_c<0>(t)); in main() 30 hana::tuple<hana::pair<int, empty2>> t{}; in main() 31 hana::first(hana::at_c<0>(t)); in main() 32 hana::second(hana::at_c<0>(t)); in main() 35 hana::tuple<hana::pair<int, int>> t{}; in main() 36 hana::first(hana::at_c<0>(t)); in main() 37 hana::second(hana::at_c<0>(t)); in main() [all …]
|
D | unpack.cpp | 12 namespace hana = boost::hana; 13 using hana::test::ct_eq; 25 hana::test::_injection<0> f{}; in main() 28 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 29 hana::unpack(hana::make_tuple(), f), in main() 32 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 33 hana::unpack(hana::make_tuple(ct_eq<0>{}), f), in main() 36 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() 37 hana::unpack(hana::make_tuple(ct_eq<0>{}, ct_eq<1>{}), f), in main() 40 BOOST_HANA_CONSTANT_CHECK(hana::equal( in main() [all …]
|
/third_party/boost/libs/hana/test/map/ |
D | at_key.collisions.cpp | 15 namespace hana = boost::hana; 23 namespace boost { namespace hana { namespace 27 return hana::type_c<the_hash>; in apply() 34 return hana::type_c<the_hash>; in apply() 41 return hana::true_c; in apply() 48 return hana::true_c; in apply() 57 BOOST_HANA_CONSTANT_CHECK(hana::equal(key1, key1)); in main() 58 BOOST_HANA_CONSTANT_CHECK(hana::equal(key2, key2)); in main() 59 BOOST_HANA_CONSTANT_CHECK(hana::not_(hana::equal(key1, key2))); in main() 62 BOOST_HANA_CONSTANT_CHECK(hana::equal(hana::hash(key1), hana::hash(key2))); in main() [all …]
|