⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 function_type_parameters.hpp

📁 机器人开源项目orocos的源代码
💻 HPP
字号:
// (C) Copyright Jonathan Turkanis and Tobias Schwinger//// Use modification and distribution are subject to the boost Software License,// Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt).#ifndef BOOST_FT_FUNCTION_TYPE_PARAMETERS_HPP_INCLUDED#define BOOST_FT_FUNCTION_TYPE_PARAMETERS_HPP_INCLUDED//------------------------------------------------------------------------------#include <boost/mpl/pop_front.hpp>// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -#include <boost/function_types/function_type_signature.hpp>//------------------------------------------------------------------------------namespace boost {//------------------------------------------------------------------------------namespace function_types {  namespace detail  {    template<typename S,typename K> struct parameters_impl    { };    template<typename S> struct parameters_impl<S,static_function>      : mpl::pop_front<S>    { };    template<typename S> struct parameters_impl<S,member_function>      : mpl::pop_front< typename mpl::pop_front<S>::type >    { };  }  template<typename T> struct function_type_parameters    : detail::parameters_impl      < typename function_type_signature<T>::types       , typename detail::tag_core_type_id        < typename function_type_signature<T>::kind >::type      >  { };}using function_types::function_type_parameters;//------------------------------------------------------------------------------} // namespace ::boost//------------------------------------------------------------------------------#endif // ndef BOOST_FT_FUNCTION_TYPE_PARAMETERS_HPP_INCLUDED// (C) Copyright Jonathan Turkanis and Tobias Schwinger//// Use modification and distribution are subject to the boost Software License,// Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt).#ifndef BOOST_FT_FUNCTION_TYPE_PARAMETERS_HPP_INCLUDED#define BOOST_FT_FUNCTION_TYPE_PARAMETERS_HPP_INCLUDED//------------------------------------------------------------------------------#include <boost/mpl/pop_front.hpp>// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -#include <boost/function_types/function_type_signature.hpp>//------------------------------------------------------------------------------namespace boost {//------------------------------------------------------------------------------namespace function_types {  namespace detail  {    template<typename S,typename K> struct parameters_impl    { };    template<typename S> struct parameters_impl<S,static_function>      : mpl::pop_front<S>    { };    template<typename S> struct parameters_impl<S,member_function>      : mpl::pop_front< typename mpl::pop_front<S>::type >    { };  }  template<typename T> struct function_type_parameters    : detail::parameters_impl      < typename function_type_signature<T>::types       , typename detail::tag_core_type_id        < typename function_type_signature<T>::kind >::type      >  { };}using function_types::function_type_parameters;//------------------------------------------------------------------------------} // namespace ::boost//------------------------------------------------------------------------------#endif // ndef BOOST_FT_FUNCTION_TYPE_PARAMETERS_HPP_INCLUDED

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -