]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/signals2/include/boost/signals2/detail/variadic_arg_type.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / signals2 / include / boost / signals2 / detail / variadic_arg_type.hpp
CommitLineData
7c673cae
FG
1// Copyright Frank Mori Hess 2009
2//
3// Use, modification and
4// distribution is subject to the Boost Software License, Version
5// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6// http://www.boost.org/LICENSE_1_0.txt)
7
8// For more information, see http://www.boost.org
9
10#ifndef BOOST_SIGNALS2_DETAIL_VARIADIC_ARG_TYPE_HPP
11#define BOOST_SIGNALS2_DETAIL_VARIADIC_ARG_TYPE_HPP
12
13#include <functional>
14
15namespace boost
16{
17 namespace signals2
18 {
19 namespace detail
20 {
21 template<unsigned, typename ... Args> class variadic_arg_type;
22
23 template<typename T, typename ... Args> class variadic_arg_type<0, T, Args...>
24 {
25 public:
26 typedef T type;
27 };
28
29 template<unsigned n, typename T, typename ... Args> class variadic_arg_type<n, T, Args...>
30 {
31 public:
32 typedef typename variadic_arg_type<n - 1, Args...>::type type;
33 };
34
35 template <typename R, typename ... Args>
36 struct std_functional_base
37 {};
38 template <typename R, typename T1>
39 struct std_functional_base<R, T1>: public std::unary_function<T1, R>
40 {};
41 template <typename R, typename T1, typename T2>
42 struct std_functional_base<R, T1, T2>: public std::binary_function<T1, T2, R>
43 {};
44 } // namespace detail
45 } // namespace signals2
46} // namespace boost
47
48
49#endif // BOOST_SIGNALS2_DETAIL_VARIADIC_ARG_TYPE_HPP