[#range] [section range] [h1 Synopsis] template struct range; This is a [link parser parser]. [table Arguments [[Name] [Type]] [[`From`] [[link boxed_value boxed] character value]] [[`To`] [[link boxed_value boxed] character value]] ] [h1 Description] `range` 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` wrapped characters the following are equivalent: range accept_when, errors::unexpected_character> [h1 Example] #include #include #include #include #include #include using namespace boost::metaparse; using one_digit = range, std::integral_constant>; 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]