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.
T | - | a type to check |
Defined in header
<execution> | ||
---|---|---|
template< class T > constexpr bool is_execution_policy_v = std::is_execution_policy<T>::value; | (since C++17) |
value
[static]
| true if T is a standard or implementation-defined execution policy type , false otherwise (public static member constant) |
operator bool | converts the object to bool , returns value (public member function) |
operator()
(C++14)
| returns value (public member function) |
Type | Definition |
---|---|
value_type | bool |
type | std::integral_constant<bool, value> |
(C++17)(C++17)(C++17)
| execution policy types (class) |
(C++17)(C++17)(C++17)
| global execution policy objects (constant) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/algorithm/is_execution_policy