function_type.hpp 760 B

12345678910111213141516171819202122232425262728
  1. // (C) Copyright Tobias Schwinger
  2. //
  3. // Use modification and distribution are subject to the boost Software License,
  4. // Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt).
  5. //------------------------------------------------------------------------------
  6. #ifndef BOOST_FT_FUNCTION_TYPE_HPP_INCLUDED
  7. #define BOOST_FT_FUNCTION_TYPE_HPP_INCLUDED
  8. #include <boost/function_types/detail/synthesize.hpp>
  9. #include <boost/function_types/detail/to_sequence.hpp>
  10. namespace boost
  11. {
  12. namespace function_types
  13. {
  14. template<typename Types, typename Tag = null_tag> struct function_type
  15. : detail::synthesize_func<typename detail::to_sequence<Types>::type, Tag>
  16. {
  17. BOOST_MPL_AUX_LAMBDA_SUPPORT(2,function_type,(Types,Tag))
  18. };
  19. }
  20. }
  21. #endif