]> git.sesse.net Git - casparcg/blob - dependencies64/boost/boost/function_types/function_arity.hpp
Unpacked dependencies64
[casparcg] / dependencies64 / boost / boost / function_types / function_arity.hpp
1
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).
6
7 //------------------------------------------------------------------------------
8
9 #ifndef BOOST_FT_FUNCTION_ARITY_HPP_INCLUDED
10 #define BOOST_FT_FUNCTION_ARITY_HPP_INCLUDED
11
12 #include <boost/blank.hpp>
13 #include <boost/mpl/if.hpp>
14
15 #include <boost/mpl/aux_/lambda_support.hpp>
16 #include <boost/type_traits/detail/template_arity_spec.hpp>
17
18 #include <boost/function_types/is_callable_builtin.hpp>
19 #include <boost/function_types/components.hpp>
20
21 namespace boost 
22
23   namespace function_types 
24   {
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
30     {
31       BOOST_MPL_AUX_LAMBDA_SUPPORT(1,function_arity,(T)) 
32     };
33   }
34   BOOST_TT_AUX_TEMPLATE_ARITY_SPEC(1,function_types::function_arity)
35 }
36
37 #endif
38