| 131 | /// \return false if terminated by callback |
| 132 | template <typename BS, typename F, typename ...Cb> |
| 133 | inline auto BitSetParallelForAll( const BS & bs, F && f, Cb&&... cb ) |
| 134 | { |
| 135 | return BitSetParallel::ForAllRanged( bs, [&] ( auto bit, auto && ) { std::forward<F>( f )( bit ); }, std::forward<Cb>( cb )... ); |
| 136 | } |
| 137 | |
| 138 | /// executes given function f for each index in IdRange or BitSet (bs) in parallel threads |
| 139 | /// passing e.local() (evaluated once for each sub-range) as the second argument to f; |