sequence_size.hpp 723 B

123456789101112131415161718192021
  1. // (C) Copyright Edward Diener 2011-2015
  2. // Use, modification and distribution are subject to the Boost Software License,
  3. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt).
  5. #if !defined(BOOST_VMD_DETAIL_SEQUENCE_SIZE_HPP)
  6. #define BOOST_VMD_DETAIL_SEQUENCE_SIZE_HPP
  7. #include <boost/preprocessor/array/size.hpp>
  8. #include <boost/vmd/detail/sequence_to_array.hpp>
  9. #define BOOST_VMD_DETAIL_SEQUENCE_SIZE(vseq) \
  10. BOOST_PP_ARRAY_SIZE(BOOST_VMD_DETAIL_SEQUENCE_TO_ARRAY(vseq)) \
  11. /**/
  12. #define BOOST_VMD_DETAIL_SEQUENCE_SIZE_D(d,vseq) \
  13. BOOST_PP_ARRAY_SIZE(BOOST_VMD_DETAIL_SEQUENCE_TO_ARRAY_D(d,vseq)) \
  14. /**/
  15. #endif /* BOOST_VMD_DETAIL_SEQUENCE_SIZE_HPP */