foldr_reject_incomplete.hpp 879 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef BOOST_METAPARSE_V1_FOLDR_REJECT_INCOMPLETE_HPP
  2. #define BOOST_METAPARSE_V1_FOLDR_REJECT_INCOMPLETE_HPP
  3. // Copyright Abel Sinkovics (abel@sinkovics.hu) 2015.
  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/return_.hpp>
  8. #include <boost/metaparse/v1/foldr_start_with_parser.hpp>
  9. #include <boost/metaparse/v1/first_of.hpp>
  10. #include <boost/metaparse/v1/fail_at_first_char_expected.hpp>
  11. namespace boost
  12. {
  13. namespace metaparse
  14. {
  15. namespace v1
  16. {
  17. template <class P, class State, class BackwardOp>
  18. struct foldr_reject_incomplete :
  19. foldr_start_with_parser<
  20. P,
  21. first_of<return_<State>, fail_at_first_char_expected<P> >,
  22. BackwardOp
  23. >
  24. {};
  25. }
  26. }
  27. }
  28. #endif