repeated1.hpp 651 B

1234567891011121314151617181920212223242526272829
  1. #ifndef BOOST_METAPARSE_V1_REPEATED1_HPP
  2. #define BOOST_METAPARSE_V1_REPEATED1_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/foldl1.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 repeated1 :
  18. foldl1<P, boost::mpl::vector<>, impl::back_inserter>
  19. {};
  20. }
  21. }
  22. }
  23. #endif