foldl.cpp 604 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/foldl.hpp>
  6. #include <boost/metaparse/v1/impl/back_inserter.hpp>
  7. #include <boost/mpl/vector.hpp>
  8. using boost::metaparse::foldl;
  9. using boost::metaparse::v1::impl::back_inserter;
  10. using boost::mpl::vector;
  11. namespace
  12. {
  13. template <class P>
  14. struct repeated : foldl<P, vector<>, back_inserter> {};
  15. }
  16. #define TEST_NAME foldl
  17. #include "repeated_test.hpp"