begin_impl.hpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*=============================================================================
  2. Copyright (c) 2013 Mateusz Loskot
  3. Copyright (c) 2001-2011 Joel de Guzman
  4. Copyright (c) 2005-2006 Dan Marsden
  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. #if !defined(BOOST_FUSION_STD_ARRAY_BEGIN_OF_IMPL_01062013_1700)
  9. #define BOOST_FUSION_STD_ARRAY_BEGIN_OF_IMPL_01062013_1700
  10. #include <boost/fusion/adapted/std_array/std_array_iterator.hpp>
  11. namespace boost { namespace fusion {
  12. struct std_array_tag;
  13. namespace extension
  14. {
  15. template<typename T>
  16. struct begin_impl;
  17. template <>
  18. struct begin_impl<std_array_tag>
  19. {
  20. template <typename Sequence>
  21. struct apply
  22. {
  23. typedef std_array_iterator<Sequence, 0> type;
  24. static type
  25. call(Sequence& v)
  26. {
  27. return type(v);
  28. }
  29. };
  30. };
  31. }
  32. }}
  33. #endif