size_impl.hpp 869 B

123456789101112131415161718192021222324252627282930
  1. /*=============================================================================
  2. Copyright (c) 2010 Christopher Schmidt
  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. #ifndef BOOST_FUSION_ADAPTED_ARRAY_SIZE_IMPL_HPP
  7. #define BOOST_FUSION_ADAPTED_ARRAY_SIZE_IMPL_HPP
  8. #include <boost/fusion/support/config.hpp>
  9. #include <boost/type_traits/rank.hpp>
  10. #include <boost/type_traits/extent.hpp>
  11. namespace boost { namespace fusion { namespace extension
  12. {
  13. template<typename>
  14. struct size_impl;
  15. template<>
  16. struct size_impl<po_array_tag>
  17. {
  18. template<typename Seq>
  19. struct apply
  20. : extent<Seq,rank<Seq>::value-1>
  21. {};
  22. };
  23. }}}
  24. #endif