]>
Commit | Line | Data |
---|---|---|
b32b8144 | 1 | // Copyright Louis Dionne 2013-2017 |
7c673cae FG |
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/assert.hpp> | |
6 | #include <boost/hana/drop_front_exactly.hpp> | |
7 | #include <boost/hana/equal.hpp> | |
8 | #include <boost/hana/ext/std/integer_sequence.hpp> | |
9 | #include <boost/hana/integral_constant.hpp> | |
10 | ||
11 | #include <utility> | |
12 | namespace hana = boost::hana; | |
13 | ||
14 | ||
15 | int main() { | |
16 | BOOST_HANA_CONSTANT_CHECK(hana::equal( | |
17 | hana::drop_front_exactly(std::index_sequence<0>{}), | |
18 | std::index_sequence<>{} | |
19 | )); | |
20 | BOOST_HANA_CONSTANT_CHECK(hana::equal( | |
21 | hana::drop_front_exactly(std::index_sequence<0, 1>{}), | |
22 | std::index_sequence<1>{} | |
23 | )); | |
24 | BOOST_HANA_CONSTANT_CHECK(hana::equal( | |
25 | hana::drop_front_exactly(std::index_sequence<0, 1, 2>{}), | |
26 | std::index_sequence<1, 2>{} | |
27 | )); | |
28 | ||
29 | ||
30 | BOOST_HANA_CONSTANT_CHECK(hana::equal( | |
31 | hana::drop_front_exactly(std::index_sequence<0, 1, 2>{}, hana::size_c<2>), | |
32 | std::index_sequence<2>{} | |
33 | )); | |
34 | ||
35 | BOOST_HANA_CONSTANT_CHECK(hana::equal( | |
36 | hana::drop_front_exactly(std::index_sequence<0, 1, 2, 3>{}, hana::size_c<2>), | |
37 | std::index_sequence<2, 3>{} | |
38 | )); | |
39 | ||
40 | BOOST_HANA_CONSTANT_CHECK(hana::equal( | |
41 | hana::drop_front_exactly(std::index_sequence<0, 1, 2, 3>{}, hana::size_c<3>), | |
42 | std::index_sequence<3>{} | |
43 | )); | |
44 | } |