tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches

Predefined execution policies for parallel/unsequenced versions of the algorithms. More...

Concepts

concept  etl::execution_policy
 

Classes

struct  is_execution_policy< T >
 Checks whether T is a standard or implementation-defined execution policy type. More...
 
struct  sequenced_policy
 The execution policy type used as a unique type to disambiguate parallel algorithm overloading and require that a parallel algorithm's execution may not be parallelized. The invocations of element access functions in parallel algorithms invoked with this policy (usually specified as etl::execution::seq) are indeterminately sequenced in the calling thread. More...
 
struct  unsequenced_policy
 The execution policy type used as a unique type to disambiguate parallel algorithm overloading and indicate that a parallel algorithm's execution may be vectorized, e.g., executed on a single thread using instructions that operate on multiple data items. More...
 

Variables

template<typename T>
constexpr bool is_execution_policy_v = is_execution_policy<T>::value
 
constexpr auto seq = sequenced_policy{}
 
constexpr auto unseq = unsequenced_policy{}
 

Detailed Description

Predefined execution policies for parallel/unsequenced versions of the algorithms.

Variable Documentation

◆ is_execution_policy_v

template<typename T>
template<typename T>
bool is_execution_policy_v = is_execution_policy<T>::value
related

◆ seq

auto seq = sequenced_policy{}
related

◆ unseq

auto unseq = unsequenced_policy{}
related