[#range_c] [section range_c] [h1 Synopsis] template struct range_c; This is a [link parser parser]. [table Arguments [[Name] [Type]] [[`From`] [character value]] [[`To`] [character value]] ] [h1 Description] `range_c` accepts one character in the range `[From..To]`. The result of the parser is the accepted character. [h1 Header] #include [h1 Expression semantics] For any `A`, `B` characters the following are equivalent: range_c accept_when< one_char, util::in_range_c, errors::unexpected_character > [h1 Example] #include #include #include #include #include using namespace boost::metaparse; using one_digit = range_c<'0', '9'>; static_assert( !is_error>::type::value, "one_digit should accept a digit" ); static_assert( is_error>::type::value, "one_digit should reject a value outside of ['0'..'9']" ); static_assert( get_result< one_digit::apply >::type::value == '0', "the result of parsing should be the character value" ); [endsect]