[#last_of] [section last_of] [h1 Synopsis] template struct last_of; This is a [link parser_combinator parser combinator]. [table Arguments [[Name] [Type]] [[`P1` .. `Pn`] [[link parser parser]]] ] [h1 Description] `last_of` applies the `P1` ... `Pn` parsers in sequence. It accepts an input when all parsers accept it. The result of parsing is the result of the last parser. [h1 Header] #include [h1 Expression semantics] For any `p1`, ... `pn` parsers first_of is equivalent to nth_of_c [h1 Example] #include #include #include #include #include #include #include #include using namespace boost::metaparse; using comma_int = last_of, int_>; static_assert( is_error>::type::value, "int without comma is rejected" ); static_assert( get_result< comma_int::apply >::type::value, "the result is the result of the last parser" ); [endsect]