]> AND Private Git Repository - canny.git/blob - stc/exp/ml_stc_linux_make_v1.0/include/boost/mpl/aux_/traits_lambda_spec.hpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
a38f8aab7031c36132ed537edd0ae08f3c9867bd
[canny.git] / stc / exp / ml_stc_linux_make_v1.0 / include / boost / mpl / aux_ / traits_lambda_spec.hpp
1 \r
2 #ifndef BOOST_MPL_AUX_TRAITS_LAMBDA_SPEC_HPP_INCLUDED\r
3 #define BOOST_MPL_AUX_TRAITS_LAMBDA_SPEC_HPP_INCLUDED\r
4 \r
5 // Copyright Aleksey Gurtovoy 2000-2008\r
6 //\r
7 // Distributed under the Boost Software License, Version 1.0. \r
8 // (See accompanying file LICENSE_1_0.txt or copy at \r
9 // http://www.boost.org/LICENSE_1_0.txt)\r
10 //\r
11 // See http://www.boost.org/libs/mpl for documentation.\r
12 \r
13 // $Id: traits_lambda_spec.hpp 49267 2008-10-11 06:19:02Z agurtovoy $\r
14 // $Date: 2008-10-11 02:19:02 -0400 (Sat, 11 Oct 2008) $\r
15 // $Revision: 49267 $\r
16 \r
17 #include <boost/mpl/sequence_tag_fwd.hpp>\r
18 #include <boost/mpl/void.hpp>\r
19 #include <boost/mpl/aux_/preprocessor/params.hpp>\r
20 #include <boost/mpl/aux_/config/lambda.hpp>\r
21 \r
22 #if !defined(BOOST_MPL_CFG_NO_FULL_LAMBDA_SUPPORT)\r
23 \r
24 #   define BOOST_MPL_ALGORITM_TRAITS_LAMBDA_SPEC_IMPL(i, trait) /**/\r
25 \r
26 #elif !defined(BOOST_MPL_CFG_MSVC_ETI_BUG)\r
27 \r
28 #   define BOOST_MPL_ALGORITM_TRAITS_LAMBDA_SPEC_IMPL(i, trait) \\r
29 template<> struct trait<void_> \\r
30 { \\r
31     template< BOOST_MPL_PP_PARAMS(i, typename T) > struct apply \\r
32     { \\r
33     }; \\r
34 }; \\r
35 /**/\r
36 \r
37 #else\r
38 \r
39 #   define BOOST_MPL_ALGORITM_TRAITS_LAMBDA_SPEC_IMPL(i, trait) \\r
40 template<> struct trait<void_> \\r
41 { \\r
42     template< BOOST_MPL_PP_PARAMS(i, typename T) > struct apply \\r
43     { \\r
44     }; \\r
45 }; \\r
46 template<> struct trait<int> \\r
47 { \\r
48     template< BOOST_MPL_PP_PARAMS(i, typename T) > struct apply \\r
49     { \\r
50         typedef int type; \\r
51     }; \\r
52 }; \\r
53 /**/\r
54 \r
55 #endif // BOOST_MPL_CFG_NO_FULL_LAMBDA_SUPPORT\r
56 \r
57 \r
58 #define BOOST_MPL_ALGORITM_TRAITS_LAMBDA_SPEC(i, trait) \\r
59     BOOST_MPL_ALGORITM_TRAITS_LAMBDA_SPEC_IMPL(i, trait) \\r
60     template<> struct trait<non_sequence_tag> {}; \\r
61 /**/\r
62 \r
63 #endif // BOOST_MPL_AUX_TRAITS_LAMBDA_SPEC_HPP_INCLUDED\r