2 // (C) Copyright Tobias Schwinger
4 // Use modification and distribution are subject to the boost Software License,
5 // Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt).
7 //------------------------------------------------------------------------------
9 // no include guards, this file is intended for multiple inclusion
11 #if BOOST_FT_ARITY_LOOP_PREFIX
13 # ifndef BOOST_FT_DETAIL_COMPONENTS_IMPL_MASTER_HPP_INCLUDED
14 # define BOOST_FT_DETAIL_COMPONENTS_IMPL_MASTER_HPP_INCLUDED
15 # include <boost/preprocessor/cat.hpp>
16 # include <boost/preprocessor/facilities/empty.hpp>
17 # include <boost/preprocessor/facilities/identity.hpp>
18 # include <boost/preprocessor/arithmetic/dec.hpp>
19 # include <boost/preprocessor/punctuation/comma_if.hpp>
22 # define BOOST_FT_type_name
26 # define BOOST_FT_types \
27 R BOOST_PP_COMMA_IF(BOOST_FT_arity) BOOST_FT_params(BOOST_PP_EMPTY)
30 # define BOOST_FT_types \
31 R, typename class_transform<T0 BOOST_FT_cv, L>::type \
32 BOOST_PP_COMMA_IF(BOOST_PP_DEC(BOOST_FT_arity)) \
33 BOOST_FT_params(BOOST_PP_EMPTY)
37 #elif BOOST_FT_ARITY_LOOP_IS_ITERATING
39 template< BOOST_FT_tplargs(BOOST_PP_IDENTITY(typename)), typename L>
40 struct components_impl<BOOST_FT_type, L>
42 typedef encode_bits<BOOST_FT_flags,BOOST_FT_cc_id> bits;
43 typedef constant<BOOST_FT_full_mask> mask;
45 typedef function_types::components<BOOST_FT_type, L> type;
46 typedef components_mpl_sequence_tag tag;
48 typedef mpl::integral_c<std::size_t,BOOST_FT_arity> function_arity;
50 typedef BOOST_PP_CAT(mpl::vector,BOOST_FT_n)< BOOST_FT_types > types;
53 #elif BOOST_FT_ARITY_LOOP_SUFFIX
55 # undef BOOST_FT_types
56 # undef BOOST_FT_type_name
59 # error "attempt to use arity loop master file without loop"