Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template repeat

boost::parser::repeat

Synopsis

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


template<typename T, typename DelimiterParser> 
  repeat_directive< T, T, DelimiterParser > 
  repeat(T n, parser_interface< DelimiterParser > sep);

Description

Returns a repeat_directive that repeats exactly n times, 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