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/ap.hpp>
6 #include <boost/hana/assert.hpp>
7 #include <boost/hana/config.hpp>
8 #include <boost/hana/equal.hpp>
9 #include <boost/hana/optional.hpp>
10 #include <boost/hana/tuple.hpp>
13 namespace hana
= boost::hana
;
19 hana::ap(hana::make_tuple(std::plus
<>{}), hana::make_tuple(1, 2),
20 hana::make_tuple(3, 4, 5))
28 // with optional values
29 BOOST_HANA_CONSTEXPR_LAMBDA
auto multiply
= [](auto a
, auto b
, auto c
) {
33 BOOST_HANA_CONSTEXPR_CHECK(
34 hana::ap(hana::just(multiply
), hana::just(1),
41 BOOST_HANA_CONSTANT_CHECK(
42 hana::ap(hana::just(multiply
), hana::just(1),