Boost logo

Boost :

From: Stephen Hewitt (shewitt.au_at_[hidden])
Date: 2006-12-05 21:47:35


I often use Boost.RegEx as follows:

boost::cregex_iterator i = (pBegin, pEnd, /*Stuff here/*);
 boost::cregex_iterator e;
for ( ; i!=e; ++i)
{
    // Stuff here
}

While there is nothing wrong with this I'd like to be able to use
BOOST_FOREACH to do it. For this to work there would need to be a container
that contains the iterators instead of just creating them directly.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk