lambda_spec.hpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef BOOST_MPL_AUX_LAMBDA_SPEC_HPP_INCLUDED
  2. #define BOOST_MPL_AUX_LAMBDA_SPEC_HPP_INCLUDED
  3. // Copyright Aleksey Gurtovoy 2001-2007
  4. //
  5. // Distributed under the Boost Software License, Version 1.0.
  6. // (See accompanying file LICENSE_1_0.txt or copy at
  7. // http://www.boost.org/LICENSE_1_0.txt)
  8. //
  9. // See http://www.boost.org/libs/mpl for documentation.
  10. // $Id$
  11. // $Date$
  12. // $Revision$
  13. #include <boost/mpl/void.hpp>
  14. #include <boost/mpl/lambda_fwd.hpp>
  15. #include <boost/mpl/int_fwd.hpp>
  16. #include <boost/mpl/aux_/preprocessor/params.hpp>
  17. #include <boost/mpl/aux_/lambda_arity_param.hpp>
  18. #include <boost/mpl/aux_/config/lambda.hpp>
  19. #if !defined(BOOST_MPL_CFG_NO_FULL_LAMBDA_SUPPORT)
  20. # define BOOST_MPL_AUX_PASS_THROUGH_LAMBDA_SPEC(i, name) \
  21. template< \
  22. BOOST_MPL_PP_PARAMS(i, typename T) \
  23. , typename Tag \
  24. > \
  25. struct lambda< \
  26. name< BOOST_MPL_PP_PARAMS(i, T) > \
  27. , Tag \
  28. BOOST_MPL_AUX_LAMBDA_ARITY_PARAM(int_<i>) \
  29. > \
  30. { \
  31. typedef false_ is_le; \
  32. typedef name< BOOST_MPL_PP_PARAMS(i, T) > result_; \
  33. typedef result_ type; \
  34. }; \
  35. /**/
  36. #else
  37. # define BOOST_MPL_AUX_PASS_THROUGH_LAMBDA_SPEC(i, name) /**/
  38. #endif
  39. #endif // BOOST_MPL_AUX_LAMBDA_SPEC_HPP_INCLUDED