]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/asio/include/boost/asio/detail/variadic_templates.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / asio / include / boost / asio / detail / variadic_templates.hpp
CommitLineData
7c673cae
FG
1//
2// detail/variadic_templates.hpp
3// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4//
5// Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com)
6//
7// Distributed under the Boost Software License, Version 1.0. (See accompanying
8// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9//
10
11#ifndef BOOST_ASIO_DETAIL_VARIADIC_TEMPLATES_HPP
12#define BOOST_ASIO_DETAIL_VARIADIC_TEMPLATES_HPP
13
14#if defined(_MSC_VER) && (_MSC_VER >= 1200)
15# pragma once
16#endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17
18#include <boost/asio/detail/config.hpp>
19
20#if !defined(BOOST_ASIO_HAS_VARIADIC_TEMPLATES)
21
22# define BOOST_ASIO_VARIADIC_TPARAMS(n) BOOST_ASIO_VARIADIC_TPARAMS_##n
23
24# define BOOST_ASIO_VARIADIC_TPARAMS_1 \
25 typename T1
26# define BOOST_ASIO_VARIADIC_TPARAMS_2 \
27 typename T1, typename T2
28# define BOOST_ASIO_VARIADIC_TPARAMS_3 \
29 typename T1, typename T2, typename T3
30# define BOOST_ASIO_VARIADIC_TPARAMS_4 \
31 typename T1, typename T2, typename T3, typename T4
32# define BOOST_ASIO_VARIADIC_TPARAMS_5 \
33 typename T1, typename T2, typename T3, typename T4, typename T5
34
35# define BOOST_ASIO_VARIADIC_TARGS(n) BOOST_ASIO_VARIADIC_TARGS_##n
36
37# define BOOST_ASIO_VARIADIC_TARGS_1 x1
38# define BOOST_ASIO_VARIADIC_TARGS_2 x1, x2
39# define BOOST_ASIO_VARIADIC_TARGS_3 x1, x2, x3
40# define BOOST_ASIO_VARIADIC_TARGS_4 x1, x2, x3, x4
41# define BOOST_ASIO_VARIADIC_TARGS_5 x1, x2, x3, x4, x5
42
43# define BOOST_ASIO_VARIADIC_PARAMS(n) BOOST_ASIO_VARIADIC_PARAMS_##n
44
45# define BOOST_ASIO_VARIADIC_PARAMS_1 T1 x1
46# define BOOST_ASIO_VARIADIC_PARAMS_2 T1 x1, T2 x2
47# define BOOST_ASIO_VARIADIC_PARAMS_3 T1 x1, T2 x2, T3 x3
48# define BOOST_ASIO_VARIADIC_PARAMS_4 T1 x1, T2 x2, T3 x3, T4 x4
49# define BOOST_ASIO_VARIADIC_PARAMS_5 T1 x1, T2 x2, T3 x3, T4 x4, T5 x5
50
51# define BOOST_ASIO_VARIADIC_ARGS(n) BOOST_ASIO_VARIADIC_ARGS_##n
52
53# define BOOST_ASIO_VARIADIC_ARGS_1 x1
54# define BOOST_ASIO_VARIADIC_ARGS_2 x1, x2
55# define BOOST_ASIO_VARIADIC_ARGS_3 x1, x2, x3
56# define BOOST_ASIO_VARIADIC_ARGS_4 x1, x2, x3, x4
57# define BOOST_ASIO_VARIADIC_ARGS_5 x1, x2, x3, x4, x5
58
59# define BOOST_ASIO_VARIADIC_GENERATE(m) m(1) m(2) m(3) m(4) m(5)
60
61#endif // !defined(BOOST_ASIO_HAS_VARIADIC_TEMPLATES)
62
63#endif // BOOST_ASIO_DETAIL_VARIADIC_TEMPLATES_HPP