2001-06-22 14:13:03 +00:00
|
|
|
// Boost.Function library
|
|
|
|
|
2004-07-25 02:29:29 +00:00
|
|
|
// Copyright Douglas Gregor 2001-2003. Use, modification and
|
2003-10-01 04:10:37 +00:00
|
|
|
// distribution is subject to the Boost Software License, Version
|
|
|
|
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
|
|
|
// http://www.boost.org/LICENSE_1_0.txt)
|
2003-02-14 15:34:39 +00:00
|
|
|
|
2002-12-27 16:51:53 +00:00
|
|
|
// For more information, see http://www.boost.org/libs/function
|
2003-02-14 15:34:39 +00:00
|
|
|
|
2001-06-21 16:19:33 +00:00
|
|
|
// William Kempf, Jesse Jones and Karl Nelson were all very helpful in the
|
|
|
|
// design of this library.
|
|
|
|
|
2017-07-06 15:37:18 -04:00
|
|
|
#ifndef BOOST_FUNCTION_MAX_ARGS
|
|
|
|
# define BOOST_FUNCTION_MAX_ARGS 10
|
|
|
|
#endif // BOOST_FUNCTION_MAX_ARGS
|
|
|
|
|
|
|
|
#if !defined(BOOST_FUNCTION_MAX_ARGS_DEFINED) || (BOOST_FUNCTION_MAX_ARGS_DEFINED != BOOST_FUNCTION_MAX_ARGS)
|
|
|
|
|
|
|
|
#if !defined(BOOST_FUNCTION_MAX_ARGS_DEFINED)
|
|
|
|
#define BOOST_FUNCTION_MAX_ARGS_DEFINED 0
|
|
|
|
#endif
|
|
|
|
|
2007-11-25 18:07:19 +00:00
|
|
|
#include <functional> // unary_function, binary_function
|
|
|
|
|
2002-09-24 17:16:17 +00:00
|
|
|
#include <boost/preprocessor/iterate.hpp>
|
2018-09-22 15:04:52 -04:00
|
|
|
#include <boost/config/workaround.hpp>
|
2001-06-21 16:19:33 +00:00
|
|
|
|
2002-09-24 17:16:17 +00:00
|
|
|
// Include the prologue here so that the use of file-level iteration
|
|
|
|
// in anything that may be included by function_template.hpp doesn't break
|
|
|
|
#include <boost/function/detail/prologue.hpp>
|
2002-08-05 06:19:17 +00:00
|
|
|
|
2011-03-21 21:32:38 +00:00
|
|
|
// Older Visual Age C++ version do not handle the file iteration well
|
2018-11-13 18:02:22 +02:00
|
|
|
#if BOOST_WORKAROUND(__IBMCPP__, >= 500) && BOOST_WORKAROUND(__IBMCPP__, < 800)
|
2003-02-14 15:34:39 +00:00
|
|
|
# if BOOST_FUNCTION_MAX_ARGS >= 0
|
|
|
|
# include <boost/function/function0.hpp>
|
|
|
|
# endif
|
|
|
|
# if BOOST_FUNCTION_MAX_ARGS >= 1
|
|
|
|
# include <boost/function/function1.hpp>
|
|
|
|
# endif
|
|
|
|
# if BOOST_FUNCTION_MAX_ARGS >= 2
|
|
|
|
# include <boost/function/function2.hpp>
|
|
|
|
# endif
|
|
|
|
# if BOOST_FUNCTION_MAX_ARGS >= 3
|
|
|
|
# include <boost/function/function3.hpp>
|
|
|
|
# endif
|
|
|
|
# if BOOST_FUNCTION_MAX_ARGS >= 4
|
|
|
|
# include <boost/function/function4.hpp>
|
|
|
|
# endif
|
|
|
|
# if BOOST_FUNCTION_MAX_ARGS >= 5
|
|
|
|
# include <boost/function/function5.hpp>
|
|
|
|
# endif
|
|
|
|
# if BOOST_FUNCTION_MAX_ARGS >= 6
|
|
|
|
# include <boost/function/function6.hpp>
|
|
|
|
# endif
|
|
|
|
# if BOOST_FUNCTION_MAX_ARGS >= 7
|
|
|
|
# include <boost/function/function7.hpp>
|
|
|
|
# endif
|
|
|
|
# if BOOST_FUNCTION_MAX_ARGS >= 8
|
|
|
|
# include <boost/function/function8.hpp>
|
|
|
|
# endif
|
|
|
|
# if BOOST_FUNCTION_MAX_ARGS >= 9
|
|
|
|
# include <boost/function/function9.hpp>
|
|
|
|
# endif
|
|
|
|
# if BOOST_FUNCTION_MAX_ARGS >= 10
|
|
|
|
# include <boost/function/function10.hpp>
|
|
|
|
# endif
|
|
|
|
#else
|
2002-09-24 17:16:17 +00:00
|
|
|
// What is the '3' for?
|
2003-02-14 15:34:39 +00:00
|
|
|
# define BOOST_PP_ITERATION_PARAMS_1 (3,(0,BOOST_FUNCTION_MAX_ARGS,<boost/function/detail/function_iterate.hpp>))
|
|
|
|
# include BOOST_PP_ITERATE()
|
|
|
|
# undef BOOST_PP_ITERATION_PARAMS_1
|
|
|
|
#endif
|
2017-07-06 15:37:18 -04:00
|
|
|
|
|
|
|
#endif // !defined(BOOST_FUNCTION_MAX_ARGS_DEFINED) || (BOOST_FUNCTION_MAX_ARGS_DEFINED != BOOST_FUNCTION_MAX_ARGS)
|