lambda_fwd.hpp 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. // lambda_fwd.hpp - Boost Lambda Library -------------------------------
  2. // Copyright (C) 1999, 2000 Jaakko Jarvi (jaakko.jarvi@cs.utu.fi)
  3. //
  4. // Distributed under the Boost Software License, Version 1.0. (See
  5. // accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. //
  8. // For more information, see www.boost.org
  9. // -------------------------------------------------------
  10. #ifndef BOOST_LAMBDA_FWD_HPP
  11. #define BOOST_LAMBDA_FWD_HPP
  12. namespace boost {
  13. namespace lambda {
  14. namespace detail {
  15. template<class T> struct generate_error;
  16. }
  17. // -- placeholders --------------------------------------------
  18. template <int I> struct placeholder;
  19. // function_adaptors
  20. template <class Func>
  21. struct function_adaptor;
  22. template <int I, class Act> class action;
  23. template <class Base>
  24. class lambda_functor;
  25. template <class Act, class Args>
  26. class lambda_functor_base;
  27. } // namespace lambda
  28. } // namespace boost
  29. // #define CALL_TEMPLATE_ARGS class A, class Env
  30. // #define CALL_FORMAL_ARGS A& a, Env& env
  31. // #define CALL_ACTUAL_ARGS a, env
  32. // #define CALL_ACTUAL_ARGS_NO_ENV a
  33. // #define CALL_REFERENCE_TYPES A&, Env&
  34. // #define CALL_PLAIN_TYPES A, Env
  35. #define CALL_TEMPLATE_ARGS class A, class B, class C, class Env
  36. #define CALL_FORMAL_ARGS A& a, B& b, C& c, Env& env
  37. #define CALL_ACTUAL_ARGS a, b, c, env
  38. #define CALL_ACTUAL_ARGS_NO_ENV a, b, c
  39. #define CALL_REFERENCE_TYPES A&, B&, C&, Env&
  40. #define CALL_PLAIN_TYPES A, B, C, Env
  41. namespace boost {
  42. namespace lambda {
  43. namespace detail {
  44. template<class A1, class A2, class A3, class A4>
  45. void do_nothing(A1&, A2&, A3&, A4&) {}
  46. } // detail
  47. } // lambda
  48. } // boost
  49. // prevent the warnings from unused arguments
  50. #define CALL_USE_ARGS \
  51. ::boost::lambda::detail::do_nothing(a, b, c, env)
  52. #endif