]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/example/ext/std/integer_sequence/searchable.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / hana / example / ext / std / integer_sequence / searchable.cpp
1 // Copyright Louis Dionne 2013-2016
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/equal.hpp>
7 #include <boost/hana/ext/std/integer_sequence.hpp>
8 #include <boost/hana/ext/std/integral_constant.hpp>
9 #include <boost/hana/find.hpp>
10 #include <boost/hana/integral_constant.hpp>
11 #include <boost/hana/optional.hpp>
12
13 #include <type_traits>
14 #include <utility>
15 namespace hana = boost::hana;
16
17
18 constexpr std::integer_sequence<int, 1, 2, 3, 4> xs{};
19
20 BOOST_HANA_CONSTANT_CHECK(hana::equal(
21 hana::find(xs, hana::int_c<3>),
22 hana::just(std::integral_constant<int, 3>{})
23 ));
24
25 int main() { }