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

Click here to view the latest version of this page.
PrevUpHomeNext

Function template keep

boost::xpressive::keep — Create an independent sub-expression.

Synopsis

template<typename Expr> unspecified keep(Expr const & expr);

Description

Turn off back-tracking for a sub-expression. Any branches or repeats within the sub-expression will match only one way, and no other alternatives are tried.

Parameters:

expr

The sub-expression to modify.

Notes:

keep(expr) is equivalent to the perl (?>...) extension.


PrevUpHomeNext