Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template repeat

boost::parser::repeat

Synopsis

// In header: <boost/parser/parser.hpp>


template<typename MinType, typename MaxType, typename DelimiterParser> 
  repeat_directive< MinType, MaxType, DelimiterParser > 
  repeat(MinType min_, MaxType max_, parser_interface< DelimiterParser > sep);

Description

Returns a repeat_directive that repeats between min_ and max_ times, inclusive, where the items parsed are delimited by DelimiterParser. The value returned has an operator[] that returns a parser_interface<repeat_parser<P>> from a given parser of type parser_interface<P>.


PrevUpHomeNext