]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/test/ext/boost/mpl/integral_c/arithmetic.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / hana / test / ext / boost / mpl / integral_c / arithmetic.cpp
1 // Copyright Louis Dionne 2013-2016
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)
4
5 #include <boost/hana/ext/boost/mpl/integral_c.hpp>
6
7 #include <boost/hana/tuple.hpp>
8
9 #include <laws/euclidean_ring.hpp>
10 #include <laws/group.hpp>
11 #include <laws/monoid.hpp>
12 #include <laws/ring.hpp>
13
14 #include <boost/mpl/int.hpp>
15 #include <boost/mpl/integral_c.hpp>
16 namespace hana = boost::hana;
17 namespace mpl = boost::mpl;
18
19
20 int main() {
21 auto ints = hana::make_tuple(
22 mpl::int_<-10>{}, mpl::int_<-2>{}, mpl::integral_c<int, 0>{},
23 mpl::integral_c<int, 1>{}, mpl::integral_c<int, 3>{}
24 );
25
26 hana::test::TestMonoid<hana::ext::boost::mpl::integral_c_tag<int>>{ints};
27 hana::test::TestGroup<hana::ext::boost::mpl::integral_c_tag<int>>{ints};
28 hana::test::TestRing<hana::ext::boost::mpl::integral_c_tag<int>>{ints};
29 hana::test::TestEuclideanRing<hana::ext::boost::mpl::integral_c_tag<int>>{ints};
30 }