dtfunction.hpp 982 B

1234567891011121314151617181920212223242526272829303132333435
  1. // (C) Copyright Edward Diener 2011,2012,2013
  2. // Use, modification and distribution are subject to the Boost Software License,
  3. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt).
  5. #if !defined(BOOST_TTI_DETAIL_TFUNCTION_HPP)
  6. #define BOOST_TTI_DETAIL_TFUNCTION_HPP
  7. #include <boost/config.hpp>
  8. #include <boost/mpl/push_front.hpp>
  9. #include <boost/function_types/function_type.hpp>
  10. namespace boost
  11. {
  12. namespace tti
  13. {
  14. namespace detail
  15. {
  16. template
  17. <
  18. class BOOST_TTI_DETAIL_TP_R,
  19. class BOOST_TTI_DETAIL_TP_FS,
  20. class BOOST_TTI_DETAIL_TP_TAG
  21. >
  22. struct tfunction_seq
  23. {
  24. typedef typename boost::mpl::push_front<BOOST_TTI_DETAIL_TP_FS,BOOST_TTI_DETAIL_TP_R>::type ftseq;
  25. typedef typename boost::function_types::function_type<ftseq,BOOST_TTI_DETAIL_TP_TAG>::type type;
  26. };
  27. }
  28. }
  29. }
  30. #endif // BOOST_TTI_DETAIL_TFUNCTION_HPP