adapt_value_traits.hpp 866 B

1234567891011121314151617181920212223242526272829
  1. /*=============================================================================
  2. Copyright (c) 2001-2011 Joel de Guzman
  3. Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. ==============================================================================*/
  6. #if !defined(FUSION_ADAPT_VALUE_TRAITS_05062005_0859)
  7. #define FUSION_ADAPT_VALUE_TRAITS_05062005_0859
  8. #include <boost/fusion/support/config.hpp>
  9. #include <boost/fusion/iterator/value_of.hpp>
  10. namespace boost { namespace fusion { namespace detail
  11. {
  12. struct adapt_value_traits
  13. {
  14. template <typename Iterator>
  15. struct apply
  16. {
  17. typedef typename
  18. result_of::value_of<typename Iterator::first_type>::type
  19. type;
  20. };
  21. };
  22. }}}
  23. #endif