repeated.hpp 632 B

123456789101112131415161718192021222324252627
  1. #ifndef BOOST_METAPARSE_V1_REPEATED_HPP
  2. #define BOOST_METAPARSE_V1_REPEATED_HPP
  3. // Copyright Abel Sinkovics (abel@sinkovics.hu) 2009 - 2010.
  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/foldl.hpp>
  8. #include <boost/metaparse/v1/impl/back_inserter.hpp>
  9. #include <boost/mpl/vector.hpp>
  10. namespace boost
  11. {
  12. namespace metaparse
  13. {
  14. namespace v1
  15. {
  16. template <class P>
  17. struct repeated : foldl<P, boost::mpl::vector<>, impl::back_inserter> {};
  18. }
  19. }
  20. }
  21. #endif