fix doc example typo
[boost.git] / boost / typeof / register_functions.hpp
blob2af7cecb71534250a1d2248695864c51c8d44f91
1 // Copyright (C) 2004 Arkadiy Vertleyb
2 // Use, modification and distribution is subject to the Boost Software
3 // License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt)
5 #ifndef BOOST_TYPEOF_REGISTER_FUNCTIONS_HPP_INCLUDED
6 #define BOOST_TYPEOF_REGISTER_FUNCTIONS_HPP_INCLUDED
8 #include <boost/preprocessor/repetition/enum.hpp>
9 #include <boost/preprocessor/repetition/enum_params.hpp>
10 #include <boost/preprocessor/repetition/enum_trailing_params.hpp>
11 #include <boost/preprocessor/cat.hpp>
12 #include <boost/preprocessor/inc.hpp>
13 #include <boost/preprocessor/dec.hpp>
14 #include <boost/preprocessor/if.hpp>
15 #include <boost/preprocessor/arithmetic/add.hpp>
16 #include <boost/preprocessor/iteration/iterate.hpp>
18 #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
20 #ifndef BOOST_TYPEOF_LIMIT_FUNCTION_ARITY
21 #define BOOST_TYPEOF_LIMIT_FUNCTION_ARITY 10
22 #endif
24 enum
26 FUN_ID = BOOST_TYPEOF_UNIQUE_ID(),
27 FUN_PTR_ID = FUN_ID + 1 * BOOST_PP_INC(BOOST_TYPEOF_LIMIT_FUNCTION_ARITY),
28 FUN_REF_ID = FUN_ID + 2 * BOOST_PP_INC(BOOST_TYPEOF_LIMIT_FUNCTION_ARITY),
29 MEM_FUN_ID = FUN_ID + 3 * BOOST_PP_INC(BOOST_TYPEOF_LIMIT_FUNCTION_ARITY),
30 CONST_MEM_FUN_ID = FUN_ID + 4 * BOOST_PP_INC(BOOST_TYPEOF_LIMIT_FUNCTION_ARITY),
31 VOLATILE_MEM_FUN_ID = FUN_ID + 5 * BOOST_PP_INC(BOOST_TYPEOF_LIMIT_FUNCTION_ARITY),
32 VOLATILE_CONST_MEM_FUN_ID = FUN_ID + 6 * BOOST_PP_INC(BOOST_TYPEOF_LIMIT_FUNCTION_ARITY)
35 BOOST_TYPEOF_BEGIN_ENCODE_NS
37 # define BOOST_PP_ITERATION_LIMITS (0, BOOST_TYPEOF_LIMIT_FUNCTION_ARITY)
38 # define BOOST_PP_FILENAME_1 <boost/typeof/register_functions_iterate.hpp>
39 # include BOOST_PP_ITERATE()
41 BOOST_TYPEOF_END_ENCODE_NS
43 #endif//BOOST_TYPEOF_REGISTER_FUNCTIONS_HPP_INCLUDED