forked from boostorg/function
- Redesigned decision procedure for "is it a function pointer" vs. "is it an object". - No longer requires copy constructions of function objects during assignment or construction. - Added operator! to boost::function_base instead of relying on safe_bool conversion. - BOOST_NO_DEPENDENT_BASE_LOOKUP is now unnecessary - BOOST_WEAK_CONVERSION_OPERATORS is now unnecessary - BOOST_WEAK_FUNCTION_TEMPLATE_ORDERING is now unnecessary [SVN r10481]
60 lines
2.4 KiB
C++
60 lines
2.4 KiB
C++
// Boost.Function library
|
|
|
|
// Copyright (C) 2001 Doug Gregor (gregod@cs.rpi.edu)
|
|
//
|
|
// Permission to copy, use, sell and distribute this software is granted
|
|
// provided this copyright notice appears in all copies.
|
|
// Permission to modify the code and to distribute modified code is granted
|
|
// provided this copyright notice appears in all copies, and a notice
|
|
// that the code was modified is included with the copyright notice.
|
|
//
|
|
// This software is provided "as is" without express or implied warranty,
|
|
// and with no claim as to its suitability for any purpose.
|
|
|
|
// For more information, see http://www.boost.org
|
|
|
|
#ifndef BOOST_FUNCTION3_HPP
|
|
#define BOOST_FUNCTION3_HPP
|
|
|
|
#include <boost/function/function_base.hpp>
|
|
|
|
#define BOOST_FUNCTION_NUM_ARGS 3
|
|
#define BOOST_FUNCTION_COMMA ,
|
|
#define BOOST_FUNCTION_TEMPLATE_PARMS typename T1, typename T2, typename T3
|
|
#define BOOST_FUNCTION_TEMPLATE_ARGS T1, T2, T3
|
|
#define BOOST_FUNCTION_OTHER_TEMPLATE_PARMS typename OtherT1, typename OtherT2, typename OtherT3
|
|
#define BOOST_FUNCTION_OTHER_TEMPLATE_ARGS OtherT1, OtherT2, OtherT3
|
|
#define BOOST_FUNCTION_PARMS T1 a1, T2 a2, T3 a3
|
|
#define BOOST_FUNCTION_ARGS a1, a2, a3
|
|
#define BOOST_FUNCTION_FUNCTION function3
|
|
#define BOOST_FUNCTION_BASE function3_base
|
|
#define BOOST_FUNCTION_INVOKER_BASE invoker_base3
|
|
#define BOOST_FUNCTION_FUNCTION_INVOKER function_invoker3
|
|
#define BOOST_FUNCTION_VOID_FUNCTION_INVOKER void_function_invoker3
|
|
#define BOOST_FUNCTION_FUNCTION_OBJ_INVOKER function_obj_invoker3
|
|
#define BOOST_FUNCTION_VOID_FUNCTION_OBJ_INVOKER void_function_obj_invoker3
|
|
#define BOOST_FUNCTION_GET_FUNCTION_INVOKER get_function_invoker3
|
|
#define BOOST_FUNCTION_GET_FUNCTION_OBJ_INVOKER get_function_obj_invoker3
|
|
|
|
#include <boost/function/function_template.hpp>
|
|
|
|
#undef BOOST_FUNCTION_NUM_ARGS
|
|
#undef BOOST_FUNCTION_COMMA
|
|
#undef BOOST_FUNCTION_TEMPLATE_PARMS
|
|
#undef BOOST_FUNCTION_TEMPLATE_ARGS
|
|
#undef BOOST_FUNCTION_OTHER_TEMPLATE_PARMS
|
|
#undef BOOST_FUNCTION_OTHER_TEMPLATE_ARGS
|
|
#undef BOOST_FUNCTION_PARMS
|
|
#undef BOOST_FUNCTION_ARGS
|
|
#undef BOOST_FUNCTION_FUNCTION
|
|
#undef BOOST_FUNCTION_BASE
|
|
#undef BOOST_FUNCTION_INVOKER_BASE
|
|
#undef BOOST_FUNCTION_FUNCTION_INVOKER
|
|
#undef BOOST_FUNCTION_VOID_FUNCTION_INVOKER
|
|
#undef BOOST_FUNCTION_FUNCTION_OBJ_INVOKER
|
|
#undef BOOST_FUNCTION_VOID_FUNCTION_OBJ_INVOKER
|
|
#undef BOOST_FUNCTION_GET_FUNCTION_INVOKER
|
|
#undef BOOST_FUNCTION_GET_FUNCTION_OBJ_INVOKER
|
|
|
|
#endif // BOOST_FUNCTION3_HPP
|