Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:30:54

0001 // Boost.Function library
0002 
0003 //  Copyright Douglas Gregor 2003. Use, modification and
0004 //  distribution is subject to the Boost Software License, Version
0005 //  1.0. (See accompanying file LICENSE_1_0.txt or copy at
0006 //  http://www.boost.org/LICENSE_1_0.txt)
0007 
0008 // For more information, see http://www.boost.org
0009 
0010 #if BOOST_FUNCTION_NUM_ARGS == 0
0011 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0012 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 0
0013 #  ifndef BOOST_FUNCTION_0
0014 #    define BOOST_FUNCTION_0
0015 #    include <boost/function/function_template.hpp>
0016 #  endif
0017 #elif BOOST_FUNCTION_NUM_ARGS == 1
0018 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0019 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 1
0020 #  ifndef BOOST_FUNCTION_1
0021 #    define BOOST_FUNCTION_1
0022 #    include <boost/function/function_template.hpp>
0023 #  endif
0024 #elif BOOST_FUNCTION_NUM_ARGS == 2
0025 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0026 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 2
0027 #  ifndef BOOST_FUNCTION_2
0028 #    define BOOST_FUNCTION_2
0029 #    include <boost/function/function_template.hpp>
0030 #  endif
0031 #elif BOOST_FUNCTION_NUM_ARGS == 3
0032 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0033 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 3
0034 #  ifndef BOOST_FUNCTION_3
0035 #    define BOOST_FUNCTION_3
0036 #    include <boost/function/function_template.hpp>
0037 #  endif
0038 #elif BOOST_FUNCTION_NUM_ARGS == 4
0039 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0040 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 4
0041 #  ifndef BOOST_FUNCTION_4
0042 #    define BOOST_FUNCTION_4
0043 #    include <boost/function/function_template.hpp>
0044 #  endif
0045 #elif BOOST_FUNCTION_NUM_ARGS == 5
0046 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0047 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 5
0048 #  ifndef BOOST_FUNCTION_5
0049 #    define BOOST_FUNCTION_5
0050 #    include <boost/function/function_template.hpp>
0051 #  endif
0052 #elif BOOST_FUNCTION_NUM_ARGS == 6
0053 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0054 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 6
0055 #  ifndef BOOST_FUNCTION_6
0056 #    define BOOST_FUNCTION_6
0057 #    include <boost/function/function_template.hpp>
0058 #  endif
0059 #elif BOOST_FUNCTION_NUM_ARGS == 7
0060 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0061 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 7
0062 #  ifndef BOOST_FUNCTION_7
0063 #    define BOOST_FUNCTION_7
0064 #    include <boost/function/function_template.hpp>
0065 #  endif
0066 #elif BOOST_FUNCTION_NUM_ARGS == 8
0067 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0068 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 8
0069 #  ifndef BOOST_FUNCTION_8
0070 #    define BOOST_FUNCTION_8
0071 #    include <boost/function/function_template.hpp>
0072 #  endif
0073 #elif BOOST_FUNCTION_NUM_ARGS == 9
0074 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0075 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 9
0076 #  ifndef BOOST_FUNCTION_9
0077 #    define BOOST_FUNCTION_9
0078 #    include <boost/function/function_template.hpp>
0079 #  endif
0080 #elif BOOST_FUNCTION_NUM_ARGS == 10
0081 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0082 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 10
0083 #  ifndef BOOST_FUNCTION_10
0084 #    define BOOST_FUNCTION_10
0085 #    include <boost/function/function_template.hpp>
0086 #  endif
0087 #elif BOOST_FUNCTION_NUM_ARGS == 11
0088 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0089 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 11
0090 #  ifndef BOOST_FUNCTION_11
0091 #    define BOOST_FUNCTION_11
0092 #    include <boost/function/function_template.hpp>
0093 #  endif
0094 #elif BOOST_FUNCTION_NUM_ARGS == 12
0095 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0096 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 12
0097 #  ifndef BOOST_FUNCTION_12
0098 #    define BOOST_FUNCTION_12
0099 #    include <boost/function/function_template.hpp>
0100 #  endif
0101 #elif BOOST_FUNCTION_NUM_ARGS == 13
0102 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0103 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 13
0104 #  ifndef BOOST_FUNCTION_13
0105 #    define BOOST_FUNCTION_13
0106 #    include <boost/function/function_template.hpp>
0107 #  endif
0108 #elif BOOST_FUNCTION_NUM_ARGS == 14
0109 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0110 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 14
0111 #  ifndef BOOST_FUNCTION_14
0112 #    define BOOST_FUNCTION_14
0113 #    include <boost/function/function_template.hpp>
0114 #  endif
0115 #elif BOOST_FUNCTION_NUM_ARGS == 15
0116 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0117 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 15
0118 #  ifndef BOOST_FUNCTION_15
0119 #    define BOOST_FUNCTION_15
0120 #    include <boost/function/function_template.hpp>
0121 #  endif
0122 #elif BOOST_FUNCTION_NUM_ARGS == 16
0123 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0124 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 16
0125 #  ifndef BOOST_FUNCTION_16
0126 #    define BOOST_FUNCTION_16
0127 #    include <boost/function/function_template.hpp>
0128 #  endif
0129 #elif BOOST_FUNCTION_NUM_ARGS == 17
0130 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0131 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 17
0132 #  ifndef BOOST_FUNCTION_17
0133 #    define BOOST_FUNCTION_17
0134 #    include <boost/function/function_template.hpp>
0135 #  endif
0136 #elif BOOST_FUNCTION_NUM_ARGS == 18
0137 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0138 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 18
0139 #  ifndef BOOST_FUNCTION_18
0140 #    define BOOST_FUNCTION_18
0141 #    include <boost/function/function_template.hpp>
0142 #  endif
0143 #elif BOOST_FUNCTION_NUM_ARGS == 19
0144 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0145 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 19
0146 #  ifndef BOOST_FUNCTION_19
0147 #    define BOOST_FUNCTION_19
0148 #    include <boost/function/function_template.hpp>
0149 #  endif
0150 #elif BOOST_FUNCTION_NUM_ARGS == 20
0151 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0152 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 20
0153 #  ifndef BOOST_FUNCTION_20
0154 #    define BOOST_FUNCTION_20
0155 #    include <boost/function/function_template.hpp>
0156 #  endif
0157 #elif BOOST_FUNCTION_NUM_ARGS == 21
0158 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0159 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 21
0160 #  ifndef BOOST_FUNCTION_21
0161 #    define BOOST_FUNCTION_21
0162 #    include <boost/function/function_template.hpp>
0163 #  endif
0164 #elif BOOST_FUNCTION_NUM_ARGS == 22
0165 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0166 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 22
0167 #  ifndef BOOST_FUNCTION_22
0168 #    define BOOST_FUNCTION_22
0169 #    include <boost/function/function_template.hpp>
0170 #  endif
0171 #elif BOOST_FUNCTION_NUM_ARGS == 23
0172 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0173 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 23
0174 #  ifndef BOOST_FUNCTION_23
0175 #    define BOOST_FUNCTION_23
0176 #    include <boost/function/function_template.hpp>
0177 #  endif
0178 #elif BOOST_FUNCTION_NUM_ARGS == 24
0179 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0180 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 24
0181 #  ifndef BOOST_FUNCTION_24
0182 #    define BOOST_FUNCTION_24
0183 #    include <boost/function/function_template.hpp>
0184 #  endif
0185 #elif BOOST_FUNCTION_NUM_ARGS == 25
0186 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0187 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 25
0188 #  ifndef BOOST_FUNCTION_25
0189 #    define BOOST_FUNCTION_25
0190 #    include <boost/function/function_template.hpp>
0191 #  endif
0192 #elif BOOST_FUNCTION_NUM_ARGS == 26
0193 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0194 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 26
0195 #  ifndef BOOST_FUNCTION_26
0196 #    define BOOST_FUNCTION_26
0197 #    include <boost/function/function_template.hpp>
0198 #  endif
0199 #elif BOOST_FUNCTION_NUM_ARGS == 27
0200 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0201 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 27
0202 #  ifndef BOOST_FUNCTION_27
0203 #    define BOOST_FUNCTION_27
0204 #    include <boost/function/function_template.hpp>
0205 #  endif
0206 #elif BOOST_FUNCTION_NUM_ARGS == 28
0207 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0208 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 28
0209 #  ifndef BOOST_FUNCTION_28
0210 #    define BOOST_FUNCTION_28
0211 #    include <boost/function/function_template.hpp>
0212 #  endif
0213 #elif BOOST_FUNCTION_NUM_ARGS == 29
0214 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0215 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 29
0216 #  ifndef BOOST_FUNCTION_29
0217 #    define BOOST_FUNCTION_29
0218 #    include <boost/function/function_template.hpp>
0219 #  endif
0220 #elif BOOST_FUNCTION_NUM_ARGS == 30
0221 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0222 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 30
0223 #  ifndef BOOST_FUNCTION_30
0224 #    define BOOST_FUNCTION_30
0225 #    include <boost/function/function_template.hpp>
0226 #  endif
0227 #elif BOOST_FUNCTION_NUM_ARGS == 31
0228 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0229 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 31
0230 #  ifndef BOOST_FUNCTION_31
0231 #    define BOOST_FUNCTION_31
0232 #    include <boost/function/function_template.hpp>
0233 #  endif
0234 #elif BOOST_FUNCTION_NUM_ARGS == 32
0235 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0236 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 32
0237 #  ifndef BOOST_FUNCTION_32
0238 #    define BOOST_FUNCTION_32
0239 #    include <boost/function/function_template.hpp>
0240 #  endif
0241 #elif BOOST_FUNCTION_NUM_ARGS == 33
0242 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0243 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 33
0244 #  ifndef BOOST_FUNCTION_33
0245 #    define BOOST_FUNCTION_33
0246 #    include <boost/function/function_template.hpp>
0247 #  endif
0248 #elif BOOST_FUNCTION_NUM_ARGS == 34
0249 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0250 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 34
0251 #  ifndef BOOST_FUNCTION_34
0252 #    define BOOST_FUNCTION_34
0253 #    include <boost/function/function_template.hpp>
0254 #  endif
0255 #elif BOOST_FUNCTION_NUM_ARGS == 35
0256 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0257 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 35
0258 #  ifndef BOOST_FUNCTION_35
0259 #    define BOOST_FUNCTION_35
0260 #    include <boost/function/function_template.hpp>
0261 #  endif
0262 #elif BOOST_FUNCTION_NUM_ARGS == 36
0263 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0264 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 36
0265 #  ifndef BOOST_FUNCTION_36
0266 #    define BOOST_FUNCTION_36
0267 #    include <boost/function/function_template.hpp>
0268 #  endif
0269 #elif BOOST_FUNCTION_NUM_ARGS == 37
0270 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0271 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 37
0272 #  ifndef BOOST_FUNCTION_37
0273 #    define BOOST_FUNCTION_37
0274 #    include <boost/function/function_template.hpp>
0275 #  endif
0276 #elif BOOST_FUNCTION_NUM_ARGS == 38
0277 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0278 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 38
0279 #  ifndef BOOST_FUNCTION_38
0280 #    define BOOST_FUNCTION_38
0281 #    include <boost/function/function_template.hpp>
0282 #  endif
0283 #elif BOOST_FUNCTION_NUM_ARGS == 39
0284 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0285 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 39
0286 #  ifndef BOOST_FUNCTION_39
0287 #    define BOOST_FUNCTION_39
0288 #    include <boost/function/function_template.hpp>
0289 #  endif
0290 #elif BOOST_FUNCTION_NUM_ARGS == 40
0291 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0292 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 40
0293 #  ifndef BOOST_FUNCTION_40
0294 #    define BOOST_FUNCTION_40
0295 #    include <boost/function/function_template.hpp>
0296 #  endif
0297 #elif BOOST_FUNCTION_NUM_ARGS == 41
0298 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0299 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 41
0300 #  ifndef BOOST_FUNCTION_41
0301 #    define BOOST_FUNCTION_41
0302 #    include <boost/function/function_template.hpp>
0303 #  endif
0304 #elif BOOST_FUNCTION_NUM_ARGS == 42
0305 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0306 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 42
0307 #  ifndef BOOST_FUNCTION_42
0308 #    define BOOST_FUNCTION_42
0309 #    include <boost/function/function_template.hpp>
0310 #  endif
0311 #elif BOOST_FUNCTION_NUM_ARGS == 43
0312 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0313 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 43
0314 #  ifndef BOOST_FUNCTION_43
0315 #    define BOOST_FUNCTION_43
0316 #    include <boost/function/function_template.hpp>
0317 #  endif
0318 #elif BOOST_FUNCTION_NUM_ARGS == 44
0319 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0320 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 44
0321 #  ifndef BOOST_FUNCTION_44
0322 #    define BOOST_FUNCTION_44
0323 #    include <boost/function/function_template.hpp>
0324 #  endif
0325 #elif BOOST_FUNCTION_NUM_ARGS == 45
0326 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0327 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 45
0328 #  ifndef BOOST_FUNCTION_45
0329 #    define BOOST_FUNCTION_45
0330 #    include <boost/function/function_template.hpp>
0331 #  endif
0332 #elif BOOST_FUNCTION_NUM_ARGS == 46
0333 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0334 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 46
0335 #  ifndef BOOST_FUNCTION_46
0336 #    define BOOST_FUNCTION_46
0337 #    include <boost/function/function_template.hpp>
0338 #  endif
0339 #elif BOOST_FUNCTION_NUM_ARGS == 47
0340 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0341 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 47
0342 #  ifndef BOOST_FUNCTION_47
0343 #    define BOOST_FUNCTION_47
0344 #    include <boost/function/function_template.hpp>
0345 #  endif
0346 #elif BOOST_FUNCTION_NUM_ARGS == 48
0347 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0348 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 48
0349 #  ifndef BOOST_FUNCTION_48
0350 #    define BOOST_FUNCTION_48
0351 #    include <boost/function/function_template.hpp>
0352 #  endif
0353 #elif BOOST_FUNCTION_NUM_ARGS == 49
0354 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0355 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 49
0356 #  ifndef BOOST_FUNCTION_49
0357 #    define BOOST_FUNCTION_49
0358 #    include <boost/function/function_template.hpp>
0359 #  endif
0360 #elif BOOST_FUNCTION_NUM_ARGS == 50
0361 #  undef BOOST_FUNCTION_MAX_ARGS_DEFINED
0362 #  define BOOST_FUNCTION_MAX_ARGS_DEFINED 50
0363 #  ifndef BOOST_FUNCTION_50
0364 #    define BOOST_FUNCTION_50
0365 #    include <boost/function/function_template.hpp>
0366 #  endif
0367 #else
0368 #  error Cannot handle Boost.Function objects that accept more than 50 arguments!
0369 #endif