[execpol.type] (original) (raw)

26 Algorithms library [algorithms]

26.3 Parallel algorithms [algorithms.parallel]

26.3.6 Execution policies [execpol]

26.3.6.2 Execution policy type trait [execpol.type]

template<class T> struct is_execution_policy { _see below_ };

is_execution_policy can be used to detect execution policies for the purpose of excluding function signatures from otherwise ambiguous overload resolution participation.

is_execution_policy<T> is a Cpp17UnaryTypeTrait with a base characteristic of true_type if T is the type of a standard or implementation-defined execution policy, otherwise false_type.

[Note 1:

This provision reserves the privilege of creating non-standard execution policies to the library implementation.

— _end note_]

The behavior of a program that adds specializations foris_execution_policy is undefined.