1 // Copyright (C) 2005 Arkadiy Vertleyb
2 // Distributed under the Boost Software License, Version 1.0. (See accompanying
3 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5 #ifndef BOOST_TYPEOF_TYPE_TEMPLATE_PARAM_HPP_INCLUDED
6 #define BOOST_TYPEOF_TYPE_TEMPLATE_PARAM_HPP_INCLUDED
8 #define BOOST_TYPEOF_class_BOOST_TYPEOF (class)
9 #define BOOST_TYPEOF_typename_BOOST_TYPEOF (typename)
11 #define BOOST_TYPEOF_MAKE_OBJ_class BOOST_TYPEOF_TYPE_PARAM
12 #define BOOST_TYPEOF_MAKE_OBJ_typename BOOST_TYPEOF_TYPE_PARAM
14 #define BOOST_TYPEOF_TYPE_PARAM\
17 #define BOOST_TYPEOF_TYPE_PARAM_EXPANDTYPE(Param) class
19 // TYPE_PARAM "virtual functions" implementation
21 #define BOOST_TYPEOF_TYPE_PARAM_ENCODE(This, n)\
22 typedef typename boost::type_of::encode_type<\
25 >::type BOOST_PP_CAT(V, BOOST_PP_INC(n));
27 #define BOOST_TYPEOF_TYPE_PARAM_DECODE(This, n)\
28 typedef boost::type_of::decode_type< BOOST_PP_CAT(iter, n) > BOOST_PP_CAT(d, n);\
29 typedef typename BOOST_PP_CAT(d, n)::type BOOST_PP_CAT(P, n);\
30 typedef typename BOOST_PP_CAT(d, n)::iter BOOST_PP_CAT(iter, BOOST_PP_INC(n));
32 #define BOOST_TYPEOF_TYPE_PARAM_PLACEHOLDER(Param) int
33 #define BOOST_TYPEOF_TYPE_PARAM_DECLARATION_TYPE(Param) class
34 #define BOOST_TYPEOF_TYPE_PARAM_PLACEHOLDER_TYPES(Param, n) BOOST_PP_CAT(T,n)
35 #define BOOST_TYPEOF_TYPE_PARAM_ISTEMPLATE 0
37 #endif//BOOST_TYPEOF_TYPE_TEMPLATE_PARAM_HPP_INCLUDED