Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Function template repeat

boost::parser::repeat

Synopsis

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


template<typename MinType, typename MaxType> 
  constexpr repeat_directive< MinType, MaxType > 
  repeat(MinType min_, MaxType max_);

Description

Returns a repeat_directive that repeats between min_ and max_ times, inclusive, and whose operator[] returns a parser_interface<repeat_parser<P>> from a given parser of type parser_interface<P>.


PrevUpHomeNext