File indexing completed on 2025-01-18 09:52:54
0001
0002
0003
0004
0005
0006
0007 #if !defined(BOOST_TTI_DETAIL_COMP_MEM_FUN_HPP)
0008 #define BOOST_TTI_DETAIL_COMP_MEM_FUN_HPP
0009
0010 #include <boost/mpl/bool.hpp>
0011 #include <boost/preprocessor/cat.hpp>
0012 #include <boost/tti/detail/dftclass.hpp>
0013 #include <boost/tti/detail/dmacro_sunfix.hpp>
0014 #include <boost/tti/detail/dnullptr.hpp>
0015 #include <boost/tti/gen/namespace_gen.hpp>
0016 #include <boost/type_traits/remove_const.hpp>
0017 #include <boost/type_traits/detail/yes_no_type.hpp>
0018
0019 #define BOOST_TTI_DETAIL_TRAIT_HAS_COMP_MEMBER_FUNCTION(trait,name) \
0020 template<class BOOST_TTI_DETAIL_TP_T> \
0021 struct BOOST_PP_CAT(trait,_detail_hcmf) \
0022 { \
0023 template<class BOOST_TTI_DETAIL_TP_F> \
0024 struct cl_type : \
0025 boost::remove_const \
0026 < \
0027 typename BOOST_TTI_NAMESPACE::detail::class_type<BOOST_TTI_DETAIL_TP_F>::type \
0028 > \
0029 { \
0030 }; \
0031 \
0032 template<BOOST_TTI_DETAIL_TP_T> \
0033 struct helper BOOST_TTI_DETAIL_MACRO_SUNFIX ; \
0034 \
0035 template<class BOOST_TTI_DETAIL_TP_U> \
0036 static ::boost::type_traits::yes_type chkt(helper<&BOOST_TTI_DETAIL_TP_U::name> *); \
0037 \
0038 template<class BOOST_TTI_DETAIL_TP_U> \
0039 static ::boost::type_traits::no_type chkt(...); \
0040 \
0041 typedef boost::mpl::bool_<sizeof(chkt<typename cl_type<BOOST_TTI_DETAIL_TP_T>::type>(BOOST_TTI_DETAIL_NULLPTR))==sizeof(::boost::type_traits::yes_type)> type; \
0042 }; \
0043
0044
0045 #endif