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

Private GIT Repository
20bbc4369ec9deafc553a3f7b9f7daff30a1184f
[canny.git] / stc / exp / ml_stc_linux_make_v1.0 / include / boost / mpl / aux_ / lambda_spec.hpp
1 \r
2 #ifndef BOOST_MPL_AUX_LAMBDA_SPEC_HPP_INCLUDED\r
3 #define BOOST_MPL_AUX_LAMBDA_SPEC_HPP_INCLUDED\r
4 \r
5 // Copyright Aleksey Gurtovoy 2001-2007\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: 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/void.hpp>\r
18 #include <boost/mpl/lambda_fwd.hpp>\r
19 #include <boost/mpl/int_fwd.hpp>\r
20 #include <boost/mpl/aux_/preprocessor/params.hpp>\r
21 #include <boost/mpl/aux_/lambda_arity_param.hpp>\r
22 #include <boost/mpl/aux_/config/lambda.hpp>\r
23 \r
24 #if !defined(BOOST_MPL_CFG_NO_FULL_LAMBDA_SUPPORT)\r
25 \r
26 #   define BOOST_MPL_AUX_PASS_THROUGH_LAMBDA_SPEC(i, name) \\r
27 template< \\r
28       BOOST_MPL_PP_PARAMS(i, typename T) \\r
29     , typename Tag \\r
30     > \\r
31 struct lambda< \\r
32       name< BOOST_MPL_PP_PARAMS(i, T) > \\r
33     , Tag \\r
34     BOOST_MPL_AUX_LAMBDA_ARITY_PARAM(int_<i>) \\r
35     > \\r
36 { \\r
37     typedef false_ is_le; \\r
38     typedef name< BOOST_MPL_PP_PARAMS(i, T) > result_; \\r
39     typedef result_ type; \\r
40 }; \\r
41 /**/\r
42 \r
43 #else\r
44 \r
45 #   define BOOST_MPL_AUX_PASS_THROUGH_LAMBDA_SPEC(i, name) /**/\r
46 \r
47 #endif\r
48 \r
49 #endif // BOOST_MPL_AUX_LAMBDA_SPEC_HPP_INCLUDED\r