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 for the latest Boost documentation.
PrevUpHomeNext

Function template keep

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

Synopsis

// In header: <boost/xpressive/regex_primitives.hpp>


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