Match a repeating number of elements
Synopses
Match a repeating number of elements
template<Rule R>
constexpr
/* implementation-defined */
range_rule(
    R const& next,
    std::size_t N = 0,
    std::size_t M = std::size_t(‐1)) noexcept;Match a repeating number of elements
template<
    Rule R1,
    Rule R2>
constexpr
/* implementation-defined */
range_rule(
    R1 const& first,
    R2 const& next,
    std::size_t N = 0,
    std::size_t M = std::size_t(‐1)) noexcept
requires ! std::is_integral<R2>::value;Return Value
A rule that matches the range.
Parameters
| Name | Description | 
| next | The rule to use for matching each element. The range extends until this rule returns an error. | 
| N | The minimum number of elements for the range to be valid. If omitted, this defaults to zero. | 
| M | The maximum number of elements for the range to be valid. If omitted, this defaults to unlimited. | 
| first | The rule to use for matching the first element. If this rule returns an error, the range is empty. | 
See Also
alpha_chars, delim_rule, error::end_of_range, parse, range, tuple_rule, squelch.
Created with MrDocs