int_.hpp 598 B

12345678910111213141516171819202122232425
  1. #ifndef BOOST_METAPARSE_V1_INT__HPP
  2. #define BOOST_METAPARSE_V1_INT__HPP
  3. // Copyright Abel Sinkovics (abel@sinkovics.hu) 2011.
  4. // Distributed under the Boost Software License, Version 1.0.
  5. // (See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. #include <boost/metaparse/v1/digit_val.hpp>
  8. #include <boost/metaparse/v1/foldl1.hpp>
  9. #include <boost/metaparse/v1/impl/next_digit.hpp>
  10. namespace boost
  11. {
  12. namespace metaparse
  13. {
  14. namespace v1
  15. {
  16. typedef foldl1<digit_val, boost::mpl::int_<0>, impl::next_digit> int_;
  17. }
  18. }
  19. }
  20. #endif