]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/example/map/symmetric_difference.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/map.hpp>
7 #include <boost/hana/symmetric_difference.hpp>
9 namespace hana
= boost::hana
;
12 constexpr auto m1
= hana::make_map(
13 hana::make_pair(hana::type_c
<int>, 1),
14 hana::make_pair(hana::type_c
<bool>, hana::true_c
)
17 constexpr auto m2
= hana::make_map(
18 hana::make_pair(hana::type_c
<float>, 1.0),
19 hana::make_pair(hana::type_c
<long long>, 2LL),
20 hana::make_pair(hana::type_c
<int>, 3)
23 constexpr auto result_m
= hana::make_map(
24 hana::make_pair(hana::type_c
<bool>, hana::true_c
),
25 hana::make_pair(hana::type_c
<float>, 1.0),
26 hana::make_pair(hana::type_c
<long long>, 2LL)
30 BOOST_HANA_RUNTIME_CHECK(
31 hana::symmetric_difference(m1
, m2
) == result_m