[#lit] [section lit] [h1 Synopsis] template struct lit; This is a [link parser parser]. [table Arguments [[Name] [Type]] [[`C`] [[link boxed_value boxed] character value]] ] [h1 Description] Parser accepting only the `C` character. The result of parsing is the accepted character. [h1 Header] #include [h1 Expression semantics] For any `c` boxed character the following are equivalent: lit accept_when< one_char, boost::mpl::lambda>::type, error::literal_expected > [h1 Example] #include #include #include #include #include #include using namespace boost::metaparse; static_assert( is_error< lit> ::apply >::type::value, "a different character should be an error" ); static_assert( is_error< lit> ::apply >::type::value, "empty input should be an error" ); static_assert( get_result< lit> ::apply >::type::value == 'x', "result of parsing should be the accepted character" ); [endsect]