key_of_impl.hpp 897 B

1234567891011121314151617181920212223242526272829
  1. /*=============================================================================
  2. Copyright (c) 2009-2010 Christopher Schmidt
  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. #ifndef BOOST_FUSION_ADAPTED_STRUCT_DETAIL_KEY_OF_IMPL_HPP
  7. #define BOOST_FUSION_ADAPTED_STRUCT_DETAIL_KEY_OF_IMPL_HPP
  8. namespace boost { namespace fusion { namespace extension
  9. {
  10. template <typename>
  11. struct key_of_impl;
  12. template <>
  13. struct key_of_impl<struct_iterator_tag>
  14. {
  15. template <typename It>
  16. struct apply
  17. : extension::struct_assoc_key<
  18. typename remove_const<typename It::seq_type>::type
  19. , It::index::value
  20. >
  21. {};
  22. };
  23. }}}
  24. #endif