2 // (C) Copyright Tobias Schwinger
4 // Use modification and distribution are subject to the boost Software License,
5 // Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt).
7 //------------------------------------------------------------------------------
9 #ifndef BOOST_FT_FUNCTION_ARITY_HPP_INCLUDED
10 #define BOOST_FT_FUNCTION_ARITY_HPP_INCLUDED
12 #include <boost/blank.hpp>
13 #include <boost/mpl/if.hpp>
15 #include <boost/mpl/aux_/lambda_support.hpp>
16 #include <boost/type_traits/detail/template_arity_spec.hpp>
18 #include <boost/function_types/is_callable_builtin.hpp>
19 #include <boost/function_types/components.hpp>
23 namespace function_types
25 template<typename T
> struct function_arity
27 < function_types::is_callable_builtin
<T
>
28 , typename components
<T
>::function_arity
, boost::blank
31 BOOST_MPL_AUX_LAMBDA_SUPPORT(1,function_arity
,(T
))
34 BOOST_TT_AUX_TEMPLATE_ARITY_SPEC(1,function_types::function_arity
)