Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:31:06

0001 
0002 // (C) Copyright Tobias Schwinger
0003 //
0004 // Use modification and distribution are subject to the boost Software License,
0005 // Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt).
0006 
0007 //------------------------------------------------------------------------------
0008 
0009 #ifndef BOOST_FT_PARAMETER_TYPES_HPP_INCLUDED
0010 #define BOOST_FT_PARAMETER_TYPES_HPP_INCLUDED
0011 
0012 #include <boost/blank.hpp>
0013 #include <boost/mpl/if.hpp>
0014 
0015 #include <boost/mpl/aux_/lambda_support.hpp>
0016 
0017 #include <boost/mpl/pop_front.hpp>
0018 
0019 #include <boost/function_types/is_callable_builtin.hpp>
0020 #include <boost/function_types/components.hpp>
0021 
0022 namespace boost 
0023 { 
0024   namespace function_types 
0025   {
0026     using mpl::placeholders::_;
0027  
0028     template< typename T, typename ClassTypeTransform = add_reference<_> >
0029     struct parameter_types;
0030 
0031     namespace detail
0032     {
0033       template<typename T, typename ClassTypeTransform> 
0034       struct parameter_types_impl
0035         : mpl::pop_front
0036           < typename function_types::components<T,ClassTypeTransform>::types 
0037           >::type
0038       { };
0039     }
0040 
0041     template<typename T, typename ClassTypeTransform> struct parameter_types
0042       : mpl::if_
0043         < function_types::is_callable_builtin<T>
0044         , detail::parameter_types_impl<T,ClassTypeTransform>, boost::blank
0045         >::type
0046     {
0047       BOOST_MPL_AUX_LAMBDA_SUPPORT(2,parameter_types,(T,ClassTypeTransform)) 
0048     };
0049   }
0050 }
0051 
0052 #endif
0053