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