value_at_impl.hpp 923 B

12345678910111213141516171819202122232425262728293031
  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(BOOST_FUSION_VALUE_AT_IMPL_09262006_1926)
  7. #define BOOST_FUSION_VALUE_AT_IMPL_09262006_1926
  8. #include <boost/fusion/support/config.hpp>
  9. #include <boost/tuple/tuple.hpp>
  10. namespace boost { namespace fusion
  11. {
  12. struct boost_tuple_tag;
  13. namespace extension
  14. {
  15. template<typename T>
  16. struct value_at_impl;
  17. template <>
  18. struct value_at_impl<boost_tuple_tag>
  19. {
  20. template <typename Sequence, typename N>
  21. struct apply : tuples::element<N::value, Sequence> {};
  22. };
  23. }
  24. }}
  25. #endif