]>
git.proxmox.com Git - ceph.git/blob - 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)
5 #include <boost/hana/ext/std/vector.hpp>
7 #include <boost/hana/assert.hpp>
8 #include <boost/hana/tuple.hpp>
10 #include <laws/base.hpp>
11 #include <laws/comparable.hpp>
12 // #include <laws/functor.hpp>
13 #include <laws/orderable.hpp>
16 namespace hana
= boost::hana
;
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}
28 // auto eq_values = hana::make_tuple(hana::test::eq<0>{}, hana::test::eq<2>{});
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}
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};