fix doc example typo
[boost.git] / boost / function_types / function_arity.hpp
blob40f0f653cc7d3de8f4dd1505c12ea58f56aa9eb2
2 // (C) Copyright Tobias Schwinger
3 //
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>
21 namespace boost
23 namespace function_types
25 template<typename T> struct function_arity
26 : mpl::if_
27 < function_types::is_callable_builtin<T>
28 , typename components<T>::function_arity, boost::blank
29 >::type
31 BOOST_MPL_AUX_LAMBDA_SUPPORT(1,function_arity,(T))
34 BOOST_TT_AUX_TEMPLATE_ARITY_SPEC(1,function_types::function_arity)
37 #endif