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_TEMPLATE_HPP)
0008 #define BOOST_TTI_DETAIL_COMP_MEM_FUN_TEMPLATE_HPP
0009
0010 #include <boost/mpl/bool.hpp>
0011 #include <boost/preprocessor/cat.hpp>
0012 #include <boost/preprocessor/array/enum.hpp>
0013 #include <boost/tti/detail/dftclass.hpp>
0014 #include <boost/tti/detail/dnullptr.hpp>
0015 #include <boost/tti/detail/dmacro_sunfix.hpp>
0016 #include <boost/tti/gen/namespace_gen.hpp>
0017 #include <boost/type_traits/remove_const.hpp>
0018 #include <boost/type_traits/detail/yes_no_type.hpp>
0019
0020 #define BOOST_TTI_DETAIL_TRAIT_HAS_COMP_MEMBER_FUNCTION_TEMPLATE(trait,name,tparray) \
0021 template<class BOOST_TTI_DETAIL_TP_T> \
0022 struct BOOST_PP_CAT(trait,_detail_hcmft) \
0023 { \
0024 template<class BOOST_TTI_DETAIL_TP_F> \
0025 struct cl_type : \
0026 boost::remove_const \
0027 < \
0028 typename BOOST_TTI_NAMESPACE::detail::class_type<BOOST_TTI_DETAIL_TP_F>::type \
0029 > \
0030 { \
0031 }; \
0032 \
0033 template<BOOST_TTI_DETAIL_TP_T> \
0034 struct helper BOOST_TTI_DETAIL_MACRO_SUNFIX ; \
0035 \
0036 template<class BOOST_TTI_DETAIL_TP_U> \
0037 static ::boost::type_traits::yes_type check(helper<&BOOST_TTI_DETAIL_TP_U::template name<BOOST_PP_ARRAY_ENUM(tparray)> > *); \
0038 \
0039 template<class BOOST_TTI_DETAIL_TP_U> \
0040 static ::boost::type_traits::no_type check(...); \
0041 \
0042 typedef boost::mpl::bool_<sizeof(check<typename cl_type<BOOST_TTI_DETAIL_TP_T>::type>(BOOST_TTI_DETAIL_NULLPTR))==sizeof(::boost::type_traits::yes_type)> type; \
0043 }; \
0044
0045
0046 #endif