at_impl.hpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*=============================================================================
  2. Copyright (c) 2001-2011 Joel de Guzman
  3. Copyright (c) 2005-2006 Dan Marsden
  4. Copyright (c) 2009-2010 Christopher Schmidt
  5. Distributed under the Boost Software License, Version 1.0. (See accompanying
  6. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. ==============================================================================*/
  8. #ifndef BOOST_FUSION_ADAPTED_STRUCT_DETAIL_AT_IMPL_HPP
  9. #define BOOST_FUSION_ADAPTED_STRUCT_DETAIL_AT_IMPL_HPP
  10. #include <boost/mpl/int.hpp>
  11. namespace boost { namespace fusion { namespace extension
  12. {
  13. template<typename>
  14. struct at_impl;
  15. template <>
  16. struct at_impl<struct_tag>
  17. {
  18. template <typename Seq, typename N>
  19. struct apply
  20. : access::struct_member<
  21. typename remove_const<Seq>::type
  22. , N::value
  23. >::template apply<Seq>
  24. {};
  25. };
  26. template <>
  27. struct at_impl<assoc_struct_tag>
  28. : at_impl<struct_tag>
  29. {};
  30. }}}
  31. #endif