[#lit_c] [section lit_c] [h1 Synopsis] template struct lit; This is a [link parser parser]. [table Arguments [[Name] [Type]] [[`C`] [`char` 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` character the following are equivalent: lit_c lit> [h1 Example] #include #include #include #include #include using namespace boost::metaparse; static_assert( is_error::apply>::type::value, "a different character should be an error" ); static_assert( is_error::apply>::type::value, "empty input should be an error" ); static_assert( get_result< lit_c<'x'>::apply >::type::value == 'x', "result of parsing should be the accepted character" ); [endsect]