ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::Executor Concept Reference

the executors, whose bulk( n , f ) runs \( f( 0 ) , \ldots , f( n - 1 ) \) on their threads and returns when they have returned, and whose concurrency() is the number of their threads More...

#include <ADS/parallel/Executor.h>

Concept definition

template< class E >
concept Executor =
requires( E & e , std::size_t n , void ( &f )( std::size_t ) )
{
{ e.concurrency() } -> std::convertible_to< std::size_t >;
e.bulk( n , f );
}
the executors, whose bulk( n , f ) runs on their threads and returns when they have returned,...
Definition Executor.h:168

Detailed description

the executors, whose bulk( n , f ) runs \( f( 0 ) , \ldots , f( n - 1 ) \) on their threads and returns when they have returned, and whose concurrency() is the number of their threads