array_size.hpp 868 B

12345678910111213141516171819202122232425
  1. /*=============================================================================
  2. Copyright (c) 2013 Mateusz Loskot
  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(BOOST_FUSION_STD_ARRAY_ARRAY_SIZE_01062013_1700)
  7. #define BOOST_FUSION_STD_ARRAY_ARRAY_SIZE_01062013_1700
  8. #include <cstddef>
  9. #include <boost/type_traits/integral_constant.hpp>
  10. namespace boost { namespace fusion
  11. {
  12. namespace extension
  13. {
  14. template<class T>
  15. struct std_array_size;
  16. template<template<typename, std::size_t> class Array, typename T, std::size_t N>
  17. struct std_array_size<Array<T, N> > : boost::integral_constant<std::size_t, N> {};
  18. }
  19. }}
  20. #endif