1 #ifndef BOOST_METAPARSE_V1_FOLDR_REJECT_INCOMPLETE_HPP 2 #define BOOST_METAPARSE_V1_FOLDR_REJECT_INCOMPLETE_HPP 3 4 // Copyright Abel Sinkovics (abel@sinkovics.hu) 2015. 5 // Distributed under the Boost Software License, Version 1.0. 6 // (See accompanying file LICENSE_1_0.txt or copy at 7 // http://www.boost.org/LICENSE_1_0.txt) 8 9 #include <boost/metaparse/v1/return_.hpp> 10 #include <boost/metaparse/v1/foldr_start_with_parser.hpp> 11 #include <boost/metaparse/v1/first_of.hpp> 12 #include <boost/metaparse/v1/fail_at_first_char_expected.hpp> 13 14 namespace boost 15 { 16 namespace metaparse 17 { 18 namespace v1 19 { 20 template <class P, class State, class BackwardOp> 21 struct foldr_reject_incomplete : 22 foldr_start_with_parser< 23 P, 24 first_of<return_<State>, fail_at_first_char_expected<P> >, 25 BackwardOp 26 > 27 {}; 28 } 29 } 30 } 31 32 #endif 33 34