2 // (C) Copyright Dave Abrahams, Steve Cleary, Beman Dawes,
\r
3 // Aleksey Gurtovoy, Howard Hinnant & John Maddock 2000.
\r
4 // Distributed under the Boost Software License, Version 1.0. (See
\r
5 // accompanying file LICENSE_1_0.txt or copy at
\r
6 // http://www.boost.org/LICENSE_1_0.txt)
\r
8 #if !defined(BOOST_PP_IS_ITERATING)
\r
12 #ifndef BOOST_DETAIL_IS_FUNCTION_REF_TESTER_HPP_INCLUDED
\r
13 #define BOOST_DETAIL_IS_FUNCTION_REF_TESTER_HPP_INCLUDED
\r
15 #include "boost/type_traits/detail/yes_no_type.hpp"
\r
16 #include "boost/type_traits/config.hpp"
\r
18 #if defined(BOOST_TT_PREPROCESSING_MODE)
\r
19 # include "boost/preprocessor/iterate.hpp"
\r
20 # include "boost/preprocessor/enum_params.hpp"
\r
21 # include "boost/preprocessor/comma_if.hpp"
\r
26 namespace is_function_ref_tester_ {
\r
29 boost::type_traits::no_type BOOST_TT_DECL is_function_ref_tester(T& ...);
\r
31 #if !defined(BOOST_TT_PREPROCESSING_MODE)
\r
32 // preprocessor-generated part, don't edit by hand!
\r
35 boost::type_traits::yes_type is_function_ref_tester(R (&)(), int);
\r
37 template <class R,class T0 >
\r
38 boost::type_traits::yes_type is_function_ref_tester(R (&)(T0), int);
\r
40 template <class R,class T0,class T1 >
\r
41 boost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1), int);
\r
43 template <class R,class T0,class T1,class T2 >
\r
44 boost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2), int);
\r
46 template <class R,class T0,class T1,class T2,class T3 >
\r
47 boost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3), int);
\r
49 template <class R,class T0,class T1,class T2,class T3,class T4 >
\r
50 boost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4), int);
\r
52 template <class R,class T0,class T1,class T2,class T3,class T4,class T5 >
\r
53 boost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5), int);
\r
55 template <class R,class T0,class T1,class T2,class T3,class T4,class T5,class T6 >
\r
56 boost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5,T6), int);
\r
58 template <class R,class T0,class T1,class T2,class T3,class T4,class T5,class T6,class T7 >
\r
59 boost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5,T6,T7), int);
\r
61 template <class R,class T0,class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8 >
\r
62 boost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5,T6,T7,T8), int);
\r
64 template <class R,class T0,class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8,class T9 >
\r
65 boost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5,T6,T7,T8,T9), int);
\r
67 template <class R,class T0,class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8,class T9,class T10 >
\r
68 boost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10), int);
\r
70 template <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 >
\r
71 boost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11), int);
\r
73 template <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 >
\r
74 boost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12), int);
\r
76 template <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 >
\r
77 boost::type_traits::yes_type is_function_ref_tester(R (&)(T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13), int);
\r
79 template <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 >
\r
80 boost::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);
\r
82 template <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 >
\r
83 boost::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);
\r
85 template <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 >
\r
86 boost::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);
\r
88 template <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 >
\r
89 boost::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);
\r
91 template <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 >
\r
92 boost::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);
\r
94 template <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 >
\r
95 boost::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);
\r
97 template <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 >
\r
98 boost::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);
\r
100 template <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 >
\r
101 boost::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);
\r
103 template <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 >
\r
104 boost::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);
\r
106 template <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 >
\r
107 boost::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);
\r
109 template <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 >
\r
110 boost::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);
\r
114 #define BOOST_PP_ITERATION_PARAMS_1 \
\r
115 (3, (0, 25, "boost/type_traits/detail/is_function_ref_tester.hpp"))
\r
116 #include BOOST_PP_ITERATE()
\r
118 #endif // BOOST_TT_PREPROCESSING_MODE
\r
120 } // namespace detail
\r
121 } // namespace python
\r
122 } // namespace boost
\r
124 #endif // BOOST_DETAIL_IS_FUNCTION_REF_TESTER_HPP_INCLUDED
\r
129 #define i BOOST_PP_FRAME_ITERATION(1)
\r
131 template <class R BOOST_PP_COMMA_IF(i) BOOST_PP_ENUM_PARAMS(i,class T) >
\r
132 boost::type_traits::yes_type is_function_ref_tester(R (&)(BOOST_PP_ENUM_PARAMS(i,T)), int);
\r
135 #endif // BOOST_PP_IS_ITERATING
\r