]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/test/ext/std/vector.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / hana / test / ext / std / vector.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)
4
5 #include <boost/hana/ext/std/vector.hpp>
6
7 #include <boost/hana/assert.hpp>
8 #include <boost/hana/tuple.hpp>
9
10 #include <laws/base.hpp>
11 #include <laws/comparable.hpp>
12 // #include <laws/functor.hpp>
13 #include <laws/orderable.hpp>
14
15 #include <vector>
16 namespace hana = boost::hana;
17
18
19 int main() {
20 auto eqs = hana::make_tuple(
21 std::vector<hana::test::eq<0>>{0}
22 , std::vector<hana::test::eq<0>>{1}
23 , std::vector<hana::test::eq<0>>{2}
24 , std::vector<hana::test::eq<0>>{3}
25 , std::vector<hana::test::eq<0>>{4}
26 );
27
28 // auto eq_values = hana::make_tuple(hana::test::eq<0>{}, hana::test::eq<2>{});
29
30 auto ords = hana::make_tuple(
31 std::vector<hana::test::ord<0>>{0}
32 , std::vector<hana::test::ord<0>>{1}
33 , std::vector<hana::test::ord<0>>{2}
34 , std::vector<hana::test::ord<0>>{3}
35 , std::vector<hana::test::ord<0>>{4}
36 );
37
38 //////////////////////////////////////////////////////////////////////////
39 // Comparable, Orderable, Functor
40 //////////////////////////////////////////////////////////////////////////
41 hana::test::TestComparable<hana::ext::std::vector_tag>{eqs};
42 hana::test::TestOrderable<hana::ext::std::vector_tag>{ords};
43 // hana::test::TestFunctor<hana::ext::std::vector_tag>{eqs, eq_values};
44 }