]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/example/ext/std/integer_sequence/searchable.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/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>
13 #include <type_traits>
15 namespace hana
= boost::hana
;
18 constexpr std::integer_sequence
<int, 1, 2, 3, 4> xs
{};
20 BOOST_HANA_CONSTANT_CHECK(hana::equal(
21 hana::find(xs
, hana::int_c
<3>),
22 hana::just(std::integral_constant
<int, 3>{})