sequence_impl.hpp 839 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef BOOST_METAPARSE_V1_CPP98_IMPL_SEQUENCE_IMPL_HPP
  2. #define BOOST_METAPARSE_V1_CPP98_IMPL_SEQUENCE_IMPL_HPP
  3. // Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
  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/impl/apply_parser.hpp>
  8. #include <boost/metaparse/v1/accept.hpp>
  9. #include <boost/mpl/deque.hpp>
  10. #include <boost/mpl/fold.hpp>
  11. namespace boost
  12. {
  13. namespace metaparse
  14. {
  15. namespace v1
  16. {
  17. namespace impl
  18. {
  19. template <class Ps, class S, class Pos>
  20. struct sequence_impl :
  21. boost::mpl::fold<
  22. Ps,
  23. accept<boost::mpl::deque<>, S, Pos>,
  24. apply_parser
  25. >
  26. {};
  27. }
  28. }
  29. }
  30. }
  31. #endif