]> git.lyx.org Git - lyx.git/blob - boost/boost/function.hpp
small stuff, whitespace & consistent naming
[lyx.git] / boost / boost / function.hpp
1 // Boost.Function library
2
3 // Copyright (C) 2001, 2002 Doug Gregor (gregod@cs.rpi.edu)
4 //
5 // Permission to copy, use, sell and distribute this software is granted
6 // provided this copyright notice appears in all copies.
7 // Permission to modify the code and to distribute modified code is granted
8 // provided this copyright notice appears in all copies, and a notice
9 // that the code was modified is included with the copyright notice.
10 //
11 // This software is provided "as is" without express or implied warranty,
12 // and with no claim as to its suitability for any purpose.
13
14 // For more information, see http://www.boost.org/libs/function
15
16 // William Kempf, Jesse Jones and Karl Nelson were all very helpful in the
17 // design of this library.
18
19 #include <boost/preprocessor/iterate.hpp>
20 #include <boost/detail/workaround.hpp>
21
22 #ifndef BOOST_FUNCTION_MAX_ARGS
23 #  define BOOST_FUNCTION_MAX_ARGS 10
24 #endif // BOOST_FUNCTION_MAX_ARGS
25
26 // Include the prologue here so that the use of file-level iteration
27 // in anything that may be included by function_template.hpp doesn't break
28 #include <boost/function/detail/prologue.hpp>
29
30 // Visual Age C++ doesn't handle the file iteration well
31 #if BOOST_WORKAROUND(__IBMCPP__, <= 600)
32 #  if BOOST_FUNCTION_MAX_ARGS >= 0
33 #    include <boost/function/function0.hpp>
34 #  endif
35 #  if BOOST_FUNCTION_MAX_ARGS >= 1
36 #    include <boost/function/function1.hpp>
37 #  endif
38 #  if BOOST_FUNCTION_MAX_ARGS >= 2
39 #    include <boost/function/function2.hpp>
40 #  endif
41 #  if BOOST_FUNCTION_MAX_ARGS >= 3
42 #    include <boost/function/function3.hpp>
43 #  endif
44 #  if BOOST_FUNCTION_MAX_ARGS >= 4
45 #    include <boost/function/function4.hpp>
46 #  endif
47 #  if BOOST_FUNCTION_MAX_ARGS >= 5
48 #    include <boost/function/function5.hpp>
49 #  endif
50 #  if BOOST_FUNCTION_MAX_ARGS >= 6
51 #    include <boost/function/function6.hpp>
52 #  endif
53 #  if BOOST_FUNCTION_MAX_ARGS >= 7
54 #    include <boost/function/function7.hpp>
55 #  endif
56 #  if BOOST_FUNCTION_MAX_ARGS >= 8
57 #    include <boost/function/function8.hpp>
58 #  endif
59 #  if BOOST_FUNCTION_MAX_ARGS >= 9
60 #    include <boost/function/function9.hpp>
61 #  endif
62 #  if BOOST_FUNCTION_MAX_ARGS >= 10
63 #    include <boost/function/function10.hpp>
64 #  endif
65 #else
66 // What is the '3' for?
67 #  define BOOST_PP_ITERATION_PARAMS_1 (3,(0,BOOST_FUNCTION_MAX_ARGS,<boost/function/detail/function_iterate.hpp>))
68 #  include BOOST_PP_ITERATE()
69 #  undef BOOST_PP_ITERATION_PARAMS_1
70 #endif