File indexing completed on 2025-01-18 09:41:39
0001
0002 #ifndef BOOST_MPL_AUX_TRAITS_LAMBDA_SPEC_HPP_INCLUDED
0003 #define BOOST_MPL_AUX_TRAITS_LAMBDA_SPEC_HPP_INCLUDED
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #include <boost/mpl/sequence_tag_fwd.hpp>
0018 #include <boost/mpl/void.hpp>
0019 #include <boost/mpl/aux_/preprocessor/params.hpp>
0020 #include <boost/mpl/aux_/config/lambda.hpp>
0021
0022 #if !defined(BOOST_MPL_CFG_NO_FULL_LAMBDA_SUPPORT)
0023
0024 # define BOOST_MPL_ALGORITM_TRAITS_LAMBDA_SPEC_IMPL(i, trait)
0025
0026 #elif !defined(BOOST_MPL_CFG_MSVC_ETI_BUG)
0027
0028 # define BOOST_MPL_ALGORITM_TRAITS_LAMBDA_SPEC_IMPL(i, trait) \
0029 template<> struct trait<void_> \
0030 { \
0031 template< BOOST_MPL_PP_PARAMS(i, typename T) > struct apply \
0032 { \
0033 }; \
0034 }; \
0035
0036
0037 #else
0038
0039 # define BOOST_MPL_ALGORITM_TRAITS_LAMBDA_SPEC_IMPL(i, trait) \
0040 template<> struct trait<void_> \
0041 { \
0042 template< BOOST_MPL_PP_PARAMS(i, typename T) > struct apply \
0043 { \
0044 }; \
0045 }; \
0046 template<> struct trait<int> \
0047 { \
0048 template< BOOST_MPL_PP_PARAMS(i, typename T) > struct apply \
0049 { \
0050 typedef int type; \
0051 }; \
0052 }; \
0053
0054
0055 #endif
0056
0057
0058 #define BOOST_MPL_ALGORITM_TRAITS_LAMBDA_SPEC(i, trait) \
0059 BOOST_MPL_ALGORITM_TRAITS_LAMBDA_SPEC_IMPL(i, trait) \
0060 template<> struct trait<non_sequence_tag> {}; \
0061
0062
0063 #endif