3 Defines `boost::hana::Metafunction`.
5 @copyright Louis Dionne 2013-2017
6 Distributed under the Boost Software License, Version 1.0.
7 (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
10 #ifndef BOOST_HANA_CONCEPT_METAFUNCTION_HPP
11 #define BOOST_HANA_CONCEPT_METAFUNCTION_HPP
13 #include <boost/hana/fwd/concept/metafunction.hpp>
15 #include <boost/hana/config.hpp>
16 #include <boost/hana/core/tag_of.hpp>
17 #include <boost/hana/detail/integral_constant.hpp>
20 namespace boost { namespace hana {
22 template <typename F, typename Tag = typename tag_of<F>::type>
23 struct metafunction_dispatch
24 : hana::integral_constant<bool,
25 Metafunction<Tag>::value
30 struct metafunction_dispatch<F, F>
31 : hana::integral_constant<bool, false>
37 : detail::metafunction_dispatch<F>
39 }} // end namespace boost::hana
41 #endif // !BOOST_HANA_CONCEPT_METAFUNCTION_HPP