/Src/Dependencies/Boost/boost/fusion/container/vector/detail/value_at_impl.hpp

http://hadesmem.googlecode.com/ · C++ Header · 33 lines · 22 code · 5 blank · 6 comment · 0 complexity · 7e080a98f09fe8d01b61c7784facb62c MD5 · raw file

  1. /*=============================================================================
  2. Copyright (c) 2001-2006 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_VALUE_AT_IMPL_05052005_0232)
  7. #define FUSION_VALUE_AT_IMPL_05052005_0232
  8. #include <boost/mpl/at.hpp>
  9. namespace boost { namespace fusion
  10. {
  11. struct vector_tag;
  12. namespace extension
  13. {
  14. template <typename Tag>
  15. struct value_at_impl;
  16. template <>
  17. struct value_at_impl<vector_tag>
  18. {
  19. template <typename Sequence, typename N>
  20. struct apply
  21. {
  22. typedef typename mpl::at<typename Sequence::types, N>::type type;
  23. };
  24. };
  25. }
  26. }}
  27. #endif