at.hpp 861 B

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