// Copyright Louis Dionne 2013-2016 // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) #include #include #include #include #include #include #include #include #include namespace hana = boost::hana; BOOST_HANA_CONSTANT_CHECK( hana::find(hana::make_tuple(hana::int_c<1>, hana::type_c, '3'), hana::type_c) == hana::just(hana::type_c) ); BOOST_HANA_CONSTANT_CHECK( hana::find(hana::make_tuple(hana::int_c<1>, hana::type_c, '3'), hana::type_c) == hana::nothing ); constexpr auto m = hana::make_map( hana::make_pair(hana::int_c<2>, 2), hana::make_pair(hana::type_c, 3.3), hana::make_pair(hana::type_c, hana::type_c) ); static_assert(hana::find(m, hana::type_c) == hana::just(3.3), ""); int main() { }