File indexing completed on 2025-12-16 09:52:34
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef BOOST_HANA_CONCEPT_INTEGRAL_CONSTANT_HPP
0011 #define BOOST_HANA_CONCEPT_INTEGRAL_CONSTANT_HPP
0012
0013 #include <boost/hana/fwd/concept/integral_constant.hpp>
0014
0015 #include <boost/hana/config.hpp>
0016 #include <boost/hana/core/tag_of.hpp>
0017 #include <boost/hana/detail/integral_constant.hpp>
0018
0019
0020 namespace boost { namespace hana {
0021 namespace detail {
0022 template <typename C, typename Tag = typename tag_of<C>::type>
0023 struct integral_constant_dispatch
0024 : hana::integral_constant<bool,
0025 hana::IntegralConstant<Tag>::value
0026 >
0027 { };
0028
0029 template <typename C>
0030 struct integral_constant_dispatch<C, C>
0031 : hana::integral_constant<bool, false>
0032 { };
0033 }
0034
0035
0036 template <typename C>
0037 struct IntegralConstant
0038 : detail::integral_constant_dispatch<C>
0039 { };
0040
0041 }}
0042
0043 #endif