std::is_execution_policy

From cppreference.com
< cpp‎ | algorithm
 
 
Algorithm library
Execution policies (C++17)
is_execution_policy
Non-modifying sequence operations
(C++11)(C++11)(C++11)
(C++17)
Modifying sequence operations
Operations on uninitialized storage
Partitioning operations
Sorting operations
(C++11)
Binary search operations
Set operations (on sorted ranges)
Heap operations
(C++11)
Minimum/maximum operations
(C++11)
(C++17)

Permutations
Numeric operations
C library
 
Defined in header <execution>
template< class T >
struct is_execution_policy;
(since C++17)

Checks whether T is a standard or implementation-defined execution policy type.

Provides the member constant value which is equal to true, if T is std::execution::sequenced_policy, std::execution::parallel_policy, std::execution::parallel_unsequenced_policy, or an implementation-defined execution policy type. Otherwise, value is equal to false.

The behavior of a program that adds specializations for std::is_execution_policy is undefined.

Template parameters

T - a type to check

Helper template

Defined in header <execution>
template< class T >
inline constexpr bool is_execution_policy_v = std::is_execution_policy<T>::value;
(since C++17)

Inherited from std::integral_constant

Member constants

value
[static]
true if T is a standard or implementation-defined execution policy type , false otherwise
(public static member constant)

Member functions

operator bool
converts the object to bool, returns value
(public member function)
operator()
(C++14)
returns value
(public member function)

Member types

Type Definition
value_type bool
type std::integral_constant<bool, value>

See also

execution policy types
(class)
(C++17)(C++17)(C++17)
global execution policy objects
(constant)