1 // Copyright Frank Mori Hess 2009
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)
8 // For more information, see http://www.boost.org
10 #ifndef BOOST_SIGNALS2_DETAIL_VARIADIC_ARG_TYPE_HPP
11 #define BOOST_SIGNALS2_DETAIL_VARIADIC_ARG_TYPE_HPP
21 template<unsigned, typename ... Args> class variadic_arg_type;
23 template<typename T, typename ... Args> class variadic_arg_type<0, T, Args...>
29 template<unsigned n, typename T, typename ... Args> class variadic_arg_type<n, T, Args...>
32 typedef typename variadic_arg_type<n - 1, Args...>::type type;
35 template <typename R, typename ... Args>
36 struct std_functional_base
38 template <typename R, typename T1>
39 struct std_functional_base<R, T1>: public std::unary_function<T1, R>
41 template <typename R, typename T1, typename T2>
42 struct std_functional_base<R, T1, T2>: public std::binary_function<T1, T2, R>
45 } // namespace signals2
49 #endif // BOOST_SIGNALS2_DETAIL_VARIADIC_ARG_TYPE_HPP