mirror of
https://github.com/boostorg/hana.git
synced 2026-01-24 18:02:19 +00:00
47 lines
1.3 KiB
C++
47 lines
1.3 KiB
C++
/*
|
|
@copyright Louis Dionne 2015
|
|
Distributed under the Boost Software License, Version 1.0.
|
|
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
|
|
*/
|
|
|
|
#include <boost/hana/ext/std/vector.hpp>
|
|
|
|
#include <boost/hana/assert.hpp>
|
|
#include <boost/hana/tuple.hpp>
|
|
|
|
#include <laws/base.hpp>
|
|
#include <laws/comparable.hpp>
|
|
// #include <laws/functor.hpp>
|
|
#include <laws/orderable.hpp>
|
|
|
|
#include <vector>
|
|
using namespace boost::hana;
|
|
|
|
|
|
int main() {
|
|
auto eqs = make_tuple(
|
|
std::vector<test::eq<0>>{0}
|
|
, std::vector<test::eq<0>>{1}
|
|
, std::vector<test::eq<0>>{2}
|
|
, std::vector<test::eq<0>>{3}
|
|
, std::vector<test::eq<0>>{4}
|
|
);
|
|
|
|
// auto eq_values = make<tuple_tag>(test::eq<0>{}, test::eq<2>{});
|
|
|
|
auto ords = make_tuple(
|
|
std::vector<test::ord<0>>{0}
|
|
, std::vector<test::ord<0>>{1}
|
|
, std::vector<test::ord<0>>{2}
|
|
, std::vector<test::ord<0>>{3}
|
|
, std::vector<test::ord<0>>{4}
|
|
);
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
// Comparable, Orderable, Functor
|
|
//////////////////////////////////////////////////////////////////////////
|
|
test::TestComparable<ext::std::Vector>{eqs};
|
|
test::TestOrderable<ext::std::Vector>{ords};
|
|
// test::TestFunctor<ext::std::Vector>{eqs, eq_values};
|
|
}
|