blob: 001ff5fe13b8360641df5676ad49e4df6473e46f [file] [log] [blame]
Jeff Thompsonef2d5a42013-08-22 19:09:24 -07001
2// (C) Copyright Dave Abrahams, Steve Cleary, Beman Dawes,
3// Aleksey Gurtovoy, Howard Hinnant & John Maddock 2000.
4// Distributed under the Boost Software License, Version 1.0. (See
5// accompanying file LICENSE_1_0.txt or copy at
6// http://www.boost.org/LICENSE_1_0.txt)
7
Jeff Thompson3d613fd2013-10-15 15:39:04 -07008#if !defined(NDNBOOST_PP_IS_ITERATING)
Jeff Thompsonef2d5a42013-08-22 19:09:24 -07009
10///// header body
11
Jeff Thompson3d613fd2013-10-15 15:39:04 -070012#ifndef NDNBOOST_DETAIL_IS_FUNCTION_REF_TESTER_HPP_INCLUDED
13#define NDNBOOST_DETAIL_IS_FUNCTION_REF_TESTER_HPP_INCLUDED
Jeff Thompsonef2d5a42013-08-22 19:09:24 -070014
15#include "ndnboost/type_traits/detail/yes_no_type.hpp"
16#include "ndnboost/type_traits/config.hpp"
17
Jeff Thompson3d613fd2013-10-15 15:39:04 -070018#if defined(NDNBOOST_TT_PREPROCESSING_MODE)
Jeff Thompsonef2d5a42013-08-22 19:09:24 -070019# include "ndnboost/preprocessor/iterate.hpp"
20# include "ndnboost/preprocessor/enum_params.hpp"
21# include "ndnboost/preprocessor/comma_if.hpp"
22#endif
23
24namespace ndnboost {
25namespace detail {
26namespace is_function_ref_tester_ {
27
28template <class T>
Jeff Thompson3d613fd2013-10-15 15:39:04 -070029ndnboost::type_traits::no_type NDNBOOST_TT_DECL is_function_ref_tester(T& ...);
Jeff Thompsonef2d5a42013-08-22 19:09:24 -070030
Jeff Thompson3d613fd2013-10-15 15:39:04 -070031#if !defined(NDNBOOST_TT_PREPROCESSING_MODE)
Jeff Thompsonef2d5a42013-08-22 19:09:24 -070032// preprocessor-generated part, don't edit by hand!
33
34template <class R>
35ndnboost::type_traits::yes_type is_function_ref_tester(R (&)(), int);
36
37template <class R,class T0 >
38ndnboost::type_traits::yes_type is_function_ref_tester(R (&)(T0), int);
39
40template <class R,class T0,class T1 >
41ndnboost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1), int);
42
43template <class R,class T0,class T1,class T2 >
44ndnboost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2), int);
45
46template <class R,class T0,class T1,class T2,class T3 >
47ndnboost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3), int);
48
49template <class R,class T0,class T1,class T2,class T3,class T4 >
50ndnboost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4), int);
51
52template <class R,class T0,class T1,class T2,class T3,class T4,class T5 >
53ndnboost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5), int);
54
55template <class R,class T0,class T1,class T2,class T3,class T4,class T5,class T6 >
56ndnboost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5,T6), int);
57
58template <class R,class T0,class T1,class T2,class T3,class T4,class T5,class T6,class T7 >
59ndnboost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5,T6,T7), int);
60
61template <class R,class T0,class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8 >
62ndnboost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5,T6,T7,T8), int);
63
64template <class R,class T0,class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8,class T9 >
65ndnboost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5,T6,T7,T8,T9), int);
66
67template <class R,class T0,class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8,class T9,class T10 >
68ndnboost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10), int);
69
70template <class R,class T0,class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8,class T9,class T10,class T11 >
71ndnboost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11), int);
72
73template <class R,class T0,class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8,class T9,class T10,class T11,class T12 >
74ndnboost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12), int);
75
76template <class R,class T0,class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8,class T9,class T10,class T11,class T12,class T13 >
77ndnboost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13), int);
78
79template <class R,class T0,class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8,class T9,class T10,class T11,class T12,class T13,class T14 >
80ndnboost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14), int);
81
82template <class R,class T0,class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8,class T9,class T10,class T11,class T12,class T13,class T14,class T15 >
83ndnboost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15), int);
84
85template <class R,class T0,class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8,class T9,class T10,class T11,class T12,class T13,class T14,class T15,class T16 >
86ndnboost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16), int);
87
88template <class R,class T0,class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8,class T9,class T10,class T11,class T12,class T13,class T14,class T15,class T16,class T17 >
89ndnboost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17), int);
90
91template <class R,class T0,class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8,class T9,class T10,class T11,class T12,class T13,class T14,class T15,class T16,class T17,class T18 >
92ndnboost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18), int);
93
94template <class R,class T0,class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8,class T9,class T10,class T11,class T12,class T13,class T14,class T15,class T16,class T17,class T18,class T19 >
95ndnboost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19), int);
96
97template <class R,class T0,class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8,class T9,class T10,class T11,class T12,class T13,class T14,class T15,class T16,class T17,class T18,class T19,class T20 >
98ndnboost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20), int);
99
100template <class R,class T0,class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8,class T9,class T10,class T11,class T12,class T13,class T14,class T15,class T16,class T17,class T18,class T19,class T20,class T21 >
101ndnboost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21), int);
102
103template <class R,class T0,class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8,class T9,class T10,class T11,class T12,class T13,class T14,class T15,class T16,class T17,class T18,class T19,class T20,class T21,class T22 >
104ndnboost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22), int);
105
106template <class R,class T0,class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8,class T9,class T10,class T11,class T12,class T13,class T14,class T15,class T16,class T17,class T18,class T19,class T20,class T21,class T22,class T23 >
107ndnboost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23), int);
108
109template <class R,class T0,class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8,class T9,class T10,class T11,class T12,class T13,class T14,class T15,class T16,class T17,class T18,class T19,class T20,class T21,class T22,class T23,class T24 >
110ndnboost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24), int);
111
112#else
113
Jeff Thompson3d613fd2013-10-15 15:39:04 -0700114#define NDNBOOST_PP_ITERATION_PARAMS_1 \
Jeff Thompsonef2d5a42013-08-22 19:09:24 -0700115 (3, (0, 25, "ndnboost/detail/is_function_ref_tester.hpp"))
Jeff Thompson3d613fd2013-10-15 15:39:04 -0700116#include NDNBOOST_PP_ITERATE()
Jeff Thompsonef2d5a42013-08-22 19:09:24 -0700117
Jeff Thompson3d613fd2013-10-15 15:39:04 -0700118#endif // NDNBOOST_TT_PREPROCESSING_MODE
Jeff Thompsonef2d5a42013-08-22 19:09:24 -0700119
120} // namespace detail
121} // namespace python
122} // namespace ndnboost
123
Jeff Thompson3d613fd2013-10-15 15:39:04 -0700124#endif // NDNBOOST_DETAIL_IS_FUNCTION_REF_TESTER_HPP_INCLUDED
Jeff Thompsonef2d5a42013-08-22 19:09:24 -0700125
126///// iteration
127
128#else
Jeff Thompson3d613fd2013-10-15 15:39:04 -0700129#define i NDNBOOST_PP_FRAME_ITERATION(1)
Jeff Thompsonef2d5a42013-08-22 19:09:24 -0700130
Jeff Thompson3d613fd2013-10-15 15:39:04 -0700131template <class R NDNBOOST_PP_COMMA_IF(i) NDNBOOST_PP_ENUM_PARAMS(i,class T) >
132ndnboost::type_traits::yes_type is_function_ref_tester(R (&)(NDNBOOST_PP_ENUM_PARAMS(i,T)), int);
Jeff Thompsonef2d5a42013-08-22 19:09:24 -0700133
134#undef i
Jeff Thompson3d613fd2013-10-15 15:39:04 -0700135#endif // NDNBOOST_PP_IS_ITERATING
Jeff Thompsonef2d5a42013-08-22 19:09:24 -0700136