source: NonGTP/Boost/boost/iostreams/detail/template_params.hpp @ 857

Revision 857, 921 bytes checked in by igarcia, 18 years ago (diff)
Line 
1// (C) Copyright Jonathan Turkanis 2003.
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.)
4
5// See http://www.boost.org/libs/iostreams for documentation.
6
7#ifndef BOOST_IOSTREAMS_DETAIL_TEMPLATE_PARAMS_HPP_INCLUDED
8
9#include <boost/preprocessor/control/expr_if.hpp>
10#include <boost/preprocessor/control/if.hpp>
11#include <boost/preprocessor/repetition/enum_params.hpp>
12
13#define BOOST_IOSTREAMS_TEMPLATE_PARAMS(arity, param) \
14    BOOST_PP_EXPR_IF(arity, template<) \
15    BOOST_PP_ENUM_PARAMS(arity, typename param) \
16    BOOST_PP_EXPR_IF(arity, >) \
17    /**/
18
19#define BOOST_IOSTREAMS_TEMPLATE_ARGS(arity, param) \
20    BOOST_PP_EXPR_IF(arity, <) \
21    BOOST_PP_ENUM_PARAMS(arity, param) \
22    BOOST_PP_EXPR_IF(arity, >) \
23    /**/
24
25#endif // #ifndef BOOST_IOSTREAMS_DETAIL_BUFFERS_HPP_INCLUDED
Note: See TracBrowser for help on using the repository browser.