HPX - High Performance ParalleX

PrevUpHomeNext

Struct template is_sequential_execution_policy

hpx::parallel::v1::is_sequential_execution_policy

Synopsis

// In header: <hpx/parallel/execution_policy.hpp>

template<typename T> 
struct is_sequential_execution_policy {
};

Description

Extension: Detect whether give execution policy does not enable parallelization

  1. The type is_sequential_execution_policy can be used to detect non-parallel execution policies for the purpose of excluding function signatures from otherwise ambiguous overload resolution participation.

  2. If T is the type of a standard or implementation-defined execution policy, is_sequential_execution_policy<T> shall be publicly derived from integral_constant<bool, true>, otherwise from integral_constant<bool, false>.

  3. The behavior of a program that adds specializations for is_sequential_execution_policy is undefined.


PrevUpHomeNext