at.hpp 904 B

12345678910111213141516171819202122232425262728293031323334
  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_AT_10022005_1616)
  7. #define FUSION_AT_10022005_1616
  8. #include <boost/fusion/support/config.hpp>
  9. #include <boost/mpl/at.hpp>
  10. #include <boost/fusion/sequence/intrinsic/value_at.hpp>
  11. namespace boost {
  12. namespace fusion
  13. {
  14. struct fusion_sequence_tag;
  15. }
  16. namespace mpl
  17. {
  18. template <typename Tag>
  19. struct at_impl;
  20. template <>
  21. struct at_impl<fusion::fusion_sequence_tag>
  22. {
  23. template <typename Sequence, typename N>
  24. struct apply : fusion::result_of::value_at<Sequence, N> {};
  25. };
  26. }}
  27. #endif