1 2 // Copyright (C) 2009-2012 Lorenzo Caminiti 3 // Distributed under the Boost Software License, Version 1.0 4 // (see accompanying file LICENSE_1_0.txt or a copy at 5 // http://www.boost.org/LICENSE_1_0.txt) 6 // Home at http://www.boost.org/libs/local_function 7 8 #ifndef BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS_BINDS_HPP_ 9 #define BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS_BINDS_HPP_ 10 11 #include <boost/local_function/aux_/preprocessor/traits/decl_/index.hpp> 12 #include <boost/preprocessor/tuple/elem.hpp> 13 #include <boost/preprocessor/list/transform.hpp> 14 15 // PRIVATE // 16 17 #define BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS_BIND_APPLY_( \ 18 d, bind_macro, bind_traits) \ 19 bind_macro(bind_traits) 20 21 // PUBLIC // 22 23 // Expand: pp-list of non-const bind-traits. 24 #define BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS_BINDS(decl_traits) \ 25 BOOST_PP_TUPLE_ELEM(BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS_INDEX_MAX, \ 26 BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS_INDEX_BINDS, decl_traits) 27 28 // Expand: pp-list non-const bind-this-traits (size <= 1 after validation). 29 #define BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS_BIND_THIS_TYPES(decl_traits) \ 30 BOOST_PP_TUPLE_ELEM(BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS_INDEX_MAX, \ 31 BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS_INDEX_BIND_THIS_TYPES, \ 32 decl_traits) 33 34 #endif // #include guard 35 36