]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/test/ext/std/integer_sequence/drop_front_exactly.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/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>
12 namespace hana
= boost::hana
;
16 BOOST_HANA_CONSTANT_CHECK(hana::equal(
17 hana::drop_front_exactly(std::index_sequence
<0>{}),
18 std::index_sequence
<>{}
20 BOOST_HANA_CONSTANT_CHECK(hana::equal(
21 hana::drop_front_exactly(std::index_sequence
<0, 1>{}),
22 std::index_sequence
<1>{}
24 BOOST_HANA_CONSTANT_CHECK(hana::equal(
25 hana::drop_front_exactly(std::index_sequence
<0, 1, 2>{}),
26 std::index_sequence
<1, 2>{}
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>{}
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>{}
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>{}