]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/test/map/intersection.cpp
1 // Copyright Louis Dionne 2013-2017
2 // Distributed under the Boost Software License, Version 1.0.
3 // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
5 #include <boost/hana/assert.hpp>
6 #include <boost/hana/equal.hpp>
7 #include <boost/hana/intersection.hpp>
8 #include <boost/hana/map.hpp>
10 #include <laws/base.hpp>
11 #include <support/minimal_product.hpp>
12 namespace hana
= boost::hana
;
16 auto key() { return hana::test::ct_eq
<i
>{}; }
19 auto val() { return hana::test::ct_eq
<-i
>{}; }
21 template <int i
, int j
>
22 auto p() { return ::minimal_product(key
<i
>(), val
<j
>()); }
25 BOOST_HANA_CONSTANT_CHECK(hana::equal(
33 BOOST_HANA_CONSTANT_CHECK(hana::equal(
35 hana::make_map(p
<1, 1>()),
41 BOOST_HANA_CONSTANT_CHECK(hana::equal(
44 hana::make_map(p
<1, 1>())
49 BOOST_HANA_CONSTANT_CHECK(hana::equal(
51 hana::make_map(p
<1, 1>()),
52 hana::make_map(p
<1, 2>())
54 hana::make_map(p
<1, 1>())
57 BOOST_HANA_CONSTANT_CHECK(hana::equal(
72 BOOST_HANA_CONSTANT_CHECK(hana::equal(
87 BOOST_HANA_CONSTANT_CHECK(hana::equal(