std::is_execution_policy(3)
Hey bestie! π Youβre looking at the std::is_execution_policy(3) page from the C++ Standard Libary manual β yes, thatβs the manual name, typo and all, and weβre keeping it exactly as the source says. Slay. β¨
πΈ NAME πΈ
std::is_execution_policy - std::is_execution_policy
πΈ Synopsis πΈ
Defined in header <execution>
template< class T > (since C++17)
struct is_execution_policy;
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 a standard execution policy type, or an implementation-defined execution policy type. Otherwise, value is equal to false.
β οΈ Undefined behavior alert: If the program adds specializations forstd::is_execution_policyorstd::is_execution_policy_v, the behavior is undefined. Not a vibe, bestie. π
π Template parameters π
Tβ a type to check
π§ Helper template π§
Defined in header <execution> β and yes, this one is since C++17 too. π¦
template< class T >
inline constexpr bool is_execution_policy_v =
std::is_execution_policy<T>::value;
𧬠Inherited from std::integral_constant π§¬
π Member constants π
value[static]βtrueifTis a standard or implementation-defined execution policy type,falseotherwise (public static member constant)
π οΈ Member functions π οΈ
operator boolβ converts the object tobool, returnsvalue(public member function)operator()β returnsvalue(C++14) (public member function)
𧬠Member types π§¬
value_typeβbooltypeβstd::integral_constant<bool, value>
π See also π
- execution policy types (class):
sequenced_policy(C++17),parallel_policy(C++17),parallel_unsequenced_policy(C++17),unsequenced_policy(C++20) - global execution policy objects (constant):
seq(C++17),par(C++17),par_unseq(C++17),unseq(C++20)
Thatβs the whole page, bestie! π«Ά Source/version: http://cppreference.com Β· date: 2024.06.10 Β· page: std::is_execution_policy(3). Periodt. π
β¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms