foldl1.cpp 610 B

12345678910111213141516171819202122232425
  1. // Copyright Abel Sinkovics (abel@sinkovics.hu) 2011.
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. #include <boost/metaparse/foldl1.hpp>
  6. #include <boost/metaparse/v1/impl/back_inserter.hpp>
  7. #include <boost/mpl/vector.hpp>
  8. using boost::metaparse::foldl1;
  9. using boost::metaparse::v1::impl::back_inserter;
  10. using boost::mpl::vector;
  11. namespace
  12. {
  13. template <class P>
  14. struct repeated1 : foldl1<P, vector<>, back_inserter> {};
  15. }
  16. #define TEST_NAME foldl1
  17. #include "repeated1_test.hpp"