Boost logo

Boost :

Subject: Re: [boost] combinations and permutations
From: Howard Hinnant (howard.hinnant_at_[hidden])
Date: 2011-01-05 22:22:14

I've updated the for_each algorithms to break out early if the functor returns true:

I've used a simple bool return rather than any of the fancier tricks. The speed hit didn't seem that severe and is actually zero if the compiler can see that the functor always returns false.

I can easily revert this to the void-return form if that becomes necessary.


Boost list run by bdawes at, gregod at, cpdaniel at, john at