]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/hana/test/ext/std/array/foldable.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / hana / test / ext / std / array / foldable.cpp
CommitLineData
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/ext/std/array.hpp>
6
7#include <boost/hana/tuple.hpp>
8
9#include <laws/foldable.hpp>
10
11#include <array>
12namespace hana = boost::hana;
13
14
15template <int ...i>
16constexpr auto array() { return std::array<int, sizeof...(i)>{{i...}}; }
17
18int main() {
19 auto int_arrays = hana::make_tuple(
20 array<>()
21 , array<0>()
22 , array<0, 1>()
23 , array<0, 1, 2>()
24 , array<0, 1, 2, 3>()
25 , array<0, 1, 2, 3, 4>()
26 );
27
28 hana::test::TestFoldable<hana::ext::std::array_tag>{int_arrays};
29}