| 152 | /// \return false if terminated by callback |
| 153 | template <typename BS, typename F, typename ...Cb> |
| 154 | inline auto BitSetParallelFor( const BS& bs, F && f, Cb&&... cb ) |
| 155 | { |
| 156 | return BitSetParallelForAll( bs, [&] ( auto bit ) { if ( bs.test( bit ) ) std::forward<F>( f )( bit ); }, std::forward<Cb>( cb )... ); |
| 157 | } |
| 158 | |
| 159 | /// executes given function f for every _set_ bit in bs IdRange or BitSet (bs) parallel threads, |
| 160 | /// passing e.local() (evaluated once for each sub-range) as the second argument to f; |
no test coverage detected