template_params.hpp 967 B

1234567891011121314151617181920212223242526
  1. // (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
  2. // (C) Copyright 2003-2007 Jonathan Turkanis
  3. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
  5. // See http://www.boost.org/libs/iostreams for documentation.
  6. #ifndef BOOST_IOSTREAMS_DETAIL_TEMPLATE_PARAMS_HPP_INCLUDED
  7. #include <boost/preprocessor/control/expr_if.hpp>
  8. #include <boost/preprocessor/control/if.hpp>
  9. #include <boost/preprocessor/repetition/enum_params.hpp>
  10. #define BOOST_IOSTREAMS_TEMPLATE_PARAMS(arity, param) \
  11. BOOST_PP_EXPR_IF(arity, template<) \
  12. BOOST_PP_ENUM_PARAMS(arity, typename param) \
  13. BOOST_PP_EXPR_IF(arity, >) \
  14. /**/
  15. #define BOOST_IOSTREAMS_TEMPLATE_ARGS(arity, param) \
  16. BOOST_PP_EXPR_IF(arity, <) \
  17. BOOST_PP_ENUM_PARAMS(arity, param) \
  18. BOOST_PP_EXPR_IF(arity, >) \
  19. /**/
  20. #endif // #ifndef BOOST_IOSTREAMS_DETAIL_BUFFERS_HPP_INCLUDED