| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
#ifndef _PSTL_GLUE_EXECUTION_DEFS_H |
| 11 |
#define _PSTL_GLUE_EXECUTION_DEFS_H |
| 12 |
|
| 13 |
#include <type_traits> |
| 14 |
|
| 15 |
#include "execution_defs.h" |
| 16 |
|
| 17 |
namespace std |
| 18 |
{ |
| 19 |
|
| 20 |
using __pstl::execution::is_execution_policy; |
| 21 |
#if defined(_PSTL_CPP14_VARIABLE_TEMPLATES_PRESENT) |
| 22 |
# if defined(__INTEL_COMPILER) |
| 23 |
template <class _Tp> |
| 24 |
constexpr bool is_execution_policy_v = is_execution_policy<_Tp>::value; |
| 25 |
# else |
| 26 |
using __pstl::execution::is_execution_policy_v; |
| 27 |
# endif |
| 28 |
#endif |
| 29 |
|
| 30 |
namespace execution |
| 31 |
{ |
| 32 |
|
| 33 |
using __pstl::execution::parallel_policy; |
| 34 |
using __pstl::execution::parallel_unsequenced_policy; |
| 35 |
using __pstl::execution::sequenced_policy; |
| 36 |
|
| 37 |
|
| 38 |
using __pstl::execution::par; |
| 39 |
using __pstl::execution::par_unseq; |
| 40 |
using __pstl::execution::seq; |
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
using __pstl::execution::unseq; |
| 46 |
using __pstl::execution::unsequenced_policy; |
| 47 |
} |
| 48 |
} |
| 49 |
|
| 50 |
#include "algorithm_impl.h" |
| 51 |
#include "numeric_impl.h" |
| 52 |
#include "parallel_backend.h" |
| 53 |
|
| 54 |
#endif |