File indexing completed on 2025-10-30 08:20:01
0001 
0002 
0003 
0004 
0005 
0006 
0007 
0008 
0009 
0010 #ifndef BOOST_HANA_CORE_IS_A_HPP
0011 #define BOOST_HANA_CORE_IS_A_HPP
0012 
0013 #include <boost/hana/fwd/core/is_a.hpp>
0014 
0015 #include <boost/hana/bool.hpp>
0016 #include <boost/hana/config.hpp>
0017 #include <boost/hana/core/tag_of.hpp>
0018 
0019 #include <type_traits>
0020 
0021 
0022 namespace boost { namespace hana {
0023     
0024     
0025     
0026     template <typename DataType, typename T>
0027     struct is_a_t<DataType, T>
0028         : integral_constant<bool,
0029             std::is_same<DataType, typename hana::tag_of<T>::type>::value
0030         >
0031     { };
0032 
0033     template <typename DataType>
0034     struct is_a_t<DataType> {
0035         template <typename T>
0036         constexpr auto operator()(T const&) const
0037         { return hana::is_a<DataType, T>; }
0038     };
0039 }} 
0040 
0041 #endif