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) 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 main()25int main() { } 26