size_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_SIZE_IMPL_01062013_1700)
  9. #define BOOST_FUSION_STD_ARRAY_SIZE_IMPL_01062013_1700
  10. #include <boost/fusion/adapted/std_array/detail/array_size.hpp>
  11. #include <boost/type_traits/remove_const.hpp>
  12. namespace boost { namespace fusion {
  13. struct std_array_tag;
  14. namespace extension
  15. {
  16. template<typename T>
  17. struct size_impl;
  18. template<>
  19. struct size_impl<std_array_tag>
  20. {
  21. template<typename Sequence>
  22. struct apply
  23. : mpl::int_
  24. <
  25. std_array_size
  26. <
  27. typename remove_const<Sequence>::type
  28. >::value
  29. >
  30. {};
  31. };
  32. }
  33. }}
  34. #endif